Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 19747 → Rev 19746

/branches/Version14x/Scribus/scribus/doc/de/scripterapi-PDFfile.html
45,9 → 45,6
<dd><code>Choose binding.<br>
0 - Left binding<br>
1 - Right binding</code></dd>
<dt><strong>bleedMarks</strong> = &lt;attribute 'bleedMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Create marks delimiting the bleed area.</code></dd>
 
<dt><strong>bleedb</strong> = &lt;member 'bleedb' of 'PDFfile' objects&gt;</dt>
<dd><code>Bleed Bottom<br>Distance for bleed from the bottom of the physical page</code></dd>
64,9 → 61,6
<dt><strong>bookmarks</strong> = &lt;member 'bookmarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Embed the bookmarks you created in your document.<br>These are useful for navigating long PDF documents.<br>Bool value</code></dd>
 
<dt><strong>colorMarks</strong> = &lt;member 'colorMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Add color calibration bars.</code></dd>
<dt><strong>compress</strong> = &lt;member 'compress' of 'PDFfile' objects&gt;</dt>
<dd><code>Compression switch. Bool value.</code></dd>
 
76,27 → 70,6
1 - JPEG<br>
2 - zip<br>
3 - None.</code></dd>
<dt><strong>cropMarks</strong> = &lt;attribute 'cropMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Create crop marks in the PDF indicating where the paper should be cut or trimmed after printing.</code></dd>
<dt><strong>displayBookmarks</strong> = &lt;attribute 'displayBookmarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Display the bookmarks upon opening.</code></dd>
<dt><strong>displayFullscreen</strong> = &lt;attribute 'displayFullscreen' of 'PDFfile' objects&gt;</dt>
<dd><code>Display the document in full screen mode upon opening.</code></dd>
<dt><strong>displayLayers</strong> = &lt;attribute 'displayLayers' of 'PDFfile' objects&gt;</dt>
<dd><code>Display the layer list upon opening. Useful only for PDF 1.5+.</code></dd>
<dt><strong>displayThumbs</strong> = &lt;attribute 'displayThumbs' of 'PDFfile' objects&gt;</dt>
<dd><code>Display the page thumbnails upon opening.</code></dd>
<dt><strong>docInfoMarks</strong> = &lt;member 'docInfoMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Add document information which includes the document title and page numbers.</code></dd>
<dt><strong>doClip</strong> = &lt;attribute 'doClip' of 'PDFfile' objects&gt;</dt>
<dd><code>Do not show objects outside the margins in the exported file.</code></dd>
 
<dt><strong>downsample</strong> = &lt;attribute 'downsample' of 'PDFfile' objects&gt;</dt>
<dd><code>Downsample image resolusion to this value. Values from 35 to 4000<br>Set 0 for not to downsample</code></dd>
131,11 → 104,6
4 - Top-left to Bottom-Right
</pre></code></dd>
 
<dt><strong>embedPDF</strong> = &lt;member 'embedPDF' of 'PDFfile' objects&gt;</dt>
<dd><code>Export PDFs in image frames as embedded PDFs.<br>
This does *not* yet take care of colorspaces, so you should know what you are doing before setting this to 'true'.<br>
Bool value.</code></dd>
 
<dt><strong>encrypt</strong> = &lt;member 'encrypt' of 'PDFfile' objects&gt;</dt>
<dd><code>Use Encription. Bool value</code></dd>
 
142,18 → 110,9
<dt><strong>file</strong> = &lt;attribute 'file' of 'PDFfile' objects&gt;</dt>
<dd><code>Name of file to save into</code></dd>
 
<dt><strong>fitWindow</strong> = &lt;attribute 'fitWindow' of 'PDFfile' objects&gt;</dt>
<dd><code>Fit the document page or pages to the available space in the viewer window.</code></dd>
 
<dt><strong>fonts</strong> = &lt;attribute 'fonts' of 'PDFfile' objects&gt;</dt>
<dd><code>List of fonts to embed.</code></dd>
 
<dt><strong>hideMenuBar</strong> = &lt;attribute 'hideMenuBar' of 'PDFfile' objects&gt;</dt>
<dd><code>Hides the viewer menu bar, the PDF will display in a plain window.</code></dd>
 
<dt><strong>hideToolBar</strong> = &lt;attribute 'hideToolBar' of 'PDFfile' objects&gt;</dt>
<dd><code>Hides the viewer toolbar. The toolbar has usually selection and other editing capabilities.</code></dd>
 
<dt><strong>imagepr</strong> = &lt;attribute 'imagepr' of 'PDFfile' objects&gt;</dt>
<dd><code>Color profile for images</code></dd>
 
174,9 → 133,6
2 - Saturation<br>
3 - Absolute Colorimetric</code></dd>
 
<dt><strong>isGrayscale</strong> = &lt;attribute 'isGrayscale' of 'PDFfile' objects&gt;</dt>
<dd><code>Export PDF in grayscale.</code></dd>
 
<dt><strong>lpival</strong> = &lt;attribute 'lpival' of 'PDFfile' objects&gt;</dt>
<dd><code>Rendering Settings for individual colors.<br>
<pre>
193,15 → 149,6
</pre>
Be careful when supplying these values as they are not checked for validity.</code></dd>
 
<dt><strong>markOffset</strong> = &lt;member 'markOffset' of 'PDFfile' objects&gt;</dt>
<dd><code>Indicate the distance offset between mark and page area.</code></dd>
 
<dt><strong>mirrorH</strong> = &lt;member 'mirrorH' of 'PDFfile' objects&gt;</dt>
<dd><code>Mirror Page(s) horizontally. Bool value.</code></dd>
 
<dt><strong>mirrorV</strong> = &lt;member 'mirrorV' of 'PDFfile' objects&gt;</dt>
<dd><code>Mirror Page(s) vertically. Bool value.</code></dd>
 
<dt><strong>noembicc</strong> = &lt;member 'noembicc' of 'PDFfile' objects&gt;</dt>
<dd><code>Don't use embedded ICC profiles. Bool value</code></dd>
 
213,13 → 160,6
<dt><strong>owner</strong> = &lt;attribute 'owner' of 'PDFfile' objects&gt;</dt>
<dd><code>Owner's password</code></dd>
 
<dt><strong>pageLayout</strong> = &lt;attribute 'pageLayout' of 'PDFfile' objects&gt;</dt>
<dd><code>Document layout in PDF viewer:<br>
0 - Show the document in single page mode<br>
1 - Show the document in single page mode with the pages displayed continuously end to end like a scroll<br>
2 - Show the document with facing pages, starting with the first page displayed on the left<br>
3 - Show the document with facing pages, starting with the first page displayed on the right</code></dd>
 
<dt><strong>pages</strong> = &lt;attribute 'pages' of 'PDFfile' objects&gt;</dt>
<dd><code>List of pages to print</code></dd>
 
243,9 → 183,6
3 - Low<br>
4 - Minimum</code></dd>
 
<dt><strong>registrationMarks</strong> = &lt;attribute 'registrationMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Add registration marks to each separation.</code></dd>
 
<dt><strong>resolution</strong> = &lt;attribute 'resolution' of 'PDFfile' objects&gt;</dt>
<dd><code>Resolution of output file. Values from 35 to 4000.</code></dd>
 
258,9 → 195,6
<dt><strong>usedocbleeds</strong> = &lt;attribute 'usedocbleeds' of 'PDFfile' objects&gt;</dt>
<dd><code>Use the existing bleed settings from the document preferences. Bool value.</code></dd>
 
<dt><strong>useLayers</strong> = &lt;attribute 'useLayers' of 'PDFfile' objects&gt;</dt>
<dd><code>Layers in your document are exported to the PDF. Only available with PDF >= 1.5.</code></dd>
 
<dt><strong>uselpi</strong> = &lt;member 'uselpi' of 'PDFfile' objects&gt;</dt>
<dd><code>Use Custom Rendering Settings. Bool value</code></dd>
 
/branches/Version14x/Scribus/scribus/doc/en/scripterapi-PDFfile.html
45,9 → 45,6
<dd><code>Choose binding.<br>
0 - Left binding<br>
1 - Right binding</code></dd>
<dt><strong>bleedMarks</strong> = &lt;attribute 'bleedMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Create marks delimiting the bleed area.</code></dd>
 
<dt><strong>bleedb</strong> = &lt;member 'bleedb' of 'PDFfile' objects&gt;</dt>
<dd><code>Bleed Bottom<br>Distance for bleed from the bottom of the physical page</code></dd>
64,9 → 61,6
<dt><strong>bookmarks</strong> = &lt;member 'bookmarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Embed the bookmarks you created in your document.<br>These are useful for navigating long PDF documents.<br>Bool value</code></dd>
 
<dt><strong>colorMarks</strong> = &lt;member 'colorMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Add color calibration bars.</code></dd>
<dt><strong>compress</strong> = &lt;member 'compress' of 'PDFfile' objects&gt;</dt>
<dd><code>Compression switch. Bool value.</code></dd>
 
76,27 → 70,6
1 - JPEG<br>
2 - zip<br>
3 - None.</code></dd>
<dt><strong>cropMarks</strong> = &lt;attribute 'cropMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Create crop marks in the PDF indicating where the paper should be cut or trimmed after printing.</code></dd>
<dt><strong>displayBookmarks</strong> = &lt;attribute 'displayBookmarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Display the bookmarks upon opening.</code></dd>
<dt><strong>displayFullscreen</strong> = &lt;attribute 'displayFullscreen' of 'PDFfile' objects&gt;</dt>
<dd><code>Display the document in full screen mode upon opening.</code></dd>
<dt><strong>displayLayers</strong> = &lt;attribute 'displayLayers' of 'PDFfile' objects&gt;</dt>
<dd><code>Display the layer list upon opening. Useful only for PDF 1.5+.</code></dd>
<dt><strong>displayThumbs</strong> = &lt;attribute 'displayThumbs' of 'PDFfile' objects&gt;</dt>
<dd><code>Display the page thumbnails upon opening.</code></dd>
<dt><strong>docInfoMarks</strong> = &lt;member 'docInfoMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Add document information which includes the document title and page numbers.</code></dd>
<dt><strong>doClip</strong> = &lt;attribute 'doClip' of 'PDFfile' objects&gt;</dt>
<dd><code>Do not show objects outside the margins in the exported file.</code></dd>
 
<dt><strong>downsample</strong> = &lt;attribute 'downsample' of 'PDFfile' objects&gt;</dt>
<dd><code>Downsample image resolusion to this value. Values from 35 to 4000<br>Set 0 for not to downsample</code></dd>
131,11 → 104,6
4 - Top-left to Bottom-Right
</pre></code></dd>
 
<dt><strong>embedPDF</strong> = &lt;member 'embedPDF' of 'PDFfile' objects&gt;</dt>
<dd><code>Export PDFs in image frames as embedded PDFs.<br>
This does *not* yet take care of colorspaces, so you should know what you are doing before setting this to 'true'.<br>
Bool value.</code></dd>
 
<dt><strong>encrypt</strong> = &lt;member 'encrypt' of 'PDFfile' objects&gt;</dt>
<dd><code>Use Encription. Bool value</code></dd>
 
142,18 → 110,9
<dt><strong>file</strong> = &lt;attribute 'file' of 'PDFfile' objects&gt;</dt>
<dd><code>Name of file to save into</code></dd>
 
<dt><strong>fitWindow</strong> = &lt;attribute 'fitWindow' of 'PDFfile' objects&gt;</dt>
<dd><code>Fit the document page or pages to the available space in the viewer window.</code></dd>
 
<dt><strong>fonts</strong> = &lt;attribute 'fonts' of 'PDFfile' objects&gt;</dt>
<dd><code>List of fonts to embed.</code></dd>
 
<dt><strong>hideMenuBar</strong> = &lt;attribute 'hideMenuBar' of 'PDFfile' objects&gt;</dt>
<dd><code>Hides the viewer menu bar, the PDF will display in a plain window.</code></dd>
 
<dt><strong>hideToolBar</strong> = &lt;attribute 'hideToolBar' of 'PDFfile' objects&gt;</dt>
<dd><code>Hides the viewer toolbar. The toolbar has usually selection and other editing capabilities.</code></dd>
 
<dt><strong>imagepr</strong> = &lt;attribute 'imagepr' of 'PDFfile' objects&gt;</dt>
<dd><code>Color profile for images</code></dd>
 
174,9 → 133,6
2 - Saturation<br>
3 - Absolute Colorimetric</code></dd>
 
<dt><strong>isGrayscale</strong> = &lt;attribute 'isGrayscale' of 'PDFfile' objects&gt;</dt>
<dd><code>Export PDF in grayscale.</code></dd>
 
<dt><strong>lpival</strong> = &lt;attribute 'lpival' of 'PDFfile' objects&gt;</dt>
<dd><code>Rendering Settings for individual colors.<br>
<pre>
193,15 → 149,6
</pre>
Be careful when supplying these values as they are not checked for validity.</code></dd>
 
<dt><strong>markOffset</strong> = &lt;member 'markOffset' of 'PDFfile' objects&gt;</dt>
<dd><code>Indicate the distance offset between mark and page area.</code></dd>
 
<dt><strong>mirrorH</strong> = &lt;member 'mirrorH' of 'PDFfile' objects&gt;</dt>
<dd><code>Mirror Page(s) horizontally. Bool value.</code></dd>
 
<dt><strong>mirrorV</strong> = &lt;member 'mirrorV' of 'PDFfile' objects&gt;</dt>
<dd><code>Mirror Page(s) vertically. Bool value.</code></dd>
 
<dt><strong>noembicc</strong> = &lt;member 'noembicc' of 'PDFfile' objects&gt;</dt>
<dd><code>Don't use embedded ICC profiles. Bool value</code></dd>
 
213,13 → 160,6
<dt><strong>owner</strong> = &lt;attribute 'owner' of 'PDFfile' objects&gt;</dt>
<dd><code>Owner's password</code></dd>
 
<dt><strong>pageLayout</strong> = &lt;attribute 'pageLayout' of 'PDFfile' objects&gt;</dt>
<dd><code>Document layout in PDF viewer:<br>
0 - Show the document in single page mode<br>
1 - Show the document in single page mode with the pages displayed continuously end to end like a scroll<br>
2 - Show the document with facing pages, starting with the first page displayed on the left<br>
3 - Show the document with facing pages, starting with the first page displayed on the right</code></dd>
 
<dt><strong>pages</strong> = &lt;attribute 'pages' of 'PDFfile' objects&gt;</dt>
<dd><code>List of pages to print</code></dd>
 
243,9 → 183,6
3 - Low<br>
4 - Minimum</code></dd>
 
<dt><strong>registrationMarks</strong> = &lt;attribute 'registrationMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Add registration marks to each separation.</code></dd>
 
<dt><strong>resolution</strong> = &lt;attribute 'resolution' of 'PDFfile' objects&gt;</dt>
<dd><code>Resolution of output file. Values from 35 to 4000.</code></dd>
 
258,9 → 195,6
<dt><strong>usedocbleeds</strong> = &lt;attribute 'usedocbleeds' of 'PDFfile' objects&gt;</dt>
<dd><code>Use the existing bleed settings from the document preferences. Bool value.</code></dd>
 
<dt><strong>useLayers</strong> = &lt;attribute 'useLayers' of 'PDFfile' objects&gt;</dt>
<dd><code>Layers in your document are exported to the PDF. Only available with PDF >= 1.5.</code></dd>
 
<dt><strong>uselpi</strong> = &lt;member 'uselpi' of 'PDFfile' objects&gt;</dt>
<dd><code>Use Custom Rendering Settings. Bool value</code></dd>
 
/branches/Version14x/Scribus/scribus/doc/fr/scripterapi-PDFfile.html
26,51 → 26,45
<dt><strong>__new__</strong> = &lt;m&eacute;thode int&eacute;gr&eacute;e __new__ de type objet&gt;</dt>
<dd><code>T.<a href="#PDFfile-__new__">__new__</a>(S, ...) -&gt; un nouvel objet de type S, un sous-type de T</code></dd>
 
<dt><strong>aanot</strong> = &lt;membre 'aanot' de la classe 'PDFfile'&gt;</dt>
<dt><strong>aanot</strong> = &lt;membre 'aanot' des objets 'PDFfile'&gt;</dt>
<dd><code>Autorise l'ajout d'annotations et de champs. Valeur bool&eacute;enne</code></dd>
 
<dt><strong>achange</strong> = &lt;membre 'achange' de la classe 'PDFfile'&gt;</dt>
<dt><strong>achange</strong> = &lt;membre 'achange' des objets 'PDFfile'&gt;</dt>
<dd><code>Autorise la modification du document. Valeur bool&eacute;enne</code></dd>
 
<dt><strong>acopy</strong> = &lt;membre 'acopy' de la classe 'PDFfile'&gt;</dt>
<dt><strong>acopy</strong> = &lt;membre 'acopy' des objets 'PDFfile'&gt;</dt>
<dd><code>Autorise la copie de texte et de graphiques. Valeur bool&eacute;enne</code></dd>
 
<dt><strong>aprint</strong> = &lt;membre 'aprint' de la classe 'PDFfile'&gt;</dt>
<dt><strong>aprint</strong> = &lt;membre 'aprint' des objets 'PDFfile'&gt;</dt>
<dd><code>Autorise l'impression du document. Valeur bool&eacute;enne</code></dd>
 
<dt><strong>article</strong> = &lt;membre 'article' de la classe 'PDFfile'&gt;</dt>
<dt><strong>article</strong> = &lt;membre 'article' des objets 'PDFfile'&gt;</dt>
<dd><code>Enregistre les cadres de texte li&eacute;s en tant qu'articles PDF<br> Valeur bool&eacute;enne</code></dd>
 
<dt><strong>binding</strong> = &lt;membre 'binding' de la classe 'PDFfile'&gt;</dt>
<dt><strong>binding</strong> = &lt;membre 'binding' des objets 'PDFfile'&gt;</dt>
<dd><code>Indique la liaison.<br>
0 - Liaison &agrave; gauche<br>
1 - Liaison &agrave; droite</code></dd>
 
<dt><strong>bleedMarks</strong> = &lt;membre 'bleedMarks' de la classe 'PDFfile'&gt;</dt>
<dd><code>Crée les rep&egrave;res d&eacute;limitant la zone de fond perdus.</code></dd>
<dt><strong>bleedb</strong> = &lt;membre 'bleedb' de la classe 'PDFfile'&gt;</dt>
<dt><strong>bleedb</strong> = &lt;membre 'bleedb' des objets 'PDFfile'&gt;</dt>
<dd><code>Marge de coupe du bas<br>Distance pour la coupe &agrave; partir du bas de la page physique</code></dd>
 
<dt><strong>bleedl</strong> = &lt;membre 'bleedl' de la classe 'PDFfile'&gt;</dt>
<dt><strong>bleedl</strong> = &lt;membre 'bleedl' des objets 'PDFfile'&gt;</dt>
<dd><code>Marge de coupe de gauche<br>Distance pour la coupe &agrave; partir de la gauche de la page physique</code></dd>
 
<dt><strong>bleedr</strong> = &lt;membre 'bleedr' de la classe 'PDFfile'&gt;</dt>
<dt><strong>bleedr</strong> = &lt;membre 'bleedr' des objets 'PDFfile'&gt;</dt>
<dd><code>Marge de coupe de droite<br>Distance pour la coupe &agrave; partir de la droite de la page physique</code></dd>
 
<dt><strong>bleedt</strong> = &lt;membre 'bleedt' de la classe 'PDFfile'&gt;</dt>
<dt><strong>bleedt</strong> = &lt;membre 'bleedt' des objets 'PDFfile'&gt;</dt>
<dd><code>Marge de coupe du haut<br>Distance pour la coupe &agrave; partir du haut de la page physique</code></dd>
 
<dt><strong>bookmarks</strong> = &lt;membre 'bookmarks' de la classe 'PDFfile'&gt;</dt>
<dt><strong>bookmarks</strong> = &lt;membre 'bookmarks' des objets 'PDFfile'&gt;</dt>
<dd><code>Inclus les signets que vous avez cr&eacute;&eacute;s dans votre document.<br>Ils sont utiles pour la navigation dans de longs documents PDF.<br>Valeur bool&eacute;enne</code></dd>
 
<dt><strong>colorMarks</strong> = &lt;membre 'colorMarks' de la classe 'PDFfile'&gt;</dt>
<dd><code>Ajoute les barres de contr&ocirc;les.</code></dd>
<dt><strong>compress</strong> = &lt;membre 'compress' de la classe 'PDFfile'&gt;</dt>
<dt><strong>compress</strong> = &lt;membre 'compress' des objets 'PDFfile'&gt;</dt>
<dd><code>Indicateur de compression. Valeur bool&eacute;enne.</code></dd>
 
<dt><strong>compressmtd</strong> = &lt;membre 'compressmtd' de la classe 'PDFfile'&gt;</dt>
<dt><strong>compressmtd</strong> = &lt;membre 'compressmtd' des objets 'PDFfile'&gt;</dt>
<dd><code>M&eacute;thode de compression.<br>
0 - Automatique<br>
1 - JPEG<br>
77,32 → 71,11
2 - zip<br>
3 - Aucune.</code></dd>
 
<dt><strong>cropMarks</strong> = &lt;membre 'cropMarks' de la classe 'PDFfile'&gt;</dt>
<dd><code>Cr&eacute;e des rep&egrave;res indiquant o&ugrave le papier doit &ecirc;tre coup&eacute; ou rogn&eacute; apr&egrave;s impression.</code></dd>
 
<dt><strong>displayBookmarks</strong> = &lt;membre 'displayBookmarks' de la classe 'PDFfile'&gt;</dt>
<dd><code>Affiche l'onglet des signets lors de l'ouverture du document PDF.</code></dd>
<dt><strong>displayFullscreen</strong> = &lt;membre 'displayFullscreen' de la classe 'PDFfile'&gt;</dt>
<dd><code>Affiche le document PDF en mode plein &eacute;cran lors de son ouverture.</code></dd>
<dt><strong>displayLayers</strong> = &lt;membre 'displayLayers' de la classe 'PDFfile'&gt;</dt>
<dd><code>Affiche l'onglet des calques lors de l'ouverture du document PDF. Utile uniquement pour les fichiers PDF 1.5+.</code></dd>
<dt><strong>displayThumbs</strong> = &lt;membre 'displayThumbs' de la classe 'PDFfile'&gt;</dt>
<dd><code>Affiche les vignettes de pages lors de l'ouverture du document PDF.</code></dd>
<dt><strong>docInfoMarks</strong> = &lt;membre 'docInfoMarks' de la classe 'PDFfile'&gt;</dt>
<dd><code>Ajoute les informations de titre de document et de num&eacute;ros de pages à l'ext&eacute;rieur de la zone de page.</code></dd>
<dt><strong>doClip</strong> = &lt;membre 'doClip' de la classe 'PDFfile'&gt;</dt>
<dd><code>Emp&ecirc;che l'affichage des objets situ&eacute;s hors des marges.</code></dd>
<dt><strong>downsample</strong> = &lt;attribut 'downsample' de la classe 'PDFfile'&gt;</dt>
<dt><strong>downsample</strong> = &lt;attribut 'downsample' des objets 'PDFfile'&gt;</dt>
<dd><code>R&eacute;duit la r&eacute;solution de l'image &agrave; cette valeur. Les
valeurs sont comprises entre 35 et 4000<br>Mettre &agrave; 0 pour ne pas modifier la r&eacute;solution</code></dd>
 
<dt><strong>effval</strong> = &lt;attribut 'effval' de la classe 'PDFfile'&gt;</dt>
<dt><strong>effval</strong> = &lt;attribut 'effval' des objets 'PDFfile'&gt;</dt>
<dd><code>Liste des valeurs des effets pour chaque page enregistr&eacute;e.<br>
<pre>
Il s'agit d'une liste de six nombres entiers. Ils ont la signification suivante:
132,53 → 105,36
4 - Du coin sup&eacute;rieur gauche au coin inf&eacute;rieur droit
</pre></code></dd>
 
<dt><strong>embedPDF</strong> = &lt;membre 'embedPDF' de la classe 'PDFfile'&gt;;</dt>
<dd><code>Exporte les fichiers EPS et PDF charg&eacute;s dans des cadres d'images sous forme d'objets PDF.<br>
Cette fonctionnalit&eacute; ne traite pas les espaces de couleurs, en conséquence cette option ne doit &ecirctre activée qu'en connaissance de cause.<br>
Valeur bool&eacute;enne.</code></dd>
 
<dt><strong>encrypt</strong> = &lt;membre 'encrypt' de la classe 'PDFfile'&gt;</dt>
<dt><strong>encrypt</strong> = &lt;membre 'encrypt' des objets 'PDFfile'&gt;</dt>
<dd><code>Utilisation de l'encryption. Valeur bool&eacute;enne</code></dd>
 
<dt><strong>file</strong> = &lt;attribut 'file' de la classe 'PDFfile'&gt;</dt>
<dt><strong>file</strong> = &lt;attribut 'file' des objets 'PDFfile'&gt;</dt>
<dd><code>Nom du fichier dans lequel enregistrer</code></dd>
 
<dt><strong>fitWindow</strong> = &lt;attribut 'fitWindow' de la classe 'PDFfile'&gt;</dt>
<dd><code>Adapte l'affichage des pages &agrave; l'espace disponible dans la fen&ecirc;tre du visualisateur.</code></dd>
 
<dt><strong>fonts</strong> = &lt;membre 'fonts' de la classe 'PDFfile'&gt;</dt>
<dt><strong>fonts</strong> = &lt;membre 'fonts' des objets 'PDFfile'&gt;</dt>
<dd><code>Liste de polices &agrave; inclure.</code></dd>
 
<dt><strong>hideMenuBar</strong> = &lt;attribut 'hideMenuBar' de la classe 'PDFfile'&gt;</dt>
<dd><code>Cache la barre de menu du visualisateur, le PDF s'affichera pleine fen&ecirc;tre.</code></dd>
 
<dt><strong>hideToolBar</strong> = &lt;attribut 'hideToolBar' de la classe 'PDFfile'&gt;</dt>
<dd><code>Cache la barre d'outil du visualisateur. Cette barre a habituellement des fonctionnalit&eacute;es d'&eacute;dition et de s&eacute;lection.</code></dd>
 
<dt><strong>imagepr</strong> = &lt;attribut 'imagepr' de la classe 'PDFfile'&gt;</dt>
<dt><strong>imagepr</strong> = &lt;attribut 'imagepr' des objets 'PDFfile'&gt;</dt>
<dd><code>Profil couleur pour les images</code></dd>
 
<dt><strong>info</strong> = &lt;attribut 'info' de la classe 'PDFfile'&gt;</dt>
<dt><strong>info</strong> = &lt;attribut 'info' des objets 'PDFfile'&gt;</dt>
<dd><code>Cha&icirc;ne requise pour PDF/X-3, sinon le PDF ne sera pas conforme &agrave; PDF/X-3. Nous vous recommandons d'utiliser le titre du document.</code></dd>
 
<dt><strong>intenti</strong> = &lt;membre 'intenti' de la classe 'PDFfile'&gt;</dt>
<dd><code>Intention de rendu pour les images<br>
<dt><strong>intenti</strong> = &lt;membre 'intenti' des objets 'PDFfile'&gt;</dt>
<dd><code>Rendu pour les images<br>
0 - Perceptuel<br>
1 - Colorim&eacute;trie relative<br>
2 - Saturation<br>
3 - Colorim&eacute;trie absolue</code></dd>
 
<dt><strong>intents</strong> = &lt;membre 'intents' de la classe 'PDFfile'&gt;</dt>
<dd><code>Intention de rendu pour les d'aplats<br>
<dt><strong>intents</strong> = &lt;membre 'intents' des objets 'PDFfile'&gt;</dt>
<dd><code>Rendu pour les couleurs d'accompagnement<br>
0 - Perceptuel<br>
1 - Colorim&eacute;trie relative<br>
2 - Saturation<br>
3 - Colorim&eacute;trie absolue</code></dd>
 
<dt><strong>isGrayscale</strong> = &lt;attribut 'isGrayscale' de la classe 'PDFfile'&gt;</dt>
<dd><code>Exporte le fichier PDF en mode niveaux de gris.</code></dd>
 
<dt><strong>lpival</strong> = &lt;attribut 'lpival' de la classe 'PDFfile'&gt;</dt>
<dt><strong>lpival</strong> = &lt;attribut 'lpival' des objets 'PDFfile'&gt;</dt>
<dd><code>Param&egrave;tres du rendu pour des couleurs individuelles.<br>
<pre>
Il s'agit d'une liste de valeurs pour chaque couleur
195,49 → 151,33
</pre>
Soyez prudent en assignant ces valeurs, car leur validit&eacute; n'est pas v&eacute;rifi&eacute;e.</code></dd>
 
<dt><strong>markOffset</strong> = &lt;attribut 'markOffset' de la classe 'PDFfile'&gt;</dt>
<dd><code>Indique la distance entre les rep&egrave;res et la zone de page correspondante.</code></dd>
 
<dt><strong>mirrorH</strong> = &lt;attribut 'mirrorH' de la classe 'PDFfile'&gt;</dt>
<dd><code>Effectue un miroir horizontal des pages. Valeur bool&eacute;enne.</code></dd>
 
<dt><strong>mirrorV</strong> = &lt;attribut 'mirrorV' de la classe 'PDFfile'&gt;</dt>
<dd><code>Effectue un miroir vertical des pages. Valeur bool&eacute;enne.</code></dd>
 
<dt><strong>noembicc</strong> = &lt;membre 'noembicc' de la classe 'PDFfile'&gt;</dt>
<dt><strong>noembicc</strong> = &lt;membre 'noembicc' des objets 'PDFfile'&gt;</dt>
<dd><code>Ne pas utiliser de profils ICC. Valeur bool&eacute;enne</code></dd>
 
<dt><strong>outdst</strong> = &lt;membre 'outdst' de la classe 'PDFfile'&gt;</dt>
<dt><strong>outdst</strong> = &lt;membre 'outdst' des objets 'PDFfile'&gt;</dt>
<dd><code>Destination de sortie.<br>
0 - &eacute;cran<br>
1 - imprimante</code></dd>
 
<dt><strong>owner</strong> = &lt;attribut 'owner' de la classe 'PDFfile'&gt;</dt>
<dt><strong>owner</strong> = &lt;attribut 'owner' des objets 'PDFfile'&gt;</dt>
<dd><code>Mot de passe du propri&eacute;taire</code></dd>
 
<dt><strong>pageLayout</strong> = &lt;attribut 'pageLayout' de la classe 'PDFfile'&gt;</dt>
<dd><code>Mode d'affichage du document dans le visualiseur:<br>
0 - Affiche le document en mode 'pages simples'<br>
1 - Affiche le document en mode 'pages simples' avec d&eacute;filement continu<br>
2 - Affiche le document en mode 'pages doubles' avec la premi&egrave;re page affich&eacute;e &agrave; gauche<br>
3 - Affiche le document en mode 'pages doubles' avec la premi&egrave;re page affich&eacute;e &agrave; droite</code></dd>
 
<dt><strong>pages</strong> = &lt;attribut 'pages' de la classe 'PDFfile'&gt;</dt>
<dt><strong>pages</strong> = &lt;attribut 'pages' des objets 'PDFfile'&gt;</dt>
<dd><code>Liste des pages &agrave; imprimer</code></dd>
 
<dt><strong>presentation</strong> = &lt;membre 'presentation' de la classe 'PDFfile'&gt;</dt>
<dt><strong>presentation</strong> = &lt;membre 'presentation' des objets 'PDFfile'&gt;</dt>
<dd><code>Active la valeur de pr&eacute;sentation Effects.Bool</code></dd>
 
<dt><strong>printprofc</strong> = &lt;attribut 'printprofc' de la classe 'PDFfile'&gt;</dt>
<dt><strong>printprofc</strong> = &lt;attribut 'printprofc' des objets 'PDFfile'&gt;</dt>
<dd><code>Profil de sortie pour l'impression. Si possible, r&eacute;f&eacute;rez-vous &agrave; votre imprimeur pour le choix du profil.</code></dd>
 
<dt><strong>profilei</strong> = &lt;membre 'profilei' de la classe 'PDFfile'&gt;</dt>
<dt><strong>profilei</strong> = &lt;membre 'profilei' des objets 'PDFfile'&gt;</dt>
<dd><code>Inclus un profil couleur pour les images. Valeur bool&eacute;enne.</code></dd>
 
<dt><strong>profiles</strong> = &lt;membre 'profiles' de la classe 'PDFfile'&gt;</dt>
<dt><strong>profiles</strong> = &lt;membre 'profiles' des objets 'PDFfile'&gt;</dt>
<dd><code>Inclus un profil couleur pour les couleurs d'accompagnement. Valeur bool&eacute;enne.</code></dd>
 
<dt><strong>quality</strong> = &lt;membre 'quality' de la classe 'PDFfile'&gt;</dt>
<dt><strong>quality</strong> = &lt;membre 'quality' des objets 'PDFfile'&gt;</dt>
<dd><code>Qualit&eacute; de l'image<br>
0 - Maximum<br>
1 - Haute<br>
245,31 → 185,25
3 - Basse<br>
4 - Minimum</code></dd>
 
<dt><strong>registrationMarks</strong> = &lt;attribut 'registrationMarks' de la classe 'PDFfile'&gt;</dt>
<dd><code>Ajoute les marques de rep&egrave;rage &agrave chaque s&eacute;paration.</code></dd>
 
<dt><strong>resolution</strong> = &lt;attribut 'resolution' de la classe 'PDFfile'&gt;</dt>
<dt><strong>resolution</strong> = &lt;attribut 'resolution' des objets 'PDFfile'&gt;</dt>
<dd><code>R&eacute;solution du fichier de sortie. Les valeurs sont comprises entre 35 et 4000.</code></dd>
 
<dt><strong>solidpr</strong> = &lt;attribut 'solidpr' de la classe 'PDFfile'&gt;</dt>
<dd><code>Profil couleur pour les couleurs d'aplats</code></dd>
<dt><strong>solidpr</strong> = &lt;attribut 'solidpr' des objets 'PDFfile'&gt;</dt>
<dd><code>Profil couleur pour les couleurs d'accompagnement</code></dd>
 
<dt><strong>thumbnails</strong> = &lt;membre 'thumbnails' de la classe 'PDFfile'&gt;</dt>
<dt><strong>thumbnails</strong> = &lt;membre 'thumbnails' des objets 'PDFfile'&gt;</dt>
<dd><code>G&eacute;n&egrave;re les vignettes. Valeur bool&eacute;enne.</code></dd>
 
<dt><strong>usedocbleeds</strong> = &lt;attribut 'usedocbleeds' de la classe 'PDFfile'&gt;</dt>
<dd><code>Utilise les valeurs de fonds perdus configur&eacute;es dans les pr&eacute;f&eacute;rences du document. Valeur bool&eacute;enne.</code></dd>
 
<dt><strong>useLayers</strong> = &lt;attribut 'useLayers' de la classe 'PDFfile'&gt;</dt>
<dd><code>Active l'export des calques en tant que calques PDF. Possible uniquement avec les formats PDF >= 1.5.</code></dd>
 
<dt><strong>uselpi</strong> = &lt;membre 'uselpi' de la classe 'PDFfile'&gt;</dt>
<dt><strong>uselpi</strong> = &lt;membre 'uselpi' des objets 'PDFfile'&gt;</dt>
<dd><code>Utilisation des param&egrave;tres personnalis&eacute;s de rendu. Valeur bool&eacute;enne</code></dd>
 
<dt><strong>user</strong> = &lt;attribut 'user' de la classe 'PDFfile'&gt;</dt>
<dt><strong>user</strong> = &lt;attribut 'user' des objets 'PDFfile'&gt;</dt>
<dd><code>Mot de passe de l'utilisateur</code></dd>
 
<dt><strong>version</strong> = &lt;membre 'version' de la classe 'PDFfile'&gt;</dt>
<dt><strong>version</strong> = &lt;membre 'version' des objets 'PDFfile'&gt;</dt>
<dd><code>Indique la version de PDF &agrave; utiliser:<br>
11 = PDF/X-1a<br>
12 = PDF/X-3<br>
/branches/Version14x/Scribus/scribus/doc/it/scripterapi-PDFfile.html
1,280 → 1,214
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Python: class PDFfile</title>
</head>
<body>
<h2>Python: class PDFfile</h2>
<p><a name="PDFfile">class <strong>PDFfile</strong></a>(<a href="__builtin__.html#object">object</a>)
</p>
<hr />
<p>Methods defined here:</p>
<dl>
<dt><a name="PDFfile-Save"><strong>Save</strong></a>(...)</dt>
<dd><code>This method is deprecated - use <a href="#PDFfile-save">save</a>() instead.</code></dd>
 
<dt><a name="PDFfile-__init__"><strong>__init__</strong></a>(...)</dt>
<dd><code>x.<a href="#PDFfile-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</code></dd>
 
<dt><a name="PDFfile-save"><strong>save</strong></a>(...)</dt>
<dd><code>Save selected pages to pdf file</code></dd>
</dl>
 
<hr>
<p>Data and other attributes defined here:</p>
<dl>
<dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;</dt>
<dd><code>T.<a href="#PDFfile-__new__">__new__</a>(S, ...) -&gt; a new object with type S, a subtype of T</code></dd>
 
<dt><strong>aanot</strong> = &lt;member 'aanot' of 'PDFfile' objects&gt;</dt>
<dd><code>Allow Adding Annotations and Fields. Bool value</code></dd>
 
<dt><strong>achange</strong> = &lt;member 'achange' of 'PDFfile' objects&gt;</dt>
<dd><code>Allow Changing the Document. Bool value</code></dd>
 
<dt><strong>acopy</strong> = &lt;member 'acopy' of 'PDFfile' objects&gt;</dt>
<dd><code>Allow Copying Text and Graphics. Bool value</code></dd>
 
<dt><strong>aprint</strong> = &lt;member 'aprint' of 'PDFfile' objects&gt;</dt>
<dd><code>Allow Printing the Document. Bool value</code></dd>
 
<dt><strong>article</strong> = &lt;member 'article' of 'PDFfile' objects&gt;</dt>
<dd><code>Save Linked Text Frames as PDF Articles<br> Bool value</code></dd>
 
<dt><strong>binding</strong> = &lt;member 'binding' of 'PDFfile' objects&gt;</dt>
<dd><code>Choose binding.<br>
0 - Left binding<br>
1 - Right binding</code></dd>
<dt><strong>bleedMarks</strong> = &lt;attribute 'bleedMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Create marks delimiting the bleed area.</code></dd>
 
<dt><strong>bleedb</strong> = &lt;member 'bleedb' of 'PDFfile' objects&gt;</dt>
<dd><code>Bleed Bottom<br>Distance for bleed from the bottom of the physical page</code></dd>
 
<dt><strong>bleedl</strong> = &lt;member 'bleedl' of 'PDFfile' objects&gt;</dt>
<dd><code>Bleed Left<br>Distance for bleed from the left of the physical page</code></dd>
 
<dt><strong>bleedr</strong> = &lt;member 'bleedr' of 'PDFfile' objects&gt;</dt>
<dd><code>Bleed Right<br>Distance for bleed from the right of the physical page</code></dd>
 
<dt><strong>bleedt</strong> = &lt;member 'bleedt' of 'PDFfile' objects&gt;</dt>
<dd><code>Bleed Top<br>Distance for bleed from the top of the physical page</code></dd>
 
<dt><strong>bookmarks</strong> = &lt;member 'bookmarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Embed the bookmarks you created in your document.<br>These are useful for navigating long PDF documents.<br>Bool value</code></dd>
 
<dt><strong>colorMarks</strong> = &lt;member 'colorMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Add color calibration bars.</code></dd>
<dt><strong>compress</strong> = &lt;member 'compress' of 'PDFfile' objects&gt;</dt>
<dd><code>Compression switch. Bool value.</code></dd>
 
<dt><strong>compressmtd</strong> = &lt;member 'compressmtd' of 'PDFfile' objects&gt;</dt>
<dd><code>Compression method.<br>
0 - Automatic<br>
1 - JPEG<br>
2 - zip<br>
3 - None.</code></dd>
<dt><strong>cropMarks</strong> = &lt;attribute 'cropMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Create crop marks in the PDF indicating where the paper should be cut or trimmed after printing.</code></dd>
<dt><strong>displayBookmarks</strong> = &lt;attribute 'displayBookmarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Display the bookmarks upon opening.</code></dd>
<dt><strong>displayFullscreen</strong> = &lt;attribute 'displayFullscreen' of 'PDFfile' objects&gt;</dt>
<dd><code>Display the document in full screen mode upon opening.</code></dd>
<dt><strong>displayLayers</strong> = &lt;attribute 'displayLayers' of 'PDFfile' objects&gt;</dt>
<dd><code>Display the layer list upon opening. Useful only for PDF 1.5+.</code></dd>
<dt><strong>displayThumbs</strong> = &lt;attribute 'displayThumbs' of 'PDFfile' objects&gt;</dt>
<dd><code>Display the page thumbnails upon opening.</code></dd>
<dt><strong>docInfoMarks</strong> = &lt;member 'docInfoMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Add document information which includes the document title and page numbers.</code></dd>
<dt><strong>doClip</strong> = &lt;attribute 'doClip' of 'PDFfile' objects&gt;</dt>
<dd><code>Do not show objects outside the margins in the exported file.</code></dd>
 
<dt><strong>downsample</strong> = &lt;attribute 'downsample' of 'PDFfile' objects&gt;</dt>
<dd><code>Downsample image resolusion to this value. Values from 35 to 4000<br>Set 0 for not to downsample</code></dd>
 
<dt><strong>effval</strong> = &lt;attribute 'effval' of 'PDFfile' objects&gt;</dt>
<dd><code>List of effection values for each saved page.<br>
<pre>
It is list of list of six integers. Those int have the following meaning:
- Length of time the page is shown before the presentation
starts on the selected page. (1-3600)
- Length of time the effect runs. (1 - 3600)
A shorter time will speed up the effect, a longer one will slow it down
- Type of the display effect
0 - No Effect
1 - Blinds
2 - Box
3 - Dissolve
4 - Glitter
5 - Split
6 - Wipe
- Direction of the effect of moving lines for the split and blind effects.
0 - Horizontal
1 - Vertical
- Starting position for the box and split effects.
0 - Inside
1 - Outside
- Direction of the glitter or wipe effects.
0 - Left to Right
1 - Top to Bottom
2 - Bottom to Top
3 - Right to Left
4 - Top-left to Bottom-Right
</pre></code></dd>
 
<dt><strong>embedPDF</strong> = &lt;member 'embedPDF' of 'PDFfile' objects&gt;</dt>
<dd><code>Export PDFs in image frames as embedded PDFs.<br>
This does *not* yet take care of colorspaces, so you should know what you are doing before setting this to 'true'.<br>
Bool value.</code></dd>
 
<dt><strong>encrypt</strong> = &lt;member 'encrypt' of 'PDFfile' objects&gt;</dt>
<dd><code>Use Encription. Bool value</code></dd>
 
<dt><strong>file</strong> = &lt;attribute 'file' of 'PDFfile' objects&gt;</dt>
<dd><code>Name of file to save into</code></dd>
 
<dt><strong>fitWindow</strong> = &lt;attribute 'fitWindow' of 'PDFfile' objects&gt;</dt>
<dd><code>Fit the document page or pages to the available space in the viewer window.</code></dd>
 
<dt><strong>fonts</strong> = &lt;attribute 'fonts' of 'PDFfile' objects&gt;</dt>
<dd><code>List of fonts to embed.</code></dd>
 
<dt><strong>hideMenuBar</strong> = &lt;attribute 'hideMenuBar' of 'PDFfile' objects&gt;</dt>
<dd><code>Hides the viewer menu bar, the PDF will display in a plain window.</code></dd>
 
<dt><strong>hideToolBar</strong> = &lt;attribute 'hideToolBar' of 'PDFfile' objects&gt;</dt>
<dd><code>Hides the viewer toolbar. The toolbar has usually selection and other editing capabilities.</code></dd>
 
<dt><strong>imagepr</strong> = &lt;attribute 'imagepr' of 'PDFfile' objects&gt;</dt>
<dd><code>Color profile for images</code></dd>
 
<dt><strong>info</strong> = &lt;attribute 'info' of 'PDFfile' objects&gt;</dt>
<dd><code>Mandatory string for PDF/X-3 or the PDF will fail PDF/X-3 conformance. We recommend you use the title of the document.</code></dd>
 
<dt><strong>intenti</strong> = &lt;member 'intenti' of 'PDFfile' objects&gt;</dt>
<dd><code>Rendering intent for images<br>
0 - Perceptual<br>
1 - Relative Colorimetric<br>
2 - Saturation<br>
3 - Absolute Colorimetric</code></dd>
 
<dt><strong>intents</strong> = &lt;member 'intents' of 'PDFfile' objects&gt;</dt>
<dd><code>Rendering intent for solid colors<br>
0 - Perceptual<br>
1 - Relative Colorimetric<br>
2 - Saturation<br>
3 - Absolute Colorimetric</code></dd>
 
<dt><strong>isGrayscale</strong> = &lt;attribute 'isGrayscale' of 'PDFfile' objects&gt;</dt>
<dd><code>Export PDF in grayscale.</code></dd>
 
<dt><strong>lpival</strong> = &lt;attribute 'lpival' of 'PDFfile' objects&gt;</dt>
<dd><code>Rendering Settings for individual colors.<br>
<pre>
This is list of values for each color.
Color values have structure [siii] which stand for:
s - Color name ('Black', 'Cyan', 'Magenta', 'Yellow')
i - Frequency (10 to 1000)
i - Angle (-180 to 180)
i - Spot Function
0 - Simple Dot
1 - Line
2 - Round
3 - Ellipse
</pre>
Be careful when supplying these values as they are not checked for validity.</code></dd>
 
<dt><strong>markOffset</strong> = &lt;member 'markOffset' of 'PDFfile' objects&gt;</dt>
<dd><code>Indicate the distance offset between mark and page area.</code></dd>
 
<dt><strong>mirrorH</strong> = &lt;member 'mirrorH' of 'PDFfile' objects&gt;</dt>
<dd><code>Mirror Page(s) horizontally. Bool value.</code></dd>
 
<dt><strong>mirrorV</strong> = &lt;member 'mirrorV' of 'PDFfile' objects&gt;</dt>
<dd><code>Mirror Page(s) vertically. Bool value.</code></dd>
 
<dt><strong>noembicc</strong> = &lt;member 'noembicc' of 'PDFfile' objects&gt;</dt>
<dd><code>Don't use embedded ICC profiles. Bool value</code></dd>
 
<dt><strong>outdst</strong> = &lt;member 'outdst' of 'PDFfile' objects&gt;</dt>
<dd><code>Output destination.<br>
0 - screen<br>
1 - printer</code></dd>
 
<dt><strong>owner</strong> = &lt;attribute 'owner' of 'PDFfile' objects&gt;</dt>
<dd><code>Owner's password</code></dd>
 
<dt><strong>pageLayout</strong> = &lt;attribute 'pageLayout' of 'PDFfile' objects&gt;</dt>
<dd><code>Document layout in PDF viewer:<br>
0 - Show the document in single page mode<br>
1 - Show the document in single page mode with the pages displayed continuously end to end like a scroll<br>
2 - Show the document with facing pages, starting with the first page displayed on the left<br>
3 - Show the document with facing pages, starting with the first page displayed on the right</code></dd>
 
<dt><strong>pages</strong> = &lt;attribute 'pages' of 'PDFfile' objects&gt;</dt>
<dd><code>List of pages to print</code></dd>
 
<dt><strong>presentation</strong> = &lt;member 'presentation' of 'PDFfile' objects&gt;</dt>
<dd><code>Enable Presentation Effects.Bool value</code></dd>
 
<dt><strong>printprofc</strong> = &lt;attribute 'printprofc' of 'PDFfile' objects&gt;</dt>
<dd><code>Output profile for printing. If possible, get some guidance from your printer on profile selection.</code></dd>
 
<dt><strong>profilei</strong> = &lt;member 'profilei' of 'PDFfile' objects&gt;</dt>
<dd><code>Embed a color profile for images. Bool value.</code></dd>
 
<dt><strong>profiles</strong> = &lt;member 'profiles' of 'PDFfile' objects&gt;</dt>
<dd><code>Embed a color profile for solid colors. Bool value.</code></dd>
 
<dt><strong>quality</strong> = &lt;member 'quality' of 'PDFfile' objects&gt;</dt>
<dd><code>Image quality<br>
0 - Maximum<br>
1 - High<br>
2 - Medium<br>
3 - Low<br>
4 - Minimum</code></dd>
 
<dt><strong>registrationMarks</strong> = &lt;attribute 'registrationMarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Add registration marks to each separation.</code></dd>
 
<dt><strong>resolution</strong> = &lt;attribute 'resolution' of 'PDFfile' objects&gt;</dt>
<dd><code>Resolution of output file. Values from 35 to 4000.</code></dd>
 
<dt><strong>solidpr</strong> = &lt;attribute 'solidpr' of 'PDFfile' objects&gt;</dt>
<dd><code>Color profile for solid colors</code></dd>
 
<dt><strong>thumbnails</strong> = &lt;member 'thumbnails' of 'PDFfile' objects&gt;</dt>
<dd><code>Generate thumbnails. Bool value.</code></dd>
 
<dt><strong>usedocbleeds</strong> = &lt;attribute 'usedocbleeds' of 'PDFfile' objects&gt;</dt>
<dd><code>Use the existing bleed settings from the document preferences. Bool value.</code></dd>
 
<dt><strong>useLayers</strong> = &lt;attribute 'useLayers' of 'PDFfile' objects&gt;</dt>
<dd><code>Layers in your document are exported to the PDF. Only available with PDF >= 1.5.</code></dd>
 
<dt><strong>uselpi</strong> = &lt;member 'uselpi' of 'PDFfile' objects&gt;</dt>
<dd><code>Use Custom Rendering Settings. Bool value</code></dd>
 
<dt><strong>user</strong> = &lt;attribute 'user' of 'PDFfile' objects&gt;</dt>
<dd><code>User's password</code></dd>
 
<dt><strong>version</strong> = &lt;member 'version' of 'PDFfile' objects&gt;</dt>
<dd><code>Choose PDF version to use:<br>
11 = PDF/X-1a<br>
12 = PDF/X-3<br>
13 = PDF 1.3 (Acrobat 4)<br>
14 = PDF 1.4 (Acrobat 5)<br>
15 = PDF 1.5 (Acrobat 6)</code></dd>
 
</dl>
</body>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Python: class PDFfile</title>
</head>
<body>
<h2>Python: class PDFfile</h2>
<p><a name="PDFfile">class <strong>PDFfile</strong></a>(<a href="__builtin__.html#object">object</a>)
</p>
<hr />
<p>Methods defined here:</p>
<dl>
<dt><a name="PDFfile-Save"><strong>Save</strong></a>(...)</dt>
<dd><code>This method is deprecated - use <a href="#PDFfile-save">save</a>() instead.</code></dd>
 
<dt><a name="PDFfile-__init__"><strong>__init__</strong></a>(...)</dt>
<dd><code>x.<a href="#PDFfile-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</code></dd>
 
<dt><a name="PDFfile-save"><strong>save</strong></a>(...)</dt>
<dd><code>Save selected pages to pdf file</code></dd>
</dl>
 
<hr>
<p>Data and other attributes defined here:</p>
<dl>
<dt><strong>__new__</strong> = &lt;built-in method __new__ of type object&gt;</dt>
<dd><code>T.<a href="#PDFfile-__new__">__new__</a>(S, ...) -&gt; a new object with type S, a subtype of T</code></dd>
 
<dt><strong>aanot</strong> = &lt;member 'aanot' of 'PDFfile' objects&gt;</dt>
<dd><code>Allow Adding Annotations and Fields. Bool value</code></dd>
 
<dt><strong>achange</strong> = &lt;member 'achange' of 'PDFfile' objects&gt;</dt>
<dd><code>Allow Changing the Document. Bool value</code></dd>
 
<dt><strong>acopy</strong> = &lt;member 'acopy' of 'PDFfile' objects&gt;</dt>
<dd><code>Allow Copying Text and Graphics. Bool value</code></dd>
 
<dt><strong>aprint</strong> = &lt;member 'aprint' of 'PDFfile' objects&gt;</dt>
<dd><code>Allow Printing the Document. Bool value</code></dd>
 
<dt><strong>article</strong> = &lt;member 'article' of 'PDFfile' objects&gt;</dt>
<dd><code>Save Linked Text Frames as PDF Articles<br> Bool value</code></dd>
 
<dt><strong>binding</strong> = &lt;member 'binding' of 'PDFfile' objects&gt;</dt>
<dd><code>Choose binding.<br>
0 - Left binding<br>
1 - Right binding</code></dd>
 
<dt><strong>bleedb</strong> = &lt;member 'bleedb' of 'PDFfile' objects&gt;</dt>
<dd><code>Bleed Bottom<br>Distance for bleed from the bottom of the physical page</code></dd>
 
<dt><strong>bleedl</strong> = &lt;member 'bleedl' of 'PDFfile' objects&gt;</dt>
<dd><code>Bleed Left<br>Distance for bleed from the left of the physical page</code></dd>
 
<dt><strong>bleedr</strong> = &lt;member 'bleedr' of 'PDFfile' objects&gt;</dt>
<dd><code>Bleed Right<br>Distance for bleed from the right of the physical page</code></dd>
 
<dt><strong>bleedt</strong> = &lt;member 'bleedt' of 'PDFfile' objects&gt;</dt>
<dd><code>Bleed Top<br>Distance for bleed from the top of the physical page</code></dd>
 
<dt><strong>bookmarks</strong> = &lt;member 'bookmarks' of 'PDFfile' objects&gt;</dt>
<dd><code>Embed the bookmarks you created in your document.<br>These are useful for navigating long PDF documents.<br>Bool value</code></dd>
 
<dt><strong>compress</strong> = &lt;member 'compress' of 'PDFfile' objects&gt;</dt>
<dd><code>Compression switch. Bool value.</code></dd>
 
<dt><strong>compressmtd</strong> = &lt;member 'compressmtd' of 'PDFfile' objects&gt;</dt>
<dd><code>Compression method.<br>
0 - Automatic<br>
1 - JPEG<br>
2 - zip<br>
3 - None.</code></dd>
 
<dt><strong>downsample</strong> = &lt;attribute 'downsample' of 'PDFfile' objects&gt;</dt>
<dd><code>Downsample image resolusion to this value. Values from 35 to 4000<br>Set 0 for not to downsample</code></dd>
 
<dt><strong>effval</strong> = &lt;attribute 'effval' of 'PDFfile' objects&gt;</dt>
<dd><code>List of effection values for each saved page.<br>
<pre>
It is list of list of six integers. Those int have the following meaning:
- Length of time the page is shown before the presentation
starts on the selected page. (1-3600)
- Length of time the effect runs. (1 - 3600)
A shorter time will speed up the effect, a longer one will slow it down
- Type of the display effect
0 - No Effect
1 - Blinds
2 - Box
3 - Dissolve
4 - Glitter
5 - Split
6 - Wipe
- Direction of the effect of moving lines for the split and blind effects.
0 - Horizontal
1 - Vertical
- Starting position for the box and split effects.
0 - Inside
1 - Outside
- Direction of the glitter or wipe effects.
0 - Left to Right
1 - Top to Bottom
2 - Bottom to Top
3 - Right to Left
4 - Top-left to Bottom-Right
</pre></code></dd>
 
<dt><strong>encrypt</strong> = &lt;member 'encrypt' of 'PDFfile' objects&gt;</dt>
<dd><code>Use Encription. Bool value</code></dd>
 
<dt><strong>file</strong> = &lt;attribute 'file' of 'PDFfile' objects&gt;</dt>
<dd><code>Name of file to save into</code></dd>
 
<dt><strong>fonts</strong> = &lt;attribute 'fonts' of 'PDFfile' objects&gt;</dt>
<dd><code>List of fonts to embed.</code></dd>
 
<dt><strong>imagepr</strong> = &lt;attribute 'imagepr' of 'PDFfile' objects&gt;</dt>
<dd><code>Color profile for images</code></dd>
 
<dt><strong>info</strong> = &lt;attribute 'info' of 'PDFfile' objects&gt;</dt>
<dd><code>Mandatory string for PDF/X-3 or the PDF will fail PDF/X-3 conformance. We recommend you use the title of the document.</code></dd>
 
<dt><strong>intenti</strong> = &lt;member 'intenti' of 'PDFfile' objects&gt;</dt>
<dd><code>Rendering intent for images<br>
0 - Perceptual<br>
1 - Relative Colorimetric<br>
2 - Saturation<br>
3 - Absolute Colorimetric</code></dd>
 
<dt><strong>intents</strong> = &lt;member 'intents' of 'PDFfile' objects&gt;</dt>
<dd><code>Rendering intent for solid colors<br>
0 - Perceptual<br>
1 - Relative Colorimetric<br>
2 - Saturation<br>
3 - Absolute Colorimetric</code></dd>
 
<dt><strong>lpival</strong> = &lt;attribute 'lpival' of 'PDFfile' objects&gt;</dt>
<dd><code>Rendering Settings for individual colors.<br>
<pre>
This is list of values for each color.
Color values have structure [siii] which stand for:
s - Color name ('Black', 'Cyan', 'Magenta', 'Yellow')
i - Frequency (10 to 1000)
i - Angle (-180 to 180)
i - Spot Function
0 - Simple Dot
1 - Line
2 - Round
3 - Ellipse
</pre>
Be careful when supplying these values as they are not checked for validity.</code></dd>
 
<dt><strong>noembicc</strong> = &lt;member 'noembicc' of 'PDFfile' objects&gt;</dt>
<dd><code>Don't use embedded ICC profiles. Bool value</code></dd>
 
<dt><strong>outdst</strong> = &lt;member 'outdst' of 'PDFfile' objects&gt;</dt>
<dd><code>Output destination.<br>
0 - screen<br>
1 - printer</code></dd>
 
<dt><strong>owner</strong> = &lt;attribute 'owner' of 'PDFfile' objects&gt;</dt>
<dd><code>Owner's password</code></dd>
 
<dt><strong>pages</strong> = &lt;attribute 'pages' of 'PDFfile' objects&gt;</dt>
<dd><code>List of pages to print</code></dd>
 
<dt><strong>presentation</strong> = &lt;member 'presentation' of 'PDFfile' objects&gt;</dt>
<dd><code>Enable Presentation Effects.Bool value</code></dd>
 
<dt><strong>printprofc</strong> = &lt;attribute 'printprofc' of 'PDFfile' objects&gt;</dt>
<dd><code>Output profile for printing. If possible, get some guidance from your printer on profile selection.</code></dd>
 
<dt><strong>profilei</strong> = &lt;member 'profilei' of 'PDFfile' objects&gt;</dt>
<dd><code>Embed a color profile for images. Bool value.</code></dd>
 
<dt><strong>profiles</strong> = &lt;member 'profiles' of 'PDFfile' objects&gt;</dt>
<dd><code>Embed a color profile for solid colors. Bool value.</code></dd>
 
<dt><strong>quality</strong> = &lt;member 'quality' of 'PDFfile' objects&gt;</dt>
<dd><code>Image quality<br>
0 - Maximum<br>
1 - High<br>
2 - Medium<br>
3 - Low<br>
4 - Minimum</code></dd>
 
<dt><strong>resolution</strong> = &lt;attribute 'resolution' of 'PDFfile' objects&gt;</dt>
<dd><code>Resolution of output file. Values from 35 to 4000.</code></dd>
 
<dt><strong>solidpr</strong> = &lt;attribute 'solidpr' of 'PDFfile' objects&gt;</dt>
<dd><code>Color profile for solid colors</code></dd>
 
<dt><strong>thumbnails</strong> = &lt;member 'thumbnails' of 'PDFfile' objects&gt;</dt>
<dd><code>Generate thumbnails. Bool value.</code></dd>
 
<dt><strong>usedocbleeds</strong> = &lt;attribute 'usedocbleeds' of 'PDFfile' objects&gt;</dt>
<dd><code>Use the existing bleed settings from the document preferences. Bool value.</code></dd>
 
<dt><strong>uselpi</strong> = &lt;member 'uselpi' of 'PDFfile' objects&gt;</dt>
<dd><code>Use Custom Rendering Settings. Bool value</code></dd>
 
<dt><strong>user</strong> = &lt;attribute 'user' of 'PDFfile' objects&gt;</dt>
<dd><code>User's password</code></dd>
 
<dt><strong>version</strong> = &lt;member 'version' of 'PDFfile' objects&gt;</dt>
<dd><code>Choose PDF version to use:<br>
11 = PDF/X-1a<br>
12 = PDF/X-3<br>
13 = PDF 1.3 (Acrobat 4)<br>
14 = PDF 1.4 (Acrobat 5)<br>
15 = PDF 1.5 (Acrobat 6)</code></dd>
 
</dl>
</body>
</html>
/branches/Version14x/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp
47,15 → 47,8
PyObject_HEAD
PyObject *file; // string - file to save into
PyObject *fonts; // list of string - fonts to embed
PyObject *SubsetList; // list of string - fonts to outline
PyObject *pages; // list of int - pages to print
int thumbnails; // bool -
int cropMarks; // bool -
int bleedMarks; // bool -
int registrationMarks; // bool -
int colorMarks; // bool -
int docInfoMarks; // bool -
double markOffset; // double -
int compress; // bool -
int compressmtd; // int - 0=automatic 1=jpeg 2=zip 3=none
int quality; // int - 0=Maximum 4=minimum
94,22 → 87,6
double bleedr; // double - 0 to width of page
double bleedb; // double - 0 to hight of page
int usedocbleeds; // bool
int useLayers;
int embedPDF;
int mirrorH;
int mirrorV;
int doClip;
PyObject * RotateDeg; // int
int isGrayscale;
int pageLayout;
int displayBookmarks;
int displayThumbs;
int displayLayers;
int displayFullscreen;
int hideToolBar;
int hideMenuBar;
int fitWindow;
PyObject *openAction;
 
} PDFfile;
 
117,7 → 94,6
{
Py_XDECREF(self->file);
Py_XDECREF(self->fonts);
Py_XDECREF(self->SubsetList);
Py_XDECREF(self->pages);
Py_XDECREF(self->resolution);
Py_XDECREF(self->downsample);
129,8 → 105,6
Py_XDECREF(self->imagepr);
Py_XDECREF(self->printprofc);
Py_XDECREF(self->info);
Py_XDECREF(self->RotateDeg);
Py_XDECREF(self->openAction);
self->ob_type->tp_free((PyObject *)self);
}
 
158,11 → 132,6
Py_DECREF(self);
return NULL;
}
self->SubsetList = PyList_New(0);
if (!self->SubsetList){
Py_DECREF(self);
return NULL;
}
// set pages attribute
self->pages = PyList_New(0);
if (self->pages == NULL){
171,18 → 140,6
}
// set thumbnails attribute
self->thumbnails = 0;
// set cropMarks attribute
self->cropMarks = 0;
// set bleedMarks attribute
self->bleedMarks = 0;
// set registrationMarks attribute
self->registrationMarks = 0;
// set colorMarks attribute
self->colorMarks = 0;
// set docInfoMarks attribute
self->docInfoMarks = 0;
// set mark offset attribute
self->markOffset = 0;
// set compress attribute
self->compress = 0;
// set compressmtd attribute
283,30 → 240,6
self->bleedr = 0; // double -
self->bleedb = 0; // double -
self->usedocbleeds = 0; // bool
self->useLayers = 0;
self->embedPDF = 0;
self->mirrorH = 0;
self->mirrorV = 0;
self->doClip = 0;
self->RotateDeg = PyInt_FromLong(0);
if (!self->RotateDeg){
Py_DECREF(self);
return NULL;
}
self->isGrayscale = 0;
self->pageLayout = 0;
self->displayBookmarks = 0;
self->displayThumbs = 0;
self->displayLayers = 0;
self->displayFullscreen = 0;
self->hideToolBar = 0;
self->hideMenuBar = 0;
self->fitWindow = 0;
self->openAction = PyString_FromString("");
if (!self->openAction){
Py_DECREF(self);
return NULL;
}
}
return (PyObject *) self;
}
371,30 → 304,6
}
// }
}
// init SubsetList
fonts = PyList_New(0);
if (fonts){
Py_DECREF(self->SubsetList);
self->SubsetList = fonts;
} else {
PyErr_SetString(PyExc_SystemError, "Can not initialize 'SubsetList' attribute");
return -1;
}
// copied from TabPDFOptions::restoreDefaults()
for (int fe = 0; fe < pdfOptions.SubsetList.count(); ++fe)
{
PyObject *tmp= NULL;
tmp = PyString_FromString(pdfOptions.SubsetList[fe].toLatin1().data());
if (tmp) {
PyList_Append(self->SubsetList, tmp);
Py_DECREF(tmp);
}
else {
PyErr_SetString(PyExc_SystemError, "Can not initialize 'SubsetList' attribute");
return -1;
}
}
 
// set to print all pages
PyObject *pages = NULL;
int num = 0;
418,20 → 327,8
}
Py_DECREF(self->pages);
self->pages = pages;
// print thumbnails ?
// do not print thumbnails
self->thumbnails = pdfOptions.Thumbnails;
// output crop marks ?
self->cropMarks = pdfOptions.cropMarks;
// output bleed marks ?
self->bleedMarks = pdfOptions.bleedMarks;
// output registration marks ?
self->registrationMarks = pdfOptions.registrationMarks;
// output color bars ?
self->colorMarks = pdfOptions.colorMarks;
// output doc info marks ?
self->docInfoMarks = pdfOptions.docInfoMarks;
// cropmarks offset
self->markOffset = pdfOptions.markOffset * currentDoc->unitRatio();
// set automatic compression
self->compress = pdfOptions.Compress;
self->compressmtd = pdfOptions.CompressMethod;
617,51 → 514,12
self->bleedr = pdfOptions.bleeds.Right * currentDoc->unitRatio(); // double -
self->bleedb = pdfOptions.bleeds.Bottom * currentDoc->unitRatio(); // double -
self->usedocbleeds = 0; // bool
self->useLayers = pdfOptions.useLayers; // bool
self->embedPDF = pdfOptions.embedPDF; // bool
self->mirrorH = pdfOptions.MirrorH; // bool
self->mirrorV = pdfOptions.MirrorV; // bool
self->doClip = pdfOptions.doClip; // bool
PyObject *RotateDeg = NULL;
RotateDeg = PyInt_FromLong(0);
if (RotateDeg){
Py_DECREF(self->RotateDeg);
self->RotateDeg = RotateDeg;
} else {
PyErr_SetString(PyExc_SystemError, "Can not initialize 'RotateDeg' attribute");
return -1;
}
self->isGrayscale = pdfOptions.isGrayscale; // bool
self->pageLayout = pdfOptions.PageLayout; // int
self->displayBookmarks = pdfOptions.displayBookmarks; // bool
self->displayThumbs = pdfOptions.displayThumbs; // bool
self->displayLayers = pdfOptions.displayLayers; // bool
self->displayFullscreen = pdfOptions.displayFullscreen; // bool
self->hideToolBar = pdfOptions.hideToolBar; // bool
self->hideMenuBar = pdfOptions.hideMenuBar; // bool
self->fitWindow = pdfOptions.fitWindow; // bool
 
PyObject *openAction = NULL;
openAction = PyString_FromString(pdfOptions.openAction.toLatin1().data());
if (openAction){
Py_DECREF(self->openAction);
self->openAction = openAction;
} else {
PyErr_SetString(PyExc_SystemError, "Can not initialize 'openAction' attribute");
return -1;
}
 
return 0;
}
 
static PyMemberDef PDFfile_members[] = {
{const_cast<char*>("thumbnails"), T_INT, offsetof(PDFfile, thumbnails), 0, const_cast<char*>("Generate thumbnails. Bool value.")},
{const_cast<char*>("cropMarks"), T_INT, offsetof(PDFfile, cropMarks), 0, const_cast<char*>("Create crop marks in the PDF indicating where the paper should be cut or trimmed after printing.")},
{const_cast<char*>("bleedMarks"), T_INT, offsetof(PDFfile, bleedMarks), 0, const_cast<char*>("Create marks delimiting the bleed area.")},
{const_cast<char*>("registrationMarks"), T_INT, offsetof(PDFfile, registrationMarks), 0, const_cast<char*>("Add registration marks to each separation.")},
{const_cast<char*>("colorMarks"), T_INT, offsetof(PDFfile, colorMarks), 0, const_cast<char*>("Add color calibration bars.")},
{const_cast<char*>("docInfoMarks"), T_INT, offsetof(PDFfile, docInfoMarks), 0, const_cast<char*>("Add document information which includes the document title and page numbers.")},
{const_cast<char*>("markOffset"), T_DOUBLE, offsetof(PDFfile, markOffset), 0, const_cast<char*>("Indicate the distance offset between mark and page area.")},
{const_cast<char*>("compress"), T_INT, offsetof(PDFfile, compress), 0, const_cast<char*>("Compression switch. Bool value.")},
{const_cast<char*>("compressmtd"), T_INT, offsetof(PDFfile, compressmtd), 0, const_cast<char*>("Compression method.\n\t0 - Automatic\n\t1 - JPEG\n\t2 - zip\n\t3 - None.")},
{const_cast<char*>("quality"), T_INT, offsetof(PDFfile, quality), 0, const_cast<char*>("Image quality\n\t0 - Maximum\n\t1 - High\n\t2 - Medium\n\t3 - Low\n\t4 - Minimum")},
689,25 → 547,6
{const_cast<char*>("bleedr"), T_DOUBLE, offsetof(PDFfile, bleedr), 0, const_cast<char*>("Bleed Right\n""Distance for bleed from the right of the physical page")},
{const_cast<char*>("bleedb"), T_DOUBLE, offsetof(PDFfile, bleedb), 0, const_cast<char*>("Bleed Bottom\n""Distance for bleed from the bottom of the physical page")},
{const_cast<char*>("usedocbleeds"), T_INT, offsetof(PDFfile, usedocbleeds), 0, const_cast<char*>("Use the existing bleed settings from the document preferences. Bool value")},
{const_cast<char*>("useLayers"), T_INT, offsetof(PDFfile, useLayers), 0, const_cast<char*>("Layers in your document are exported to the PDF Only available if PDF 1.5 is chosen.")},
{const_cast<char*>("embedPDF"), T_INT, offsetof(PDFfile, embedPDF), 0, const_cast<char*>("Export EPS and PDFs in image frames as embedded PDFs. This does *not* yet take care of colorspaces, so you should know what you are doing before setting this to 'true'.")},
{const_cast<char*>("mirrorH"), T_INT, offsetof(PDFfile, mirrorH), 0, const_cast<char*>("Mirror Page(s) horizontally")},
{const_cast<char*>("mirrorV"), T_INT, offsetof(PDFfile, mirrorV), 0, const_cast<char*>("Mirror Page(s) vertically")},
{const_cast<char*>("doClip"), T_INT, offsetof(PDFfile, doClip), 0, const_cast<char*>("Do not show objects outside the margins in the exported file")},
{const_cast<char*>("isGrayscale"), T_INT, offsetof(PDFfile, isGrayscale), 0, const_cast<char*>("Export PDF in grayscale")},
{const_cast<char*>("pageLayout"), T_INT, offsetof(PDFfile, pageLayout), 0, const_cast<char*>("Document layout in PDF viewer:\n"
"\t0 - Show the document in single page mode\n"
"\t1 - Show the document in single page mode with the pages displayed continuously end to end like a scroll\n"
"\t2 - Show the document with facing pages, starting with the first page displayed on the left\n"
"\t3 - Show the document with facing pages, starting with the first page displayed on the right"
)},
{const_cast<char*>("displayBookmarks"), T_INT, offsetof(PDFfile, displayBookmarks), 0, const_cast<char*>("Display the bookmarks upon opening")},
{const_cast<char*>("displayThumbs"), T_INT, offsetof(PDFfile, displayThumbs), 0, const_cast<char*>("Display the page thumbnails upon opening")},
{const_cast<char*>("displayLayers"), T_INT, offsetof(PDFfile, displayLayers), 0, const_cast<char*>("Display the layer list upon opening. Useful only for PDF 1.5+.")},
{const_cast<char*>("displayFullscreen"), T_INT, offsetof(PDFfile, displayFullscreen), 0, const_cast<char*>("Display the document in full screen mode upon opening.")},
{const_cast<char*>("hideToolBar"), T_INT, offsetof(PDFfile, hideToolBar), 0, const_cast<char*>("Hide the viewer toolbar. The toolbar has usually selection and other editing capabilities.")},
{const_cast<char*>("hideMenuBar"), T_INT, offsetof(PDFfile, hideMenuBar), 0, const_cast<char*>("Hide the viewer menu bar, the PDF will display in a plain window.")},
{const_cast<char*>("fitWindow"), T_INT, offsetof(PDFfile, fitWindow), 0, const_cast<char*>("Fit the document page or pages to the available space in the viewer window.")},
{NULL, 0, 0, 0, NULL} // sentinel
};
 
769,36 → 608,6
return 0;
}
 
static PyObject *PDFfile_getSubsetList(PDFfile *self, void * /*closure*/)
{
Py_INCREF(self->SubsetList);
return self->SubsetList;
}
 
static int PDFfile_setSubsetList(PDFfile *self, PyObject *value, void * /*closure*/)
{
if (value == NULL) {
PyErr_SetString(PyExc_TypeError, "Cannot delete 'SubsetList' attribute.");
return -1;
}
if (!PyList_Check(value)) {
PyErr_SetString(PyExc_TypeError, "The 'SubsetList' attribute value must be list of strings.");
return -1;
}
int n;
n = PyList_Size(value);
for (int i=0; i<n; ++i)
if (!PyString_Check(PyList_GetItem(value, i))) {
PyErr_SetString(PyExc_TypeError, "The 'SubsetList' list must contain only strings.");
return -1;
}
Py_DECREF(self->SubsetList);
Py_INCREF(value);
self->SubsetList = value;
PyList_Sort(self->SubsetList);
return 0;
}
 
static PyObject *PDFfile_getpages(PDFfile *self, void * /*closure*/)
{
Py_INCREF(self->pages);
1111,55 → 920,6
return 0;
}
 
static PyObject *PDFfile_getRotateDeg(PDFfile *self, void * /*closure*/)
{
Py_INCREF(self->RotateDeg);
return self->RotateDeg;
}
 
static int PDFfile_setRotateDeg(PDFfile *self, PyObject *value, void * /*closure*/)
{
if (value == NULL) {
PyErr_SetString(PyExc_TypeError, "Cannot delete 'RotateDeg' attribute.");
return -1;
}
if (!PyInt_Check(value)) {
PyErr_SetString(PyExc_TypeError, "'RotateDeg' attribute value must be integer.");
return -1;
}
int n = PyInt_AsLong(value);
if (n!=0 && n!=90 && n!=180 && n!=270) {
PyErr_SetString(PyExc_TypeError, "'RotateDeg' value must be 0 or 90 or 180 or 270");
return -1;
}
Py_DECREF(self->RotateDeg);
Py_INCREF(value);
self->RotateDeg = value;
return 0;
}
 
static PyObject *PDFfile_getopenAction(PDFfile *self, void * /*closure*/)
{
Py_INCREF(self->openAction);
return self->openAction;
}
 
static int PDFfile_setopenAction(PDFfile *self, PyObject *value, void * /*closure*/)
{
if (value == NULL) {
PyErr_SetString(PyExc_TypeError, "Cannot delete 'openAction' attribute.");
return -1;
}
if (!PyString_Check(value)) {
PyErr_SetString(PyExc_TypeError, "'openAction' attribute value must be string.");
return -1;
}
Py_DECREF(self->openAction);
Py_INCREF(value);
self->openAction = value;
return 0;
}
 
static char *effval_doc = const_cast<char*>(
"List of effection values for each saved page.\n"
"It is list of list of six integers. Those int has followin meaning:\n\t"
1183,7 → 943,6
static PyGetSetDef PDFfile_getseters [] = {
{const_cast<char*>("file"), (getter)PDFfile_getfile, (setter)PDFfile_setfile, const_cast<char*>("Name of file to save into"), NULL},
{const_cast<char*>("fonts"), (getter)PDFfile_getfonts, (setter)PDFfile_setfonts, const_cast<char*>("List of fonts to embed."), NULL},
{const_cast<char*>("SubsetList"), (getter)PDFfile_getSubsetList, (setter)PDFfile_setSubsetList, const_cast<char*>("List of fonts to outlined."), NULL},
{const_cast<char*>("pages"), (getter)PDFfile_getpages, (setter)PDFfile_setpages, const_cast<char*>("List of pages to print"), NULL},
{const_cast<char*>("resolution"), (getter)PDFfile_getresolution, (setter)PDFfile_setresolution, const_cast<char*>("Resolution of output file. Values from 35 to 4000."), NULL},
{const_cast<char*>("downsample"), (getter)PDFfile_getdownsample, (setter)PDFfile_setdownsample, const_cast<char*>("Downsample image resolusion to this value. Values from 35 to 4000\nSet 0 for not to downsample"), NULL},
1195,8 → 954,6
{const_cast<char*>("imagepr"), (getter)PDFfile_getimagepr, (setter)PDFfile_setimagepr, const_cast<char*>("Color profile for images"), NULL},
{const_cast<char*>("printprofc"), (getter)PDFfile_getprintprofc, (setter)PDFfile_setprintprofc, const_cast<char*>("Output profile for printing. If possible, get some guidance from your printer on profile selection."), NULL},
{const_cast<char*>("info"), (getter)PDFfile_getinfo, (setter)PDFfile_setinfo, const_cast<char*>("Mandatory string for PDF/X-3 or the PDF will fail\nPDF/X-3 conformance. We recommend you use the title of the document."), NULL},
{const_cast<char*>("RotateDeg"), (getter)PDFfile_getRotateDeg, (setter)PDFfile_setRotateDeg, const_cast<char*>("Automatically rotate the exported pages\n\tValue must be one of integers: 0, 90, 180 or 270"), NULL},
{const_cast<char*>("openAction"), (getter)PDFfile_getopenAction, (setter)PDFfile_setopenAction, const_cast<char*>("Javascript to be executed when PDF document is opened."), NULL},
{NULL, NULL, NULL, NULL, NULL} // sentinel
};
 
1225,14 → 982,6
tmpFon = QString(PyString_AsString(PyList_GetItem(self->fonts, i)));
pdfOptions.EmbedList.append(tmpFon);
}
// apply SubsetList attribute
pdfOptions.SubsetList.clear();
n = PyList_Size(self->SubsetList);
for ( int i=0; i<n; ++i){
QString tmpFon;
tmpFon = QString(PyString_AsString(PyList_GetItem(self->SubsetList, i)));
pdfOptions.SubsetList.append(tmpFon);
}
// apply file attribute
QString fn;
fn = QString(PyString_AsString(self->file));
1245,18 → 994,6
}
// apply thumbnails attribute
pdfOptions.Thumbnails = self->thumbnails;
// apply cropmarks attribute
pdfOptions.cropMarks = self->cropMarks;
// apply bleedmarks attribute
pdfOptions.bleedMarks = self->bleedMarks;
// apply registrationmarks attribute
pdfOptions.registrationMarks = self->registrationMarks;
// apply colormarks attribute
pdfOptions.colorMarks = self->colorMarks;
// apply docInfoMark attribute
pdfOptions.docInfoMarks = self->docInfoMarks;
// apply mark offset attribute
pdfOptions.markOffset = qMax(0.0, self->markOffset / currentDoc->unitRatio());
// apply compress attribute
self->compressmtd = minmaxi(self->compressmtd, 0, 3);
pdfOptions.Compress = self->compress;
1337,7 → 1074,7
pdfOptions.UseLPI = self->uselpi;
pdfOptions.UseSpotColors = self->usespot;
pdfOptions.doMultiFile = self->domulti;
self->version = minmaxi(self->version, 11, 15);
self->version = minmaxi(self->version, 12, 14);
// FIXME: Sanity check version
pdfOptions.Version = (PDFOptions::PDFVersion)self->version;
if (self->encrypt)
1427,23 → 1164,6
self->bleedb = minmaxd(self->bleedb, 0, currentDoc->pageHeight * currentDoc->unitRatio());
pdfOptions.bleeds.Bottom = self->bleedb / currentDoc->unitRatio();
}
pdfOptions.useLayers = self->useLayers;
pdfOptions.embedPDF = self->embedPDF;
pdfOptions.MirrorH = self->mirrorH;
pdfOptions.MirrorV = self->mirrorV;
pdfOptions.doClip = self->doClip;
pdfOptions.RotateDeg = PyInt_AsLong(self->RotateDeg);
pdfOptions.isGrayscale = self->isGrayscale;
pdfOptions.PageLayout = minmaxi(self->pageLayout, 0, 3);
pdfOptions.displayBookmarks = self->displayBookmarks;
pdfOptions.displayThumbs = self->displayThumbs;
pdfOptions.displayLayers = self->displayLayers;
pdfOptions.displayFullscreen = self->displayFullscreen;
pdfOptions.hideToolBar = self->hideToolBar;
pdfOptions.hideMenuBar = self->hideMenuBar;
pdfOptions.fitWindow = self->fitWindow;
pdfOptions.openAction = QString(PyString_AsString(self->openAction));
pdfOptions.firstUse = false;
 
QString errorMessage;
bool success = ScCore->primaryMainWindow()->getPDFDriver(fn, nam, Components, pageNs, thumbs, errorMessage);