jadefox10200 / goprint

Attempt at a windows printer in golang
MIT License
112 stars 28 forks source link

The example cannot print pdf #11

Open 2vl opened 2 years ago

2vl commented 2 years ago

func main() {

The example cannot print pdf ,

After running, the printer queued up with documents and soon disappeared, but the printer did not respond.

Does it have anything to do with the printer? I don't know why.

jadefox10200 commented 1 year ago

This code heavily relies on the printer's ability to read a PDF. If PDF printing does NOT work, try a simple TXT file which from what I know should work in all cases. If your printer cannot read the PDF language, it will not be able to print the PDF.

gedw99 commented 10 months ago

Maybe postscript is needed

so take the pdf and reverse it to postscript using Ghostscript ?

AaronChengHao commented 8 months ago

我遇到也是这样的问题