Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mojo-PDF CPAN distribution.

Report information
The Basics
Id: 114078
Status: rejected
Priority: 0/
Queue: Mojo-PDF

People
Owner: Nobody in particular
Requestors: dougp [...] medinet.ca
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Question about Mojo:PDF
Date: Fri, 29 Apr 2016 13:49:18 -0700
To: <bug-Mojo-PDF [...] rt.cpan.org>
From: "Doug Poulin" <dougp [...] medinet.ca>
I have a web server running with perl. I need to be able to set the print properties to simplex. It can be done in a pdf document see: https://forums.adobe.com/thread/1695766 The reason I need this is that we have medical reports that are generated on the fly using html2pdf, but for patient safety reasons they want us to be able to force the printer to print single sided. The end users use double sided for most of their printouts but these particular reports need to be single sided. Mojo::PDF seems to have quite a bit of ability to manipulate things inside pdf documents. Is this something doable in this app, or could be made to do it with? SigLogo Doug Poulin Chief Technology Officer Medinet Vancouver 604-742-8845 direct 604-737-1477 general 604-742-8850 fax http://www.medi.net <http://www.medi.net/>
Download image001.jpg
image/jpeg 3.2k
image001.jpg
Sorry, Mojo::PDF can't do that. It doesn't even manipulate existing files, but can only use pages from them as mixins. I'm unsure whether PDF::API2 can do it. If you're feeling adventurous: perl -pi -e 's{/DuplexFlip\w+}{/Simplex}' your.pdf But this just changes the default setting and doesn't force simplex printing. Your users may change it. Perhaps, the real solution is not programatically, but some message you add to those print outs for humans to read. -- Cheers, ZZ [ https://metacpan.org/author/ZOFFIX ]