Documents for PDF .NET Edition
Features / Linearization
In This Topic
    Linearization
    In This Topic

    A linearized PDF, when opened in a browser, allows the first page of the document to be loaded and displayed before the entire file is loaded on the browser. GcPdf library allows you to generate linearized PDF documents using Linearized property of GcPdfDocument class which takes boolean values. For more information on linearization, see PDF specification 1.7 (Annexure F).

    Generate Linearized PDF

    To generate a linearized PDF, set the Linearized property to true.

    LinearizedPDF.cs
    Copy Code
    // To create a linearized PDF, the only thing we need to do is raise a flag:
    doc.Linearized = true;
    

    For more information about creating a linearized PDF using GcPdf, see GcPdf sample browser.