diff options
Diffstat (limited to 'texmf-dist/doc/latex/docassembly/examples/extract-pages.tex')
-rw-r--r-- | texmf-dist/doc/latex/docassembly/examples/extract-pages.tex | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/texmf-dist/doc/latex/docassembly/examples/extract-pages.tex b/texmf-dist/doc/latex/docassembly/examples/extract-pages.tex new file mode 100644 index 00000000..7cfc1af7 --- /dev/null +++ b/texmf-dist/doc/latex/docassembly/examples/extract-pages.tex @@ -0,0 +1,24 @@ +\documentclass{article} +\usepackage{docassembly} +\usepackage{lipsum} + +\hypersetup{pdfpagemode=UseNone} + +% Look in the Adobe Acrobat JavaScript manual under the doc.extractPages to see all the possible parameters. +% nStart and nEnd are 0-based page numbers, so nStart:1 and nEnd:2 extracts pages 2 and 3 +\begin{docassembly} +\retnAbsPathAs(_path); +_path += "/extracted-pages.pdf"; +\extractPages({ + nStart: 1, + nEnd: 2, + cPath: _path +}); +\executeSave(); +\end{docassembly} + +\begin{document} + +\lipsum[1-30] + +\end{document}
\ No newline at end of file |