Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P poppler
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 656
    • Issues 656
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • poppler
  • poppler
  • Issues
  • #947

Closed
Open
Created Aug 01, 2020 by attah@attah

[enhancement] Make scaling work with mixed-orientation documents

Scaling is really helpful when using pdftoppm in a printing pipeline, the problem is that landscape pages end up not being usable. They either get squashed or remain landscape.... There is no rotate-to-fit logic, so you end up with squashed pages if they are truly encoded in portrait, or they remain landscape if they are rotated by attributes in the PDF. If you set -scale-dimension-before-rotation, all landscape-looking pages end up squashed.

Would it be possible to add an option to rotate with +/- 90 degrees (in addition to any pre-existing rotation attribute) conditionally on the page aspect ratio?

Here is a good test PDF, which both has a true landscape page, and a rotated one. https://wiki.debian.org/CUPSPdfToPdf?action=AttachFile&do=view&target=mixed.pdf

Edited Nov 24, 2020 by attah
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking