|
KiCad PCB EDA Suite
|
The PDF cross-reference table. More...
#include <plotters_pslike.h>
Public Member Functions | |
| void | Reset () |
| int | Allocate () |
| Allocate a new PDF object handle. | |
| bool | IsValid (int aHandle) const |
| Is the given PDF object handle in the table? | |
| void | SetOffset (int aHandle, long aOffset) |
| Set the file offset for a given PDF object handle. | |
| const std::vector< long > & | Entries () const |
Private Attributes | |
| std::vector< long > | m_offsets = { 0 } |
The PDF cross-reference table.
This is a table of file offsets for each PDF object "handle" (int)
Definition at line 605 of file plotters_pslike.h.
|
inline |
Allocate a new PDF object handle.
Object 0 is reserved by the PDF format and is never handed out.
You must fill in the file offset for this handle using SetOffset() before the object is useable.
Definition at line 622 of file plotters_pslike.h.
References m_offsets.
|
inline |
Definition at line 651 of file plotters_pslike.h.
References m_offsets.
|
inline |
Is the given PDF object handle in the table?
Definition at line 631 of file plotters_pslike.h.
References m_offsets.
Referenced by SetOffset().
|
inline |
Definition at line 608 of file plotters_pslike.h.
References m_offsets.
|
inline |
Set the file offset for a given PDF object handle.
| aHandle | The PDF object handle. |
| aOffset | The file offset where the object starts. |
Definition at line 642 of file plotters_pslike.h.
|
private |
Definition at line 657 of file plotters_pslike.h.
Referenced by Allocate(), Entries(), IsValid(), Reset(), and SetOffset().