diff --git a/README.md b/README.md index 5f5c69f..7a34353 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ hugo server and open in browser: ``` -http://localhost:1313/docs/0.2/ +http://localhost:1313/docs/0.3/ ``` #### Deploy webpages diff --git a/config.toml b/config.toml index 799f7f5..9ac60bd 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -baseURL = "https://pdfmake.github.io/docs/0.2/" +baseURL = "https://pdfmake.github.io/docs/0.3/" languageCode = "en-us" title = "pdfmake" theme = "docdock" diff --git a/content/document-definition-object/svgs.md b/content/document-definition-object/svgs.md index 65d8413..182a689 100644 --- a/content/document-definition-object/svgs.md +++ b/content/document-definition-object/svgs.md @@ -5,7 +5,7 @@ weight = 29 alwaysopen = true +++ -SVGs are much like [images](/docs/0.2/document-definition-object/images/) except it is not currently possible to refer to SVGs by file or re-use from a dictionary. +SVGs are much like [images](/docs/0.3/document-definition-object/images/) except it is not currently possible to refer to SVGs by file or re-use from a dictionary. Library [SVG-to-PDFKit](https://github.com/alafr/SVG-to-PDFKit) is used to transformation from SVG to PDF document. diff --git a/content/fonts/custom-fonts-client-side/_index.md b/content/fonts/custom-fonts-client-side/_index.md index 1dd0821..283fa57 100644 --- a/content/fonts/custom-fonts-client-side/_index.md +++ b/content/fonts/custom-fonts-client-side/_index.md @@ -8,5 +8,5 @@ alwaysopen = true pdfmake uses the Roboto font by default. This guide explains how to use your own fonts with pdfmake (in client-side code). ## Two ways are now possible: -* [use virtual file system](/docs/0.2/fonts/custom-fonts-client-side/vfs/) -* **(NEW)** [use font file via URL (https:// or http:// protocol)](/docs/0.2/fonts/custom-fonts-client-side/url/) +* [use virtual file system](/docs/0.3/fonts/custom-fonts-client-side/vfs/) +* **(NEW)** [use font file via URL (https:// or http:// protocol)](/docs/0.3/fonts/custom-fonts-client-side/url/) diff --git a/content/fonts/custom-fonts-client-side/vfs/_index.md b/content/fonts/custom-fonts-client-side/vfs/_index.md index b7f6f47..1f03af9 100644 --- a/content/fonts/custom-fonts-client-side/vfs/_index.md +++ b/content/fonts/custom-fonts-client-side/vfs/_index.md @@ -32,7 +32,7 @@ To use custom fonts, 3 steps are required: * Copy your fonts (and other files you wish to embed) into the ```examples/fonts``` subdirectory. -* Run ```npm install``` from the pdfmake source directory (how to download repository see [here](/docs/0.2/getting-started/client-side/#repository)) to ensure all prerequisites modules are installed. +* Run ```npm install``` from the pdfmake source directory (how to download repository see [here](/docs/0.3/getting-started/client-side/#repository)) to ensure all prerequisites modules are installed. * Run ```gulp buildFonts``` to create a new ```build/vfs_fonts.js``` (you can update `gulpfile.js` to change the base directory path or to add an alternative config for the `buildFonts` task). @@ -44,8 +44,8 @@ You don't need to reference the files in ```examples/fonts``` anymore because al Other ways: -* [Building font file via shell script](/docs/0.2/fonts/custom-fonts-client-side/vfs/shell/) -* [Building font file via PHP script](/docs/0.2/fonts/custom-fonts-client-side/vfs/php/) +* [Building font file via shell script](/docs/0.3/fonts/custom-fonts-client-side/vfs/shell/) +* [Building font file via PHP script](/docs/0.3/fonts/custom-fonts-client-side/vfs/php/) ## 2. assign `pdfMake.fonts` in your javascript diff --git a/content/fonts/custom-fonts-client-side/vfs/php.md b/content/fonts/custom-fonts-client-side/vfs/php.md index a3db789..08f18ce 100644 --- a/content/fonts/custom-fonts-client-side/vfs/php.md +++ b/content/fonts/custom-fonts-client-side/vfs/php.md @@ -5,7 +5,7 @@ weight = 10 alwaysopen = false +++ -For a complete description of use custom fonts in client-side, read the article: [Custom fonts (client-side) > via Virtual file system (VFS)](/docs/0.2/fonts/custom-fonts-client-side/vfs/) +For a complete description of use custom fonts in client-side, read the article: [Custom fonts (client-side) > via Virtual file system (VFS)](/docs/0.3/fonts/custom-fonts-client-side/vfs/) If you don't want to install gulp and/or just downloaded pdfMake and want to use custom fonts in client-side, you can generate the `vfs_fonts.js` with an PHP script as well. Put the code below in a file on a server with the font files you want to include in the same directory and view it in a browser. Use parameter "?tofile" in the URL to write the output to "vfs_fonts.js" in the same directory on the server, otherwise it outputs in the browser window for you to copy/paste. diff --git a/content/fonts/custom-fonts-client-side/vfs/shell.md b/content/fonts/custom-fonts-client-side/vfs/shell.md index 277c19b..ea2b5e6 100644 --- a/content/fonts/custom-fonts-client-side/vfs/shell.md +++ b/content/fonts/custom-fonts-client-side/vfs/shell.md @@ -6,7 +6,7 @@ alwaysopen = false +++ -For a complete description of use custom fonts in client-side, read the article: [Custom fonts (client-side) > via Virtual file system (VFS)](/docs/0.2/fonts/custom-fonts-client-side/vfs/) +For a complete description of use custom fonts in client-side, read the article: [Custom fonts (client-side) > via Virtual file system (VFS)](/docs/0.3/fonts/custom-fonts-client-side/vfs/) If you don't want to install gulp and/or just downloaded pdfMake and want to use custom fonts in client-side, you can generate the `vfs_fonts.js` with an bash-script as well: diff --git a/content/fonts/icons.md b/content/fonts/icons.md index e9da85b..05886a7 100644 --- a/content/fonts/icons.md +++ b/content/fonts/icons.md @@ -7,7 +7,7 @@ alwaysopen = true - make a font at http://fontello.com/ or something and download it -- from font file (for example .ttf) create vfs_fonts.js file (see how to [use custom fonts](/docs/0.2/fonts/custom-fonts-client-side/#1-create-a-new-vfs-fonts-js-containing-your-font-files)) +- from font file (for example .ttf) create vfs_fonts.js file (see how to [use custom fonts](/docs/0.3/fonts/custom-fonts-client-side/#1-create-a-new-vfs-fonts-js-containing-your-font-files)) - define font in js (just defining normal might be enough): ```js diff --git a/content/getting-started/client-side/_index.md b/content/getting-started/client-side/_index.md index ca44f61..aba59a3 100644 --- a/content/getting-started/client-side/_index.md +++ b/content/getting-started/client-side/_index.md @@ -8,7 +8,7 @@ alwaysopen = true To begin in browser with the default configuration, you should include two files: * **pdfmake.min.js**, -* **vfs_fonts.js** - default font definition (it contains Roboto, you can however [use custom fonts instead](/docs/0.2/fonts/custom-fonts-client-side/)) +* **vfs_fonts.js** - default font definition (it contains Roboto, you can however [use custom fonts instead](/docs/0.3/fonts/custom-fonts-client-side/)) ```html @@ -82,4 +82,4 @@ exclude: [ /node_modules/, /pdfmake.js$/ ] #### Repository -Copy them directly from the build directory from the repository. Otherwise you can always [build it version 0.2.x from sources](https://github.com/bpampuch/pdfmake#building-from-sources). +Copy them directly from the build directory from the repository. Otherwise you can always [build it version 0.3.x from sources](https://github.com/bpampuch/pdfmake#building-from-sources). diff --git a/content/getting-started/client-side/methods.md b/content/getting-started/client-side/methods.md index 3c5c257..a8a20c3 100644 --- a/content/getting-started/client-side/methods.md +++ b/content/getting-started/client-side/methods.md @@ -14,7 +14,7 @@ pdfMake.createPdf(docDefinition, options).download(); Parameters: * `filename` _(optional)_ - PDF document file name (default 'file.pdf') -* `options` _(optional)_ - advanced options see [options chapter](/docs/0.2/options/) +* `options` _(optional)_ - advanced options see [options chapter](/docs/0.3/options/) #### Open the PDF in a new window ```js @@ -25,9 +25,9 @@ pdfMake.createPdf(docDefinition, options).open(); Parameters: * `win` _(optional)_ - window (when an asynchronous operation) -* `options` _(optional)_ - advanced options see [options chapter](/docs/0.2/options/) +* `options` _(optional)_ - advanced options see [options chapter](/docs/0.3/options/) -Name can be defined only by using metadata `title` property (see [Document metadata](/docs/0.2/document-definition-object/document-medatadata/)). +Name can be defined only by using metadata `title` property (see [Document metadata](/docs/0.3/document-definition-object/document-medatadata/)). Asynchronous example: ```js @@ -55,7 +55,7 @@ pdfMake.createPdf(docDefinition, options).print(); Parameters: * `win` _(optional)_ - window (when an asynchronous operation) -* `options` _(optional)_ - advanced options see [options chapter](/docs/0.2/options/) +* `options` _(optional)_ - advanced options see [options chapter](/docs/0.3/options/) Asynchronous example: ```js @@ -89,7 +89,7 @@ pdfMake.createPdf(docDefinition).getDataUrl() ``` Parameters: -* `options` _(optional)_ - advanced options see [options chapter](/docs/0.2/options/) +* `options` _(optional)_ - advanced options see [options chapter](/docs/0.3/options/) #### Get the PDF as base64 data ```js @@ -103,7 +103,7 @@ pdfMake.createPdf(docDefinition, options).getBase64() ``` Parameters: -* `options` _(optional)_ - advanced options see [options chapter](/docs/0.2/options/) +* `options` _(optional)_ - advanced options see [options chapter](/docs/0.3/options/) #### Get the PDF as buffer ```js @@ -115,7 +115,7 @@ pdfMake.createPdf(docDefinition).getBuffer().then((buffer) => { ``` Parameters: -* `options` _(optional)_ - advanced options see [options chapter](/docs/0.2/options/) +* `options` _(optional)_ - advanced options see [options chapter](/docs/0.3/options/) #### Get the PDF as Blob ```js @@ -127,7 +127,7 @@ pdfMake.createPdf(docDefinition).getBlob().then((blob) => { ``` Parameters: -* `options` _(optional)_ - advanced options see [options chapter](/docs/0.2/options/) +* `options` _(optional)_ - advanced options see [options chapter](/docs/0.3/options/) #### Get document object as stream diff --git a/content/getting-started/server-side/_index.md b/content/getting-started/server-side/_index.md index da2c01b..115dc79 100644 --- a/content/getting-started/server-side/_index.md +++ b/content/getting-started/server-side/_index.md @@ -42,4 +42,4 @@ pdfDoc.end(); Parameters for `createPdfKitDocument`: * `docDefinition` - object with document definition -* `options` _(optional)_ - advanced options see [options chapter](/docs/0.2/options/) \ No newline at end of file +* `options` _(optional)_ - advanced options see [options chapter](/docs/0.3/options/) \ No newline at end of file diff --git a/content/getting-started/server-side/methods.md b/content/getting-started/server-side/methods.md index fc72d0c..7dc6183 100644 --- a/content/getting-started/server-side/methods.md +++ b/content/getting-started/server-side/methods.md @@ -16,4 +16,4 @@ pdfMake.createPdf(docDefinition).write(filename).then(() => { Parameters: * `filename` - PDF document file name -* `options` _(optional)_ - advanced options see [options chapter](/docs/0.2/options/) \ No newline at end of file +* `options` _(optional)_ - advanced options see [options chapter](/docs/0.3/options/) \ No newline at end of file diff --git a/content/options/_index.md b/content/options/_index.md index 390e6e2..ed3b14e 100644 --- a/content/options/_index.md +++ b/content/options/_index.md @@ -5,7 +5,7 @@ weight = 30 alwaysopen = true +++ -Advanced options for creating document used in [client-side methods](/docs/0.2/getting-started/client-side/methods/) or [server-side method](/docs/0.2/getting-started/server-side/). +Advanced options for creating document used in [client-side methods](/docs/0.3/getting-started/client-side/methods/) or [server-side method](/docs/0.3/getting-started/server-side/). Options: