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

Error -100 PDF Marks #32

Closed
hermesramos opened this issue Jul 30, 2017 · 2 comments
Closed

Error -100 PDF Marks #32

hermesramos opened this issue Jul 30, 2017 · 2 comments

Comments

@hermesramos
Copy link

hermesramos commented Jul 30, 2017

Howdy!

I have tried many, many combinations, but it seems pdf mark is not working.

Here is what I am trying to run:

var switches = new List<string> { "-dBATCH", "-dNOPAUSE", "-sDEVICE=pdfwrite", "-c", "\"[/Creator()/Author()/Subject()/Title()/Keywords() /DOCINFO pdfmark\"", $"-sOutputFile={pdfOutput}", pdfInput };

I always get -100 error.

Thanks in advance

@Filipowicz251
Copy link
Contributor

From my experience - error -100 is problem with parameters
in your case i supose -> before pdfInput there should be "-f" parameter

@vihorlat
Copy link

vihorlat commented Mar 6, 2018

I have solved my problem with parameters ordered like this:

                    switches = new List<string>();
                    switches.Add("-dPrinted");
                    switches.Add("-dBATCH");
                    switches.Add("-dNOPAUSE");
                    switches.Add("-dNOSAFER");
                    switches.Add("-dNumCopies=1");
                    switches.Add("-sDEVICE=mswinpr2");
                    switches.Add("-sOutputFile=%printer%");
                    switches.Add("-q");
                    switches.Add("-f");
                    switches.Add(tempFilePath);

-f only worked when -q followed -sOutputFile

@jhabjan jhabjan closed this as completed Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants