Novis\Pdf\Reader
An existing PDF file opened for reading: its page count, its metadata, its attached files and its text. Every string and bytes value it returns is tainted, because it comes from the file.
Members
4 members.
| Member | Signature |
|---|---|
open | open(Core\Bytes::Source $pdf): Reader |
attachments | attachments(): array<Attachment> |
invoiceXml | invoiceXml(): ?tainted string |
text | text(uint $page): tainted string |
Types
Metadata
Attachment
Properties
$reader->pageCountuintthe number of pages in the PDF file$reader->metadataMetadatathe title, author, subject, keywords, creator and producer of the file. Each one isnullwhen the file does not have it.
Example apps
These complete apps use this class. You can download and run each one.
- PDF documents: A small web app that makes three PDF files. They are an invoice, an encrypted report and event tickets. See each file, then run the app and its tests.
