Enable PDF fast web view using Java?

How do I enable fast web view property of a PDF using Java code or any open source Java libraries?

Note: this is also known as a "linearized PDF".


Check out any of these:

  • iText
  • gnujpdf
  • PDF Box
  • FOP
  • JFreeReport
  • PJX - (site appears to be down)
  • JPedal
  • PDFJet
  • JPod
  • PDF Renderer
  • Big Faceless
  • Hope this is helpful to you.


    This is a way of structuring a PDF. If you are trying to enable it, you will need to rebuild the PDF - you can't just set a flag.


    there's an open source tool, called QPDF, which is content preserving and very fast. In Unix you'd use the following command to linearize:

    qpdf --linearize input.pdf output.pdf
    

    it shouldn't be too hard, to call this in Java it seems to me...

    Full documentation on this free open sourced tool is here

    edit: PDFclown offers serialization also with linearized support now - see http://www.massapi.com/source/PDFClown/java/pdfclown.lib/src/org/pdfclown/files/SerializationModeEnum.java.html

    链接地址: http://www.djcxy.com/p/12394.html

    上一篇: 非常冗长的存储过程状态

    下一篇: 使用Java启用PDF快速Web视图?