|
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 604 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 621 of file plotters_pslike.h.
References m_offsets.
|
inline |
Definition at line 650 of file plotters_pslike.h.
References m_offsets.
|
inline |
Is the given PDF object handle in the table?
Definition at line 630 of file plotters_pslike.h.
References m_offsets.
Referenced by SetOffset().
|
inline |
Definition at line 607 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 641 of file plotters_pslike.h.
|
private |
Definition at line 656 of file plotters_pslike.h.
Referenced by Allocate(), Entries(), IsValid(), Reset(), and SetOffset().