Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

187
Views
How to crop PDF and access annotation objects mutool run Javascript interface

I need to crop /trim away any white space around text in a PDF file and I need access to some simple data contained in PDF annotations.

My working solution using pdf.js is too slow for my use case. Mutool seems to be much faster, but I face 3 difficulties:

  1. In mutool run Javascript I see no documentation for accessing annotation objects.
  2. In mutool run Javascript I fail to do some reasonable cropping /trimming of the image. I succeed getting the bounding box using their example with a virtual interface.
  3. It looks like the transform matrix for rendering a pixmap is ignored - I get images with bad resolution.

Any experience with mutool run Javascript access to PDF files out there?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!