| <<<Back 1 day (to 2018/11/14) | 20181115 |
CanadianHusky | Hello, how does the pxlmono and pxlcolor devices honor the original page size of the input pdf ? The input file in this command line has variable page sizes. The output pcl that is generated is brilliantly accuracte on very complex content but is at a single fixed pagesize and cuts off most content. Ideally the output should match the input. | 09:49.09 |
| gswin64c -dBATCH -dNOPAUSE -dNOPROMPT -q -dAutoRotatePages=/None -dUseCropBox -sDEVICE=pxlmono -r300 -o "C:\temp\output.pcl" "C:\temp\multipage.pdf" | 09:49.13 |
| I read section 4.4 here https://www.ghostscript.com/doc/9.25/Devices.htm#PXL but little info | 09:49.35 |
kens | Are you rendering each page to a separate PXL file ? | 09:50.21 |
CanadianHusky | no, single multipage input and desire to have single multipage output. | 09:51.22 |
| I am willing to piece together single PCL files together by code if needed | 09:51.48 |
kens | I'm not responsible for teh pxl or pcl output devices, but I strongly suspect that they do not support altering the media size between pages | 09:51.58 |
CanadianHusky | that is what it looks like based on my experiments | 09:52.18 |
| but the gray rendering code on that device is far faster and more accurate than the vector based gray conversion. Thats why I am experimenting with that option | 09:53.10 |
| I will try single page processing and check if the pxlmono/pxlcolor devices honor the original input sizes. that would be good enough I suppose | 09:54.00 |
| the content cuts off when the input is a larger size than Din A4, even when a single page is given. Maybe hardcoded to a default ? The original pdfsize is not honored. I guess additional command line argument must be given to the pxl device to specify final output size. | 09:59.30 |
| The pxlmono/pclcolor devices to not honor command line pagesize as described in https://www.ghostscript.com/doc/9.25/Use.htm section 3.3 either. Output is cut off from the command line below and restricted to a A4 size | 10:05.50 |
| gswin64c -dBATCH -dNOPAUSE -dNOPROMPT -q -dAutoRotatePages=/None -dUseCropBox -r300 -dDEVICEWIDTHPOINTS=1296 -dDEVICEHEIGHTPOINTS=864 -sDEVICE=pxlmono -o "C:\temp\output-mono.pcl" "C:\temp\singlepage-input.pdf" | 10:06.00 |
| adding -dFIXEDMEDIA does not work either. I will submit a bug report | 10:11.53 |
| Forward 1 day (to 2018/11/16)>>> | |