|
libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
|
Public Member Functions | |
| Writer (ostream &, int, int) | |
| Constructor. | |
| ostream & | output () |
| Access the underlying output stream. | |
| void | write_header (string const &) |
| Write a COS-file header. | |
| void | write_object (Identity const &, Object_model::Container_base const &) |
| Write an object. | |
| void | begin_xref () |
| Begin a new cross-reference table. | |
| void | begin_xref_chunk (Index, uint16_t) |
| Begin a new cross-reference table chunk. | |
| void | write_xref_used_entry (streamoff, Generation) |
| Write a used entry. | |
| void | write_xref_free_entry (Index, Generation) |
| Write a free entry. | |
| void | write_trailer (Dictionary const &) |
| Write a COS-file trailer. | |
| void | write_eof (streamoff) |
| Write an EOF marker. | |
Private Member Functions | |
| void | emit_reference (Identity const &) |
| Emit a reference to an indirect object. | |
| void | emit (Undefined const &) |
| Emit undefined. | |
| void | emit (Boolean const &) |
| Emit a boolean object. | |
| void | emit (Integer const &) |
| Emit an integer object. | |
| void | emit (Real const &) |
| Emit a real object. | |
| void | emit (Text const &) |
| Emit a text object. | |
| void | emit (Name const &) |
| Emit a name object. | |
| void | emit (Array const &) |
| Emit an array object. | |
| void | emit (Dictionary const &) |
| Emit a dictionary object. | |
| void | dispatch_emit (Object const &) |
| Dispatch the emission of an object. | |
| void | dispatch_emit (Object_model::Container_base const &) |
| Dispatch the emission of an object. | |
| void | new_line () |
| Write a new line marker. | |
| Writer (Writer const &)=delete | |
| Writer (Writer &&)=delete | |
| Writer & | operator= (Writer const &)=delete |
| Writer & | operator= (Writer &&)=delete |
Private Attributes | |
| ostream & | _output |
| int | _major {} |
| int | _minor {} |
| string::size_type | _indent {} |
| Art::Paperback::Carousel::Writer::Writer | ( | ostream & | output, |
| int | major, | ||
| int | minor ) |
Constructor.
| output | The output stream to write to. |
| major | The major version of the document to write. |
| minor | The minor version of the document to write. |
| ostream & Art::Paperback::Carousel::Writer::output | ( | ) |
Access the underlying output stream.
| void Art::Paperback::Carousel::Writer::write_header | ( | string const & | header | ) |
Write a COS-file header.
This function will automatically write a binary comment immediately following the COS-file header, as per the recommendation of the PDF-1.4 specification.
| header | The COS-file header. |
| void Art::Paperback::Carousel::Writer::write_object | ( | Identity const & | identity, |
| Object_model::Container_base const & | container ) |
Write an object.
| identity | The identity of the object. |
| container | The object container. |
| void Art::Paperback::Carousel::Writer::begin_xref | ( | ) |
Begin a new cross-reference table.
| void Art::Paperback::Carousel::Writer::begin_xref_chunk | ( | Index | index, |
| uint16_t | count ) |
Begin a new cross-reference table chunk.
| index | The first index of this chunk. |
| count | The size of this chunk. |
| void Art::Paperback::Carousel::Writer::write_xref_used_entry | ( | streamoff | offset, |
| Generation | generation ) |
Write a used entry.
| offset | The offset of the entry. |
| generation | The generation of the entry. |
| void Art::Paperback::Carousel::Writer::write_xref_free_entry | ( | Index | next, |
| Generation | generation ) |
Write a free entry.
| next | The index of the next entry. |
| generation | The next generation number of the entry. |
| void Art::Paperback::Carousel::Writer::write_trailer | ( | Dictionary const & | dictionary | ) |
Write a COS-file trailer.
| dictionary | The trailer dictionary. |
| void Art::Paperback::Carousel::Writer::write_eof | ( | streamoff | xref_offset | ) |
Write an EOF marker.
| xref_offset | The offset of the cross-reference table. |
|
private |
Emit a reference to an indirect object.
| index | The object reference index. |
| generation | The object reference generation. |
|
private |
Emit undefined.
|
private |
Emit a boolean object.
| boolean | The boolean to write. |
|
private |
Emit an integer object.
| integer | The integer to write. |
|
private |
Emit a real object.
| real | The real to write. |
|
private |
Emit a text object.
| text | The text to write. |
|
private |
Emit a name object.
|
private |
Emit an array object.
|
private |
Emit a dictionary object.
|
private |
Dispatch the emission of an object.
|
private |
Dispatch the emission of an object.
|
private |
Write a new line marker.