How can I Linearize a PDF in memory?

24 views
Skip to first unread message

Ryan

unread,
Dec 5, 2019, 2:32:59 PM12/5/19
to PDFTron PDFNet SDK
Question:

I need to Linearize PDF files completely in memory.

Answer:

Note: Linearized PDF is also known as Fast Web View.

PDFDoc pdfDoc = new PDFDoc(pdfData, pdfData.Length);
if(!pdfDoc.IsLinearized())
{
 
byte[] linearizedPdfData = pdfDoc.Save(SDFDoc.SaveOptions.e_linearized);
}

Reply all
Reply to author
Forward
0 new messages