blob: 38df5985fadabeeda4bd27babe2a5acfdbc07a4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
\documentclass{article}
\usepackage{docassembly}
\usepackage{lipsum}
\hypersetup{pdfpagemode=UseNone}
% Look in the Adobe Acrobat JavaScript manual under the doc.saveAs() to see all the possible parameters.
\begin{docassembly}
% save a copy of this PDF for the archives
var retn=\docSaveAs({
cPath: "\jobname-copy.pdf",
bCopy: true
});
% This method can also be used to make conversions, for example, you can save a PDF as a PNG
% Here, we make a PNG image of each page in this document.
var retn=\docSaveAs({
cConvID: "com.adobe.acrobat.png",
cPath: "\jobname.png"
});
\executeSave();
\end{docassembly}
\begin{document}
\lipsum[1-30]
\end{document}
|