search

Home  >  Q&A  >  body text

php - How to efficiently convert PDF to clear PNG

  1. The requirement is to convert the high-definition vector PDF to PNG. After the image is enlarged, the small text on the image can be seen clearly without being too blurry.

  2. The current solution is PHP imagick, and when setResolution is set to 500, it can just achieve the expected clarity. At this time, a single PNG file becomes a 5000X5000 resolution image, and the file size also becomes larger. At the same time, processing time also becomes longer. The generation time of a single picture is about 5 seconds (the number of pages is too many, it is very ink-stained).

Excuse me, which language has a better solution for converting PDF to PNG? Need a DEMO.

过去多啦不再A梦过去多啦不再A梦2751 days ago831

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-05-16 13:03:37

    You can try apache’s pdfbox and java libraries

    reply
    0
  • 迷茫

    迷茫2017-05-16 13:03:37

    http://stackoverflow.com/ques...

    reply
    0
  • Cancelreply