Table of Contents

Method Version

Namespace
BitMiracle.Docotic.Pdf.Layout
Assembly
BitMiracle.Docotic.Pdf.Layout.dll

Version(PdfVersion)

Sets the PDF version to use while generating a document.

public PdfDocumentBuilder Version(PdfVersion version)

Parameters

version PdfVersion

The PDF version.

Returns

PdfDocumentBuilder

The update builder.

Remarks

By default, the library uses Pdf15 when object streams are enabled and Pdf13 when object streams are disabled.

The library can save the document using a PDF version newer than specified here. This happens when the document uses features from the newer PDF version.

Read the Building documents article for examples of using this method.