Navigation :
Migration from 0.1/0.2
Getting started
-
Client-side
-- Methods
-- Supported browsers
-- Examples
-
Server-side
-- Supported Node.js versions
-- Methods
-- Examples
Fonts
-
Custom fonts (client-side)
--
via Virtual file system (VFS)
--- Building font file via PHP script
--- Building font file via shell script
--
via URL protocol
- Icons
- Standard 14 fonts
Document-definition-object
- Styling
- Columns
- Tables
- Lists
- Headers and footers
- Background-layer
- Margins
- Stack of paragraphs
- Images
- SVGs
- Links
- QR code
- Table of contents
- Watermark
- Page dimensions, orientation and margins
- Document Metadata
- Patterns
- Compression
- Encryption and access privileges
- Attachments embedding
- PDF/A
Options
Links
Version 0.3 is under development. Do not use in a production.
Documentation is under development.
To add external or internal links, use the following syntax:
{ text : 'google' , link : 'http://google.com' }
{ text : 'Go to page 2' , linkToPage : 2 }
{ text : 'Go to Header' , linkToDestination : 'header' },
{ text : 'Header content' , id : 'header' },
Or link to local computer file:
var dd = {
content : [
{
text : 'link' ,
link : 'file:///c:/testFile.txt'
}
]
};
Properties
link
(string
) - URL to external site
linkToPage
(number
) - link to page number
linkToDestination
(string
) - link to document destination