PDF file Linearized

Questions, comments and suggestions concerning VintaSoft PDF .NET Plug-in.

Moderator: Alex

Post Reply
freddy.maitre
Posts: 1
Joined: Tue Mar 19, 2019 12:28 am

PDF file Linearized

Post by freddy.maitre » Tue Mar 19, 2019 12:34 am

Hi
Is there a way to know if a PDF file is Linearized (Fast Web View) ?
And also is it possible to save a PDF file as Linearized ?
Thanks,

Alex
Site Admin
Posts: 1661
Joined: Thu Jul 10, 2008 2:21 pm

Re: PDF file Linearized

Post by Alex » Tue Mar 19, 2019 2:35 pm

Hi Freddy,
Is there a way to know if a PDF file is Linearized (Fast Web View) ?
You can check that PDF document is linearized using the following code:

Code: Select all

public static bool HasLinearizationInfo(Vintasoft.Imaging.Pdf.PdfDocument document)
{
    bool result;
    if (Vintasoft.Imaging.Pdf.Processing.Analyzers.PdfAnalyzers.PdfFileHasLinearizationInfo.TryAnalyze(document, out result))
        return result;
    return false;
}
And also is it possible to save a PDF file as Linearized ?
Current version does not allow to create linearized PDF documents. We plan to add this feature in future. Unfortunately, I cannot give you the exact date.

Best regards, Alexander

Post Reply