Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
poppler
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 613
    • Issues 613
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 39
    • Merge Requests 39
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • poppler
  • poppler
  • Merge Requests
  • !384

Merged
Opened Nov 05, 2019 by corentinfoucault@corentinfoucaultContributor

[PdfToPpm] Add an option to scale before rotate

  • Overview 9
  • Commits 3
  • Pipelines 4
  • Changes 2

(I propose a new solution to be backwards-compatible with the swap between height and width with pdftoppm )

Hello,

For a rotated pdf, options -scale-to-y and -scale-to-x are swapped:

For example with a rotated pdf x=200 y=100

  1. We use the options: -scale-to-y 50 -scale-to-x -1
  2. The generated image has width=50 and height=25
  3. But with this option the expected sizes are width=100 and height=50

I found a correction in pdftoCairo.cc and an issue #595 (closed).

I propose another solution to solve this problem with a new option to select the good timing to swap height and with.

-scale-dimension-before-rotation

By default we keep the original order : Resize and swap if the option is activated the order become: Swap and resize

For the test I attached a pdf sample. rotated.pdf

Merge request with other solution:

!286 (closed)

!376 (closed)

Edited Nov 05, 2019 by corentinfoucault
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: poppler/poppler!384
Source branch: AddNewOptionForRotatedDoc