Skip to content

ENH: add cropped, rotated and scaled sample with many different elements#36

Draft
mahlzahn wants to merge 2 commits intopy-pdf:mainfrom
hfvkcjlp:enh_add_cropped_rotated_scaled_sample
Draft

ENH: add cropped, rotated and scaled sample with many different elements#36
mahlzahn wants to merge 2 commits intopy-pdf:mainfrom
hfvkcjlp:enh_add_cropped_rotated_scaled_sample

Conversation

@mahlzahn
Copy link
Copy Markdown

@mahlzahn mahlzahn commented Apr 1, 2026

A sample document with plenty of elements:

  • images
  • drawings (rectangles)
  • text elements
  • various annotations
    • links
    • widgets
      • checkboxes
      • text fields
    • file attachments
    • polygons
    • popups
    • highlights

All this is distributed on 4 similar pages with different rotations and scales, cropped with a cropbox, such that all of above elements exist both inside and outside of the page rectangles.

Btw, both Okular (missing links, poppler) and Evince/Papers (wrong widget positions, also poppler) have some failures to show this document properly, I’d say that Firefox’ PDF viewer (pdf.js) wins the game here among the three (also with a little inconsistency, but OK) ;)

@mahlzahn mahlzahn marked this pull request as draft April 1, 2026 15:24
@mahlzahn
Copy link
Copy Markdown
Author

mahlzahn commented Apr 1, 2026

I marked the PR as draft for now, because I might add more to this file in the close future. Let me know if you’re interested in adding this file.

@mahlzahn mahlzahn force-pushed the enh_add_cropped_rotated_scaled_sample branch from c79915c to c8f2f5c Compare April 1, 2026 15:34
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

Successfully merging this pull request may close these issues.

1 participant