remove destinations from getting started

This commit is contained in:
Libor M 2019-03-25 10:15:37 +01:00 committed by GitHub
parent 597b369fd1
commit c1730b89d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,