 |
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.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntaxpublic bool Linearize { get; set; }Public Property Linearize As Boolean
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.
ExamplePdfDocument document = new PdfDocument("big-report.pdf");
document.Linearize = true;
document.Save("big-report-web.pdf");
document.Close();Dim document As New PdfDocument("big-report.pdf")
document.Linearize = True
document.Save("big-report-web.pdf")
document.Close()
See Also