PDFRasterizer.NET 4.0 is now available. Supports .NET Core. Renders pixel-perfectly.

Constructor Document

Namespace TallComponents.PDF
Class Document

Opens an existing password-protected document.

Syntax

public Document(BinaryReader readerString password)

Parameters


BinaryReader reader
The reader from which the document is read.

String password
The password that is required to open this document.

This method gives you full control over how the document is read. It requires that the binary reader remains open during the lifetime of the document.

Provided that the argument binary reader is seekable, information will be read from the PDF file on demand. E.g. if one hits page 10, we seek to the correct position, skipping all other pages, and we return page 10. If after that a request references page 5, we seek back and read that page. This means that one should not close/dispose the binary reader during the whole session one needs the document, pages, bookmarks, or other info extracted from it.

If the binary reader is not seekable, we will read information eagerly, i.e. the entire document will first be read into memory before we access it.

Download PDFKit.NET 5.0
We will send you a download link

  • This field is for validation purposes and should be left unchanged.
Why do we ask your email address?
We send tips that speed up your evaluation
We let you know about bug fixes
You can always unsubscribe with one click
We never share your address with a 3rd party
Thank you for your download

We have sent an email with a download link.