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

Pages are rotated #32

Closed
maitreyamaity opened this issue Apr 9, 2020 · 4 comments
Closed

Pages are rotated #32

maitreyamaity opened this issue Apr 9, 2020 · 4 comments

Comments

@maitreyamaity
Copy link

Hi,

Thanks for such a helpful project.
I would like to inform about an issue.

Scenario 1: The input PDF file with default page size i.e. A4. The generated output PDF file also contains identical pages i.e. A4.

Scenario 2: The input PDF file with custom page size i.e. epos bill receipt (height-width ratio is quite high). The generated output PDF file contains 90deg anticlockwise rotated pages. However, the inverted height-width ratio is the same as the original. So, the pages are only rotated after generation.

Consideration: During a print, I have ticked the 'Choose paper source by PDF size' option.

Kindly address the said issue.

Thanks

@stchan
Copy link
Owner

stchan commented May 3, 2020

I'm extremely busy right now and haven't done anything with PdfScribe in a while - however, the first priority when I do come back around is to integrate a new port monitor (issue #17)

@KushX
Copy link

KushX commented Aug 3, 2022

Is there a manual/quick fix/code snippet for this issue?
Any suggestions would help. I'm not very good at coding, but I have managed to build from the source. But no idea how I'd force it to rotate back to the correct way.

@stchan
Copy link
Owner

stchan commented Aug 22, 2022

If you want to try making changes, lines 68-70 in "Program.cs" set ghostscript parameters:

String[] ghostScriptArguments = { "-dBATCH", "-dNOPAUSE", "-dSAFER",  "-sDEVICE=pdfwrite",
                                                String.Format("-sOutputFile={0}", outputFilename), standardInputFilename,
                                                "-c", @"[/Creator(PdfScribe " + Assembly.GetExecutingAssembly().GetName().Version + " (PSCRIPT5)) /DOCINFO pdfmark", "-f"};

@stchan
Copy link
Owner

stchan commented Jan 11, 2023

Prerelease v1.3.1 turns off auto rotation (default is /PageByPage)

@stchan stchan closed this as completed Apr 21, 2023
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

3 participants