Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Pass Post Script as an argument, not a file #53

Open
andrii-kovalenko-ct opened this issue Nov 29, 2016 · 0 comments
Open

Pass Post Script as an argument, not a file #53

andrii-kovalenko-ct opened this issue Nov 29, 2016 · 0 comments

Comments

@andrii-kovalenko-ct
Copy link

First of all, thanks for your library.

Now the question :)

I run your lib to convert PDF to JPG with the following arguments:

-q 
-dBATCH 
-dNOPAUSE 
-sDEVICE=jpeg 
-dJPEGQ=98 
-r96 
-dTextAlphaBits=4 
-dGraphicsAlphaBits=4 
-sOutputFile=target.jpg 
-f 
watermark.ps
input.pdf

i'd like to avoid using watermark.ps as a file but put Post Script directly to the function call. Is it possible? Something like:

...
-sOutputFile=target.jpg 
-c "<<   /EndPage  { pop pop .....   } bind >> setpagedevice"
-f 
input.pdf

Thanks for concern.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant