Linearizing PDFs

47 views
Skip to first unread message

javadev ora

unread,
Sep 8, 2016, 5:11:26 PM9/8/16
to PDFTron PDFNet SDK

I  want to linearize an existing pdf using pdfnet SDK. I'm trying using java PDFNet SDK.

      doc = new PDFDoc(file.getAbsolutePath());
      doc.save(outputFile.getAbsolutePath(), SDFDoc.e_linearized, null);

The pdf file is still not linearized as I could see the Webviewer throwing the message.

Reason: The file is not linearized.



Ryan

unread,
Sep 12, 2016, 6:32:33 PM9/12/16
to PDFTron PDFNet SDK
Is this for every PDF you try, or only specific ones? If specific please send one to support at pdftron.com (or post here if you can).

If any PDF file, can you let us know what version of PDFNet you are using.

javadev ora

unread,
Sep 13, 2016, 12:26:30 PM9/13/16
to PDFTron PDFNet SDK
Yes. It is happening for all files.

Office docs converted to pdf are linearized. But, the PDFs are not getting linearized.

Ryan

unread,
Sep 15, 2016, 6:04:31 PM9/15/16
to PDFTron PDFNet SDK
Can you call PDFNet.GetVersion and let me know what that returns.

Also, can you reproduce by modifying one of our SDK samples? Or does this only happen in your project?
Reply all
Reply to author
Forward
0 new messages