Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goojprt A4 added #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rastertozj.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static inline void mputchar(char c) {
putchar(m);
}
// on macos cups filters works in a sandbox and cant write
// filtes everywhere. We'll use $TMPDIR/debugraster.txt for them
// files everywhere. We'll use $TMPDIR/debugraster.txt for them
#ifdef SAFEDEBUG
static inline void DEBUGSTARTPRINT() {
char * tmpfolder = getenv("TMPDIR");
Expand Down
26 changes: 26 additions & 0 deletions zjdrv.drv
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,29 @@ Installable "OptionCutter/Cutter"
}
}

// 210mm printers
{
#define POINTS 595
#define PIXELS 1680

// model num is used by filter to determine raster width. 58 -> 0x180, 80 -> 0x240.
ModelNumber $PIXELS
MinSize $POINTS 56
MaxSize $POINTS 9286

*CustomMedia "X210MMY297MM/210mm x 297mm" $POINTS 842 0 0 0 0 "<</PageSize[$POINTS 842]>>setpagedevice" "<</PageSize[$POINTS 842]>>setpagedevice"
CustomMedia "X210MMY65MM/210mm x 65mm" $POINTS 182 0 0 0 0 "<</PageSize[$POINTS 182]>>setpagedevice" "<</PageSize[$POINTS 182]>>setpagedevice"
CustomMedia "X210MMY3276MM/210mm x 3276mm" $POINTS 9286 0 0 0 0 "<</PageSize[$POINTS 9286]>>setpagedevice" "<</PageSize[$POINTS 9286]>>setpagedevice"

// GOOJPRT A4
{
Manufacturer "Goojprt"
ModelName "A4"
PCFileName "goojprt-a4.ppd"
Attribute "NickName" "" "Goojprt A4"
Attribute "ShortNickName" "" "JP_A4"
Attribute "Product" "" "(jp-a4)"
Attribute "1284DeviceID" "" "MFG:Goojprt;CMD:Goojprt;MDL:A4;CLS:PRINTER;"
}
}