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

Correct PDF to JPG conversion for cropped pages #80

Open
stackpr opened this issue Mar 17, 2015 · 0 comments
Open

Correct PDF to JPG conversion for cropped pages #80

stackpr opened this issue Mar 17, 2015 · 0 comments
Assignees
Labels

Comments

@stackpr
Copy link
Collaborator

stackpr commented Mar 17, 2015

pdftk schedule.pdf dump_data
...
PageMediaRect: 0 0 1224 792
PageMediaDimensions: 1224 792
PageMediaCropRect: 0 0 610.647 792

By default, convert will respect PageMediaDimensions but will ignore PageMediaCropRect.

This results in a PDF that appears to be portrait actually export as landscape with extra white space (or similar).

Adding the "-page letter" flag to the convert command can address this when the page size is obvious (confirmed), but that is not technically accurate. A better solution would be to extract the crop values and apply them within the convert command using "-crop ...".

@stackpr stackpr added the bug label Mar 17, 2015
@stackpr stackpr self-assigned this Mar 17, 2015
@stackpr stackpr added this to the 0.1 - Alpha Release milestone Mar 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant