Struct pdf_writer::PdfWriter[][src]

pub struct PdfWriter { /* fields omitted */ }
Expand description

The root writer.

Implementations

Core methods.

Create a new PDF writer with the default buffer capacity (currently 8 KB).

This already writes the PDF header containing the (major, minor) version.

Create a new PDF writer with the specified initial buffer capacity.

This already writes the PDF header containing the (major, minor) version.

Set the indent level per layer of nested objects.

Default value: 0.

Write the cross-reference table and file trailer and return the underlying buffer.

The number of bytes that were written so far.

Indirect objects.

Start writing an indirectly referenceable object.

Start writing a document catalog.

Start writing a page tree.

Start writing a page.

Start writing an outline.

Start writing an outline item.

Start writing a named destination dictionary.

Start writing a Type-1 font.

Start writing a Type-0 font.

Start writing a CID font.

Start writing a font descriptor.

Streams.

Start writing an indirectly referenceable stream.

The stream data and the /Length field are written automatically. You can add additional key-value pairs to the stream dictionary with the returned stream writer.

Start writing a character map stream.

If you want to use this for a /ToUnicode CMap, you can use the UnicodeCmap builder to construct the data.

Start writing an XObject image stream.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.