happypdf / IncrementalDocumentSnapshot
Class: IncrementalDocumentSnapshot
Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:4
Implements
Constructors
Constructor
new IncrementalDocumentSnapshot(
lastObjectNumber,
indirectObjects,
pdfSize,
prevStartXRef,
context): IncrementalDocumentSnapshot;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:15
Parameters
| Parameter | Type |
|---|---|
lastObjectNumber | number |
indirectObjects | Set<number> |
pdfSize | number |
prevStartXRef | number |
context | PDFContext |
Returns
IncrementalDocumentSnapshot
Properties
context
context: PDFContext;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:13
deletedCount
deletedCount: number = 0;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:7
Implementation of
pdfSize
pdfSize: number;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:5
Implementation of
prevStartXRef
prevStartXRef: number;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:6
Implementation of
DocumentSnapshot.prevStartXRef
Methods
deletedRef()
deletedRef(index): PDFRef | null;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:70
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
PDFRef | null
Implementation of
markDeletedObj()
markDeletedObj(obj): void;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:65
Parameters
| Parameter | Type |
|---|---|
obj | PDFObject |
Returns
void
Implementation of
DocumentSnapshot.markDeletedObj
markDeletedRef()
markDeletedRef(ref): void;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:56
Parameters
| Parameter | Type |
|---|---|
ref | PDFRef |
Returns
void
Implementation of
DocumentSnapshot.markDeletedRef
markObjForSave()
markObjForSave(obj): void;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:44
Parameters
| Parameter | Type |
|---|---|
obj | PDFObject |
Returns
void
Implementation of
DocumentSnapshot.markObjForSave
markObjsForSave()
markObjsForSave(objs): void;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:48
Parameters
| Parameter | Type |
|---|---|
objs | PDFObject[] |
Returns
void
Implementation of
DocumentSnapshot.markObjsForSave
markRefForSave()
markRefForSave(ref): void;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:34
Parameters
| Parameter | Type |
|---|---|
ref | PDFRef |
Returns
void
Implementation of
DocumentSnapshot.markRefForSave
markRefsForSave()
markRefsForSave(refs): void;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:38
Parameters
| Parameter | Type |
|---|---|
refs | PDFRef[] |
Returns
void
Implementation of
DocumentSnapshot.markRefsForSave
shouldSave()
shouldSave(objectNumber): boolean;Defined in: src/api/snapshot/IncrementalDocumentSnapshot.ts:29
Parameters
| Parameter | Type |
|---|---|
objectNumber | number |
Returns
boolean