Click or drag to resize
Pdf Library for .NET

PdfDocumentLinearize Property

Gets or sets a value indicating whether the document is saved linearized ("Fast Web View"): ordered first page first, with hint tables, so a viewer reading it over the web shows the first page before the rest has arrived and fetches any other page on its own. The default is false.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.6
Syntax
public bool Linearize { get; set; }

Property Value

Boolean
Remarks
Linearizing is the last step of the save, after compression, the PDF/A and PDF/UA passes and encryption: an encrypted document stays encrypted with the same passwords. A signed document is not linearized - a rewrite would break its signatures - and the save throws a PdfDocumentException instead: linearize, then sign. Signing a linearized file later appends a revision to it, which keeps the signature valid but the file no longer linearized (as in Acrobat). Linearizing helps large documents served on the web; it changes nothing for a file opened from disk.
Example
PdfDocument document = new PdfDocument("big-report.pdf");
document.Linearize = true;
document.Save("big-report-web.pdf");
document.Close();
See Also