mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
remove destinations from getting started
This commit is contained in:
parent
597b369fd1
commit
c1730b89d4
@ -194,30 +194,6 @@ capitalized.
|
||||
- `CreationDate` - the date the document was created (added automatically by PDFKit)
|
||||
- `ModDate` - the date the document was last modified
|
||||
|
||||
## Destination
|
||||
|
||||
Anchor may specify a destination by `addNamedDestination(name, ...args)`, which consists of a page, the location of the display window on that page, and the zoom factor to use when displaying that page.
|
||||
|
||||
Examples:
|
||||
|
||||
// Insert anchor for current page
|
||||
doc.addNamedDestination('LINK');
|
||||
|
||||
// Insert anchor for current page with only horizontal magnified to fit where vertical top is 100
|
||||
doc.addNamedDestination('LINK', 'FitH', 100);
|
||||
|
||||
// Insert anchor to display a portion of the current page, 1/2 inch in from the top and left and zoomed 50%
|
||||
doc.addNamedDestination('LINK', 'XYZ', 36, 36, 50);
|
||||
|
||||
// Insert anchor for this text
|
||||
doc.text('End of paragraph', { destination: 'ENDP' });
|
||||
|
||||
// Go to annotation
|
||||
doc.text('Another goto', 20, 0, {
|
||||
goTo: 'ENDP',
|
||||
underline: true
|
||||
});
|
||||
|
||||
## Encryption and Access Privileges
|
||||
|
||||
PDF specification allow you to encrypt the PDF file and require a password when opening the file,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user