r19747 by jghali - add missing pdf export settings to scripter (patch from Juraj Fedel)

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 10 11:34:35 UTC 2015


Author: jghali
Date: Sat Jan 10 11:34:35 2015
New Revision: 19747

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19747
Log:
add missing pdf export settings to scripter (patch from Juraj Fedel)

Modified:
    branches/Version14x/Scribus/scribus/doc/de/scripterapi-PDFfile.html
    branches/Version14x/Scribus/scribus/doc/en/scripterapi-PDFfile.html
    branches/Version14x/Scribus/scribus/doc/fr/scripterapi-PDFfile.html
    branches/Version14x/Scribus/scribus/doc/it/scripterapi-PDFfile.html
    branches/Version14x/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp

Modified: branches/Version14x/Scribus/scribus/doc/de/scripterapi-PDFfile.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19747&path=/branches/Version14x/Scribus/scribus/doc/de/scripterapi-PDFfile.html
==============================================================================
--- branches/Version14x/Scribus/scribus/doc/de/scripterapi-PDFfile.html (original)
+++ branches/Version14x/Scribus/scribus/doc/de/scripterapi-PDFfile.html Sat Jan 10 11:34:35 2015
@@ -45,6 +45,9 @@
 	<dd><code>Choose binding.<br>
 	0 - Left binding<br>
 	1 - Right binding</code></dd>
+	
+	<dt><strong>bleedMarks</strong> = <attribute 'bleedMarks' of 'PDFfile' objects></dt>
+	<dd><code>Create marks delimiting the bleed area.</code></dd>
 
 	<dt><strong>bleedb</strong> = <member 'bleedb' of 'PDFfile' objects></dt>
 	<dd><code>Bleed Bottom<br>Distance for bleed from the bottom of the physical page</code></dd>
@@ -61,6 +64,9 @@
 	<dt><strong>bookmarks</strong> = <member 'bookmarks' of 'PDFfile' objects></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> = <member 'colorMarks' of 'PDFfile' objects></dt>
+	<dd><code>Add color calibration bars.</code></dd>
+	
 	<dt><strong>compress</strong> = <member 'compress' of 'PDFfile' objects></dt>
 	<dd><code>Compression switch. Bool value.</code></dd>
 
@@ -70,6 +76,27 @@
 	1 - JPEG<br>
 	2 - zip<br>
 	3 - None.</code></dd>
+	
+	<dt><strong>cropMarks</strong> = <attribute 'cropMarks' of 'PDFfile' objects></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> = <attribute 'displayBookmarks' of 'PDFfile' objects></dt>
+	<dd><code>Display the bookmarks upon opening.</code></dd>
+	
+	<dt><strong>displayFullscreen</strong> = <attribute 'displayFullscreen' of 'PDFfile' objects></dt>
+	<dd><code>Display the document in full screen mode upon opening.</code></dd>
+	
+	<dt><strong>displayLayers</strong> = <attribute 'displayLayers' of 'PDFfile' objects></dt>
+	<dd><code>Display the layer list upon opening. Useful only for PDF 1.5+.</code></dd>
+	
+	<dt><strong>displayThumbs</strong> = <attribute 'displayThumbs' of 'PDFfile' objects></dt>
+	<dd><code>Display the page thumbnails upon opening.</code></dd>
+	
+	<dt><strong>docInfoMarks</strong> = <member 'docInfoMarks' of 'PDFfile' objects></dt>
+	<dd><code>Add document information which includes the document title and page numbers.</code></dd>
+	
+	<dt><strong>doClip</strong> = <attribute 'doClip' of 'PDFfile' objects></dt>
+	<dd><code>Do not show objects outside the margins in the exported file.</code></dd>
 
 	<dt><strong>downsample</strong> = <attribute 'downsample' of 'PDFfile' objects></dt>
 	<dd><code>Downsample image resolusion to this value. Values from 35 to 4000<br>Set 0 for not to downsample</code></dd>
@@ -104,14 +131,28 @@
                 4 - Top-left to Bottom-Right
 </pre></code></dd>
 
+<dt><strong>embedPDF</strong> = <member 'embedPDF' of 'PDFfile' objects></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> = <member 'encrypt' of 'PDFfile' objects></dt>
 <dd><code>Use Encription. Bool value</code></dd>
 
 <dt><strong>file</strong> = <attribute 'file' of 'PDFfile' objects></dt>
 <dd><code>Name of file to save into</code></dd>
 
+<dt><strong>fitWindow</strong> = <attribute 'fitWindow' of 'PDFfile' objects></dt>
+<dd><code>Fit the document page or pages to the available space in the viewer window.</code></dd>
+
 <dt><strong>fonts</strong> = <attribute 'fonts' of 'PDFfile' objects></dt>
 <dd><code>List of fonts to embed.</code></dd>
+
+<dt><strong>hideMenuBar</strong> = <attribute 'hideMenuBar' of 'PDFfile' objects></dt>
+<dd><code>Hides the viewer menu bar, the PDF will display in a plain window.</code></dd>
+
+<dt><strong>hideToolBar</strong> = <attribute 'hideToolBar' of 'PDFfile' objects></dt>
+<dd><code>Hides the viewer toolbar. The toolbar has usually selection and other editing capabilities.</code></dd>
 
 <dt><strong>imagepr</strong> = <attribute 'imagepr' of 'PDFfile' objects></dt>
 <dd><code>Color profile for images</code></dd>
@@ -132,6 +173,9 @@
 1 - Relative Colorimetric<br>
 2 - Saturation<br>
 3 - Absolute Colorimetric</code></dd>
+
+<dt><strong>isGrayscale</strong> = <attribute 'isGrayscale' of 'PDFfile' objects></dt>
+<dd><code>Export PDF in grayscale.</code></dd>
 
 <dt><strong>lpival</strong> = <attribute 'lpival' of 'PDFfile' objects></dt>
 <dd><code>Rendering Settings for individual colors.<br>
@@ -149,6 +193,15 @@
 </pre>
 Be careful when supplying these values as they are not checked for validity.</code></dd>
 
+<dt><strong>markOffset</strong> = <member 'markOffset' of 'PDFfile' objects></dt>
+<dd><code>Indicate the distance offset between mark and page area.</code></dd>
+
+<dt><strong>mirrorH</strong> = <member 'mirrorH' of 'PDFfile' objects></dt>
+<dd><code>Mirror Page(s) horizontally. Bool value.</code></dd>
+
+<dt><strong>mirrorV</strong> = <member 'mirrorV' of 'PDFfile' objects></dt>
+<dd><code>Mirror Page(s) vertically. Bool value.</code></dd>
+
 <dt><strong>noembicc</strong> = <member 'noembicc' of 'PDFfile' objects></dt>
 <dd><code>Don't use embedded ICC profiles. Bool value</code></dd>
 
@@ -159,6 +212,13 @@
 
 <dt><strong>owner</strong> = <attribute 'owner' of 'PDFfile' objects></dt>
 <dd><code>Owner's password</code></dd>
+
+<dt><strong>pageLayout</strong> = <attribute 'pageLayout' of 'PDFfile' objects></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> = <attribute 'pages' of 'PDFfile' objects></dt>
 <dd><code>List of pages to print</code></dd>
@@ -183,6 +243,9 @@
 3 - Low<br>
 4 - Minimum</code></dd>
 
+<dt><strong>registrationMarks</strong> = <attribute 'registrationMarks' of 'PDFfile' objects></dt>
+<dd><code>Add registration marks to each separation.</code></dd>
+
 <dt><strong>resolution</strong> = <attribute 'resolution' of 'PDFfile' objects></dt>
 <dd><code>Resolution of output file. Values from 35 to 4000.</code></dd>
 
@@ -194,6 +257,9 @@
 
 <dt><strong>usedocbleeds</strong> = <attribute 'usedocbleeds' of 'PDFfile' objects></dt>
 <dd><code>Use the existing bleed settings from the document preferences. Bool value.</code></dd>
+
+<dt><strong>useLayers</strong> = <attribute 'useLayers' of 'PDFfile' objects></dt>
+<dd><code>Layers in your document are exported to the PDF. Only available with PDF >= 1.5.</code></dd>
 
 <dt><strong>uselpi</strong> = <member 'uselpi' of 'PDFfile' objects></dt>
 <dd><code>Use Custom Rendering Settings. Bool value</code></dd>

Modified: branches/Version14x/Scribus/scribus/doc/en/scripterapi-PDFfile.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19747&path=/branches/Version14x/Scribus/scribus/doc/en/scripterapi-PDFfile.html
==============================================================================
--- branches/Version14x/Scribus/scribus/doc/en/scripterapi-PDFfile.html (original)
+++ branches/Version14x/Scribus/scribus/doc/en/scripterapi-PDFfile.html Sat Jan 10 11:34:35 2015
@@ -45,6 +45,9 @@
 	<dd><code>Choose binding.<br>
 	0 - Left binding<br>
 	1 - Right binding</code></dd>
+	
+	<dt><strong>bleedMarks</strong> = <attribute 'bleedMarks' of 'PDFfile' objects></dt>
+	<dd><code>Create marks delimiting the bleed area.</code></dd>
 
 	<dt><strong>bleedb</strong> = <member 'bleedb' of 'PDFfile' objects></dt>
 	<dd><code>Bleed Bottom<br>Distance for bleed from the bottom of the physical page</code></dd>
@@ -61,6 +64,9 @@
 	<dt><strong>bookmarks</strong> = <member 'bookmarks' of 'PDFfile' objects></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> = <member 'colorMarks' of 'PDFfile' objects></dt>
+	<dd><code>Add color calibration bars.</code></dd>
+	
 	<dt><strong>compress</strong> = <member 'compress' of 'PDFfile' objects></dt>
 	<dd><code>Compression switch. Bool value.</code></dd>
 
@@ -70,6 +76,27 @@
 	1 - JPEG<br>
 	2 - zip<br>
 	3 - None.</code></dd>
+	
+	<dt><strong>cropMarks</strong> = <attribute 'cropMarks' of 'PDFfile' objects></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> = <attribute 'displayBookmarks' of 'PDFfile' objects></dt>
+	<dd><code>Display the bookmarks upon opening.</code></dd>
+	
+	<dt><strong>displayFullscreen</strong> = <attribute 'displayFullscreen' of 'PDFfile' objects></dt>
+	<dd><code>Display the document in full screen mode upon opening.</code></dd>
+	
+	<dt><strong>displayLayers</strong> = <attribute 'displayLayers' of 'PDFfile' objects></dt>
+	<dd><code>Display the layer list upon opening. Useful only for PDF 1.5+.</code></dd>
+	
+	<dt><strong>displayThumbs</strong> = <attribute 'displayThumbs' of 'PDFfile' objects></dt>
+	<dd><code>Display the page thumbnails upon opening.</code></dd>
+	
+	<dt><strong>docInfoMarks</strong> = <member 'docInfoMarks' of 'PDFfile' objects></dt>
+	<dd><code>Add document information which includes the document title and page numbers.</code></dd>
+	
+	<dt><strong>doClip</strong> = <attribute 'doClip' of 'PDFfile' objects></dt>
+	<dd><code>Do not show objects outside the margins in the exported file.</code></dd>
 
 	<dt><strong>downsample</strong> = <attribute 'downsample' of 'PDFfile' objects></dt>
 	<dd><code>Downsample image resolusion to this value. Values from 35 to 4000<br>Set 0 for not to downsample</code></dd>
@@ -104,14 +131,28 @@
                 4 - Top-left to Bottom-Right
 </pre></code></dd>
 
+<dt><strong>embedPDF</strong> = <member 'embedPDF' of 'PDFfile' objects></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> = <member 'encrypt' of 'PDFfile' objects></dt>
 <dd><code>Use Encription. Bool value</code></dd>
 
 <dt><strong>file</strong> = <attribute 'file' of 'PDFfile' objects></dt>
 <dd><code>Name of file to save into</code></dd>
 
+<dt><strong>fitWindow</strong> = <attribute 'fitWindow' of 'PDFfile' objects></dt>
+<dd><code>Fit the document page or pages to the available space in the viewer window.</code></dd>
+
 <dt><strong>fonts</strong> = <attribute 'fonts' of 'PDFfile' objects></dt>
 <dd><code>List of fonts to embed.</code></dd>
+
+<dt><strong>hideMenuBar</strong> = <attribute 'hideMenuBar' of 'PDFfile' objects></dt>
+<dd><code>Hides the viewer menu bar, the PDF will display in a plain window.</code></dd>
+
+<dt><strong>hideToolBar</strong> = <attribute 'hideToolBar' of 'PDFfile' objects></dt>
+<dd><code>Hides the viewer toolbar. The toolbar has usually selection and other editing capabilities.</code></dd>
 
 <dt><strong>imagepr</strong> = <attribute 'imagepr' of 'PDFfile' objects></dt>
 <dd><code>Color profile for images</code></dd>
@@ -132,6 +173,9 @@
 1 - Relative Colorimetric<br>
 2 - Saturation<br>
 3 - Absolute Colorimetric</code></dd>
+
+<dt><strong>isGrayscale</strong> = <attribute 'isGrayscale' of 'PDFfile' objects></dt>
+<dd><code>Export PDF in grayscale.</code></dd>
 
 <dt><strong>lpival</strong> = <attribute 'lpival' of 'PDFfile' objects></dt>
 <dd><code>Rendering Settings for individual colors.<br>
@@ -149,6 +193,15 @@
 </pre>
 Be careful when supplying these values as they are not checked for validity.</code></dd>
 
+<dt><strong>markOffset</strong> = <member 'markOffset' of 'PDFfile' objects></dt>
+<dd><code>Indicate the distance offset between mark and page area.</code></dd>
+
+<dt><strong>mirrorH</strong> = <member 'mirrorH' of 'PDFfile' objects></dt>
+<dd><code>Mirror Page(s) horizontally. Bool value.</code></dd>
+
+<dt><strong>mirrorV</strong> = <member 'mirrorV' of 'PDFfile' objects></dt>
+<dd><code>Mirror Page(s) vertically. Bool value.</code></dd>
+
 <dt><strong>noembicc</strong> = <member 'noembicc' of 'PDFfile' objects></dt>
 <dd><code>Don't use embedded ICC profiles. Bool value</code></dd>
 
@@ -159,6 +212,13 @@
 
 <dt><strong>owner</strong> = <attribute 'owner' of 'PDFfile' objects></dt>
 <dd><code>Owner's password</code></dd>
+
+<dt><strong>pageLayout</strong> = <attribute 'pageLayout' of 'PDFfile' objects></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> = <attribute 'pages' of 'PDFfile' objects></dt>
 <dd><code>List of pages to print</code></dd>
@@ -183,6 +243,9 @@
 3 - Low<br>
 4 - Minimum</code></dd>
 
+<dt><strong>registrationMarks</strong> = <attribute 'registrationMarks' of 'PDFfile' objects></dt>
+<dd><code>Add registration marks to each separation.</code></dd>
+
 <dt><strong>resolution</strong> = <attribute 'resolution' of 'PDFfile' objects></dt>
 <dd><code>Resolution of output file. Values from 35 to 4000.</code></dd>
 
@@ -194,6 +257,9 @@
 
 <dt><strong>usedocbleeds</strong> = <attribute 'usedocbleeds' of 'PDFfile' objects></dt>
 <dd><code>Use the existing bleed settings from the document preferences. Bool value.</code></dd>
+
+<dt><strong>useLayers</strong> = <attribute 'useLayers' of 'PDFfile' objects></dt>
+<dd><code>Layers in your document are exported to the PDF. Only available with PDF >= 1.5.</code></dd>
 
 <dt><strong>uselpi</strong> = <member 'uselpi' of 'PDFfile' objects></dt>
 <dd><code>Use Custom Rendering Settings. Bool value</code></dd>

Modified: branches/Version14x/Scribus/scribus/doc/fr/scripterapi-PDFfile.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19747&path=/branches/Version14x/Scribus/scribus/doc/fr/scripterapi-PDFfile.html
==============================================================================
--- branches/Version14x/Scribus/scribus/doc/fr/scripterapi-PDFfile.html (original)
+++ branches/Version14x/Scribus/scribus/doc/fr/scripterapi-PDFfile.html Sat Jan 10 11:34:35 2015
@@ -26,56 +26,83 @@
 	<dt><strong>__new__</strong> = <méthode intégrée __new__ de type objet></dt>
 	<dd><code>T.<a href="#PDFfile-__new__">__new__</a>(S, ...) -> un nouvel objet de type S, un sous-type de T</code></dd>
 
-	<dt><strong>aanot</strong> = <membre 'aanot' des objets 'PDFfile'></dt>
+	<dt><strong>aanot</strong> = <membre 'aanot' de la classe 'PDFfile'></dt>
 	<dd><code>Autorise l'ajout d'annotations et de champs. Valeur booléenne</code></dd>
 
-	<dt><strong>achange</strong> = <membre 'achange' des objets 'PDFfile'></dt>
+	<dt><strong>achange</strong> = <membre 'achange' de la classe 'PDFfile'></dt>
 	<dd><code>Autorise la modification du document. Valeur booléenne</code></dd>
 
-	<dt><strong>acopy</strong> = <membre 'acopy' des objets 'PDFfile'></dt>
+	<dt><strong>acopy</strong> = <membre 'acopy' de la classe 'PDFfile'></dt>
 	<dd><code>Autorise la copie de texte et de graphiques. Valeur booléenne</code></dd>
 
-	<dt><strong>aprint</strong> = <membre 'aprint' des objets 'PDFfile'></dt>
+	<dt><strong>aprint</strong> = <membre 'aprint' de la classe 'PDFfile'></dt>
 	<dd><code>Autorise l'impression du document. Valeur booléenne</code></dd>
 
-	<dt><strong>article</strong> = <membre 'article' des objets 'PDFfile'></dt>
+	<dt><strong>article</strong> = <membre 'article' de la classe 'PDFfile'></dt>
 	<dd><code>Enregistre les cadres de texte liés en tant qu'articles PDF<br> Valeur booléenne</code></dd>
 
-	<dt><strong>binding</strong> = <membre 'binding' des objets 'PDFfile'></dt>
+	<dt><strong>binding</strong> = <membre 'binding' de la classe 'PDFfile'></dt>
 	<dd><code>Indique la liaison.<br>
  0 - Liaison à gauche<br>
  1 - Liaison à droite</code></dd>
 
-	<dt><strong>bleedb</strong> = <membre 'bleedb' des objets 'PDFfile'></dt>
+	<dt><strong>bleedMarks</strong> = <membre 'bleedMarks' de la classe 'PDFfile'></dt>
+	<dd><code>Crée les repères délimitant la zone de fond perdus.</code></dd>
+	
+	<dt><strong>bleedb</strong> = <membre 'bleedb' de la classe 'PDFfile'></dt>
 	<dd><code>Marge de coupe du bas<br>Distance pour la coupe à partir du bas de la page physique</code></dd>
 
-	<dt><strong>bleedl</strong> = <membre 'bleedl' des objets 'PDFfile'></dt>
+	<dt><strong>bleedl</strong> = <membre 'bleedl' de la classe 'PDFfile'></dt>
 	<dd><code>Marge de coupe de gauche<br>Distance pour la coupe à partir de la gauche de la page physique</code></dd>
 
-	<dt><strong>bleedr</strong> = <membre 'bleedr' des objets 'PDFfile'></dt>
+	<dt><strong>bleedr</strong> = <membre 'bleedr' de la classe 'PDFfile'></dt>
 	<dd><code>Marge de coupe de droite<br>Distance pour la coupe à partir de la droite de la page physique</code></dd>
 
-	<dt><strong>bleedt</strong> = <membre 'bleedt' des objets 'PDFfile'></dt>
+	<dt><strong>bleedt</strong> = <membre 'bleedt' de la classe 'PDFfile'></dt>
 	<dd><code>Marge de coupe du haut<br>Distance pour la coupe à partir du haut de la page physique</code></dd>
 
-	<dt><strong>bookmarks</strong> = <membre 'bookmarks' des objets 'PDFfile'></dt>
+	<dt><strong>bookmarks</strong> = <membre 'bookmarks' de la classe 'PDFfile'></dt>
 	<dd><code>Inclus les signets que vous avez créés dans votre document.<br>Ils sont utiles pour la navigation dans de longs documents PDF.<br>Valeur booléenne</code></dd>
 
-	<dt><strong>compress</strong> = <membre 'compress' des objets 'PDFfile'></dt>
+	<dt><strong>colorMarks</strong> = <membre 'colorMarks' de la classe 'PDFfile'></dt>
+	<dd><code>Ajoute les barres de contrôles.</code></dd>
+	
+	<dt><strong>compress</strong> = <membre 'compress' de la classe 'PDFfile'></dt>
 	<dd><code>Indicateur de compression. Valeur booléenne.</code></dd>
 
-	<dt><strong>compressmtd</strong> = <membre 'compressmtd' des objets 'PDFfile'></dt>
+	<dt><strong>compressmtd</strong> = <membre 'compressmtd' de la classe 'PDFfile'></dt>
 	<dd><code>Méthode de compression.<br>
  0 - Automatique<br>
  1 - JPEG<br>
  2 - zip<br>
  3 - Aucune.</code></dd>
 
-	<dt><strong>downsample</strong> = <attribut 'downsample' des objets 'PDFfile'></dt>
+	<dt><strong>cropMarks</strong> = <membre 'cropMarks' de la classe 'PDFfile'></dt>
+	<dd><code>Crée des repères indiquant o&ugrave le papier doit être coupé ou rogné après impression.</code></dd>
+
+	<dt><strong>displayBookmarks</strong> = <membre 'displayBookmarks' de la classe 'PDFfile'></dt>
+	<dd><code>Affiche l'onglet des signets lors de l'ouverture du document PDF.</code></dd>
+	
+	<dt><strong>displayFullscreen</strong> = <membre 'displayFullscreen' de la classe 'PDFfile'></dt>
+	<dd><code>Affiche le document PDF en mode plein écran lors de son ouverture.</code></dd>
+	
+	<dt><strong>displayLayers</strong> = <membre 'displayLayers' de la classe 'PDFfile'></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> = <membre 'displayThumbs' de la classe 'PDFfile'></dt>
+	<dd><code>Affiche les vignettes de pages lors de l'ouverture du document PDF.</code></dd>
+	
+	<dt><strong>docInfoMarks</strong> = <membre 'docInfoMarks' de la classe 'PDFfile'></dt>
+	<dd><code>Ajoute les informations de titre de document et de numéros de pages à l'extérieur de la zone de page.</code></dd>
+	
+	<dt><strong>doClip</strong> = <membre 'doClip'  de la classe 'PDFfile'></dt>
+	<dd><code>Empêche l'affichage des objets situés hors des marges.</code></dd>
+	
+	<dt><strong>downsample</strong> = <attribut 'downsample' de la classe 'PDFfile'></dt>
 	<dd><code>Réduit la résolution de l'image à cette valeur. Les
 valeurs sont comprises entre 35 et 4000<br>Mettre à 0 pour ne pas modifier la résolution</code></dd>
 
-	<dt><strong>effval</strong> = <attribut 'effval' des objets 'PDFfile'></dt>
+	<dt><strong>effval</strong> = <attribut 'effval' de la classe 'PDFfile'></dt>
 	<dd><code>Liste des valeurs des effets pour chaque page enregistrée.<br>
 	<pre>
 Il s'agit d'une liste de six nombres entiers. Ils ont la signification suivante:
@@ -105,36 +132,53 @@
                 4 - Du coin supérieur gauche au coin inférieur droit
 </pre></code></dd>
 
-<dt><strong>encrypt</strong> = <membre 'encrypt' des objets 'PDFfile'></dt>
+<dt><strong>embedPDF</strong> = <membre 'embedPDF' de la classe 'PDFfile'>;</dt>
+<dd><code>Exporte les fichiers EPS et PDF chargés dans des cadres d'images sous forme d'objets PDF.<br>
+Cette fonctionnalité 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éenne.</code></dd>
+
+<dt><strong>encrypt</strong> = <membre 'encrypt' de la classe 'PDFfile'></dt>
 <dd><code>Utilisation de l'encryption. Valeur booléenne</code></dd>
 
-<dt><strong>file</strong> = <attribut 'file' des objets 'PDFfile'></dt>
+<dt><strong>file</strong> = <attribut 'file' de la classe 'PDFfile'></dt>
 <dd><code>Nom du fichier dans lequel enregistrer</code></dd>
 
-<dt><strong>fonts</strong> = <membre 'fonts' des objets 'PDFfile'></dt>
+<dt><strong>fitWindow</strong> = <attribut 'fitWindow' de la classe 'PDFfile'></dt>
+<dd><code>Adapte l'affichage des pages à l'espace disponible dans la fenêtre du visualisateur.</code></dd>
+
+<dt><strong>fonts</strong> = <membre 'fonts' de la classe 'PDFfile'></dt>
 <dd><code>Liste de polices à inclure.</code></dd>
 
-<dt><strong>imagepr</strong> = <attribut 'imagepr' des objets 'PDFfile'></dt>
+<dt><strong>hideMenuBar</strong> = <attribut 'hideMenuBar' de la classe 'PDFfile'></dt>
+<dd><code>Cache la barre de menu du visualisateur, le PDF s'affichera pleine fenêtre.</code></dd>
+
+<dt><strong>hideToolBar</strong> = <attribut 'hideToolBar' de la classe 'PDFfile'></dt>
+<dd><code>Cache la barre d'outil du visualisateur. Cette barre a habituellement des fonctionnalitées d'édition et de sélection.</code></dd>
+
+<dt><strong>imagepr</strong> = <attribut 'imagepr' de la classe 'PDFfile'></dt>
 <dd><code>Profil couleur pour les images</code></dd>
 
-<dt><strong>info</strong> = <attribut 'info' des objets 'PDFfile'></dt>
+<dt><strong>info</strong> = <attribut 'info' de la classe 'PDFfile'></dt>
 <dd><code>Chaîne requise pour PDF/X-3, sinon le PDF ne sera pas conforme à PDF/X-3. Nous vous recommandons d'utiliser le titre du document.</code></dd>
 
-<dt><strong>intenti</strong> = <membre 'intenti' des objets 'PDFfile'></dt>
-<dd><code>Rendu pour les images<br>
+<dt><strong>intenti</strong> = <membre 'intenti' de la classe 'PDFfile'></dt>
+<dd><code>Intention de rendu pour les images<br>
 0 - Perceptuel<br>
 1 - Colorimétrie relative<br>
 2 - Saturation<br>
 3 - Colorimétrie absolue</code></dd>
 
-<dt><strong>intents</strong> = <membre 'intents' des objets 'PDFfile'></dt>
-<dd><code>Rendu pour les couleurs d'accompagnement<br>
+<dt><strong>intents</strong> = <membre 'intents' de la classe 'PDFfile'></dt>
+<dd><code>Intention de rendu pour les d'aplats<br>
 0 - Perceptuel<br>
 1 - Colorimétrie relative<br>
 2 - Saturation<br>
 3 - Colorimétrie absolue</code></dd>
 
-<dt><strong>lpival</strong> = <attribut 'lpival' des objets 'PDFfile'></dt>
+<dt><strong>isGrayscale</strong> = <attribut 'isGrayscale' de la classe 'PDFfile'></dt>
+<dd><code>Exporte le fichier PDF en mode niveaux de gris.</code></dd>
+
+<dt><strong>lpival</strong> = <attribut 'lpival' de la classe 'PDFfile'></dt>
 <dd><code>Paramètres du rendu pour des couleurs individuelles.<br>
 <pre>
 Il s'agit d'une liste de valeurs pour chaque couleur
@@ -151,33 +195,49 @@
 </pre>
 Soyez prudent en assignant ces valeurs, car leur validité n'est pas vérifiée.</code></dd>
 
-<dt><strong>noembicc</strong> = <membre 'noembicc' des objets 'PDFfile'></dt>
+<dt><strong>markOffset</strong> = <attribut 'markOffset' de la classe 'PDFfile'></dt>
+<dd><code>Indique la distance entre les repères et la zone de page correspondante.</code></dd>
+
+<dt><strong>mirrorH</strong> = <attribut 'mirrorH' de la classe 'PDFfile'></dt>
+<dd><code>Effectue un miroir horizontal des pages. Valeur booléenne.</code></dd>
+
+<dt><strong>mirrorV</strong> = <attribut 'mirrorV' de la classe 'PDFfile'></dt>
+<dd><code>Effectue un miroir vertical des pages. Valeur booléenne.</code></dd>
+
+<dt><strong>noembicc</strong> = <membre 'noembicc' de la classe 'PDFfile'></dt>
 <dd><code>Ne pas utiliser de profils ICC. Valeur booléenne</code></dd>
 
-<dt><strong>outdst</strong> = <membre 'outdst' des objets 'PDFfile'></dt>
+<dt><strong>outdst</strong> = <membre 'outdst' de la classe 'PDFfile'></dt>
 <dd><code>Destination de sortie.<br>
 0 - écran<br>
 1 - imprimante</code></dd>
 
-<dt><strong>owner</strong> = <attribut 'owner' des objets 'PDFfile'></dt>
+<dt><strong>owner</strong> = <attribut 'owner' de la classe 'PDFfile'></dt>
 <dd><code>Mot de passe du propriétaire</code></dd>
 
-<dt><strong>pages</strong> = <attribut 'pages' des objets 'PDFfile'></dt>
+<dt><strong>pageLayout</strong> = <attribut 'pageLayout' de la classe 'PDFfile'></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éfilement continu<br>
+2 - Affiche le document en mode 'pages doubles' avec la première page affichée à gauche<br>
+3 - Affiche le document en mode 'pages doubles' avec la première page affichée à droite</code></dd>
+
+<dt><strong>pages</strong> = <attribut 'pages' de la classe 'PDFfile'></dt>
 <dd><code>Liste des pages à imprimer</code></dd>
 
-<dt><strong>presentation</strong> = <membre 'presentation' des objets 'PDFfile'></dt>
+<dt><strong>presentation</strong> = <membre 'presentation' de la classe 'PDFfile'></dt>
 <dd><code>Active la valeur de présentation Effects.Bool</code></dd>
 
-<dt><strong>printprofc</strong> = <attribut 'printprofc' des objets 'PDFfile'></dt>
+<dt><strong>printprofc</strong> = <attribut 'printprofc' de la classe 'PDFfile'></dt>
 <dd><code>Profil de sortie pour l'impression. Si possible, référez-vous à votre imprimeur pour le choix du profil.</code></dd>
 
-<dt><strong>profilei</strong> = <membre 'profilei' des objets 'PDFfile'></dt>
+<dt><strong>profilei</strong> = <membre 'profilei' de la classe 'PDFfile'></dt>
 <dd><code>Inclus un profil couleur pour les images. Valeur booléenne.</code></dd>
 
-<dt><strong>profiles</strong> = <membre 'profiles' des objets 'PDFfile'></dt>
+<dt><strong>profiles</strong> = <membre 'profiles' de la classe 'PDFfile'></dt>
 <dd><code>Inclus un profil couleur pour les couleurs d'accompagnement. Valeur booléenne.</code></dd>
 
-<dt><strong>quality</strong> = <membre 'quality' des objets 'PDFfile'></dt>
+<dt><strong>quality</strong> = <membre 'quality' de la classe 'PDFfile'></dt>
 <dd><code>Qualité de l'image<br>
 0 - Maximum<br>
 1 - Haute<br>
@@ -185,25 +245,31 @@
 3 - Basse<br>
 4 - Minimum</code></dd>
 
-<dt><strong>resolution</strong> = <attribut 'resolution' des objets 'PDFfile'></dt>
+<dt><strong>registrationMarks</strong> = <attribut 'registrationMarks' de la classe 'PDFfile'></dt>
+<dd><code>Ajoute les marques de repèrage &agrave chaque séparation.</code></dd>
+
+<dt><strong>resolution</strong> = <attribut 'resolution' de la classe 'PDFfile'></dt>
 <dd><code>Résolution du fichier de sortie. Les valeurs sont comprises entre 35 et 4000.</code></dd>
 
-<dt><strong>solidpr</strong> = <attribut 'solidpr' des objets 'PDFfile'></dt>
-<dd><code>Profil couleur pour les couleurs d'accompagnement</code></dd>
-
-<dt><strong>thumbnails</strong> = <membre 'thumbnails' des objets 'PDFfile'></dt>
+<dt><strong>solidpr</strong> = <attribut 'solidpr' de la classe 'PDFfile'></dt>
+<dd><code>Profil couleur pour les couleurs d'aplats</code></dd>
+
+<dt><strong>thumbnails</strong> = <membre 'thumbnails' de la classe 'PDFfile'></dt>
 <dd><code>Génère les vignettes. Valeur booléenne.</code></dd>
 
 <dt><strong>usedocbleeds</strong> = <attribut 'usedocbleeds' de la classe 'PDFfile'></dt>
 <dd><code>Utilise les valeurs de fonds perdus configurées dans les préférences du document. Valeur booléenne.</code></dd>
 
-<dt><strong>uselpi</strong> = <membre 'uselpi' des objets 'PDFfile'></dt>
+<dt><strong>useLayers</strong> = <attribut 'useLayers' de la classe 'PDFfile'></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> = <membre 'uselpi' de la classe 'PDFfile'></dt>
 <dd><code>Utilisation des paramètres personnalisés de rendu. Valeur booléenne</code></dd>
 
-<dt><strong>user</strong> = <attribut 'user' des objets 'PDFfile'></dt>
+<dt><strong>user</strong> = <attribut 'user' de la classe 'PDFfile'></dt>
 <dd><code>Mot de passe de l'utilisateur</code></dd>
 
-<dt><strong>version</strong> = <membre 'version' des objets 'PDFfile'></dt>
+<dt><strong>version</strong> = <membre 'version' de la classe 'PDFfile'></dt>
 <dd><code>Indique la version de PDF à utiliser:<br>
 11 = PDF/X-1a<br>
 12 = PDF/X-3<br>

Modified: branches/Version14x/Scribus/scribus/doc/it/scripterapi-PDFfile.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19747&path=/branches/Version14x/Scribus/scribus/doc/it/scripterapi-PDFfile.html
==============================================================================
--- branches/Version14x/Scribus/scribus/doc/it/scripterapi-PDFfile.html (original)
+++ branches/Version14x/Scribus/scribus/doc/it/scripterapi-PDFfile.html Sat Jan 10 11:34:35 2015
@@ -1,214 +1,280 @@
-<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> = <built-in method __new__ of type object></dt>
-	<dd><code>T.<a href="#PDFfile-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</code></dd>
-
-	<dt><strong>aanot</strong> = <member 'aanot' of 'PDFfile' objects></dt>
-	<dd><code>Allow Adding Annotations and Fields. Bool value</code></dd>
-
-	<dt><strong>achange</strong> = <member 'achange' of 'PDFfile' objects></dt>
-	<dd><code>Allow Changing the Document. Bool value</code></dd>
-
-	<dt><strong>acopy</strong> = <member 'acopy' of 'PDFfile' objects></dt>
-	<dd><code>Allow Copying Text and Graphics. Bool value</code></dd>
-
-	<dt><strong>aprint</strong> = <member 'aprint' of 'PDFfile' objects></dt>
-	<dd><code>Allow Printing the Document. Bool value</code></dd>
-
-	<dt><strong>article</strong> = <member 'article' of 'PDFfile' objects></dt>
-	<dd><code>Save Linked Text Frames as PDF Articles<br> Bool value</code></dd>
-
-	<dt><strong>binding</strong> = <member 'binding' of 'PDFfile' objects></dt>
-	<dd><code>Choose binding.<br>
-	0 - Left binding<br>
-	1 - Right binding</code></dd>
-
-	<dt><strong>bleedb</strong> = <member 'bleedb' of 'PDFfile' objects></dt>
-	<dd><code>Bleed Bottom<br>Distance for bleed from the bottom of the physical page</code></dd>
-
-	<dt><strong>bleedl</strong> = <member 'bleedl' of 'PDFfile' objects></dt>
-	<dd><code>Bleed Left<br>Distance for bleed from the left of the physical page</code></dd>
-
-	<dt><strong>bleedr</strong> = <member 'bleedr' of 'PDFfile' objects></dt>
-	<dd><code>Bleed Right<br>Distance for bleed from the right of the physical page</code></dd>
-
-	<dt><strong>bleedt</strong> = <member 'bleedt' of 'PDFfile' objects></dt>
-	<dd><code>Bleed Top<br>Distance for bleed from the top of the physical page</code></dd>
-
-	<dt><strong>bookmarks</strong> = <member 'bookmarks' of 'PDFfile' objects></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> = <member 'compress' of 'PDFfile' objects></dt>
-	<dd><code>Compression switch. Bool value.</code></dd>
-
-	<dt><strong>compressmtd</strong> = <member 'compressmtd' of 'PDFfile' objects></dt>
-	<dd><code>Compression method.<br>
-	0 - Automatic<br>
-	1 - JPEG<br>
-	2 - zip<br>
-	3 - None.</code></dd>
-
-	<dt><strong>downsample</strong> = <attribute 'downsample' of 'PDFfile' objects></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> = <attribute 'effval' of 'PDFfile' objects></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> = <member 'encrypt' of 'PDFfile' objects></dt>
-<dd><code>Use Encription. Bool value</code></dd>
-
-<dt><strong>file</strong> = <attribute 'file' of 'PDFfile' objects></dt>
-<dd><code>Name of file to save into</code></dd>
-
-<dt><strong>fonts</strong> = <attribute 'fonts' of 'PDFfile' objects></dt>
-<dd><code>List of fonts to embed.</code></dd>
-
-<dt><strong>imagepr</strong> = <attribute 'imagepr' of 'PDFfile' objects></dt>
-<dd><code>Color profile for images</code></dd>
-
-<dt><strong>info</strong> = <attribute 'info' of 'PDFfile' objects></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> = <member 'intenti' of 'PDFfile' objects></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> = <member 'intents' of 'PDFfile' objects></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> = <attribute 'lpival' of 'PDFfile' objects></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> = <member 'noembicc' of 'PDFfile' objects></dt>
-<dd><code>Don't use embedded ICC profiles. Bool value</code></dd>
-
-<dt><strong>outdst</strong> = <member 'outdst' of 'PDFfile' objects></dt>
-<dd><code>Output destination.<br>
-0 - screen<br>
-1 - printer</code></dd>
-
-<dt><strong>owner</strong> = <attribute 'owner' of 'PDFfile' objects></dt>
-<dd><code>Owner's password</code></dd>
-
-<dt><strong>pages</strong> = <attribute 'pages' of 'PDFfile' objects></dt>
-<dd><code>List of pages to print</code></dd>
-
-<dt><strong>presentation</strong> = <member 'presentation' of 'PDFfile' objects></dt>
-<dd><code>Enable Presentation Effects.Bool value</code></dd>
-
-<dt><strong>printprofc</strong> = <attribute 'printprofc' of 'PDFfile' objects></dt>
-<dd><code>Output profile for printing. If possible, get some guidance from your printer on profile selection.</code></dd>
-
-<dt><strong>profilei</strong> = <member 'profilei' of 'PDFfile' objects></dt>
-<dd><code>Embed a color profile for images. Bool value.</code></dd>
-
-<dt><strong>profiles</strong> = <member 'profiles' of 'PDFfile' objects></dt>
-<dd><code>Embed a color profile for solid colors. Bool value.</code></dd>
-
-<dt><strong>quality</strong> = <member 'quality' of 'PDFfile' objects></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> = <attribute 'resolution' of 'PDFfile' objects></dt>
-<dd><code>Resolution of output file. Values from 35 to 4000.</code></dd>
-
-<dt><strong>solidpr</strong> = <attribute 'solidpr' of 'PDFfile' objects></dt>
-<dd><code>Color profile for solid colors</code></dd>
-
-<dt><strong>thumbnails</strong> = <member 'thumbnails' of 'PDFfile' objects></dt>
-<dd><code>Generate thumbnails. Bool value.</code></dd>
-
-<dt><strong>usedocbleeds</strong> = <attribute 'usedocbleeds' of 'PDFfile' objects></dt>
-<dd><code>Use the existing bleed settings from the document preferences. Bool value.</code></dd>
-
-<dt><strong>uselpi</strong> = <member 'uselpi' of 'PDFfile' objects></dt>
-<dd><code>Use Custom Rendering Settings. Bool value</code></dd>
-
-<dt><strong>user</strong> = <attribute 'user' of 'PDFfile' objects></dt>
-<dd><code>User's password</code></dd>
-
-<dt><strong>version</strong> = <member 'version' of 'PDFfile' objects></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> = <built-in method __new__ of type object></dt>
+	<dd><code>T.<a href="#PDFfile-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</code></dd>
+
+	<dt><strong>aanot</strong> = <member 'aanot' of 'PDFfile' objects></dt>
+	<dd><code>Allow Adding Annotations and Fields. Bool value</code></dd>
+
+	<dt><strong>achange</strong> = <member 'achange' of 'PDFfile' objects></dt>
+	<dd><code>Allow Changing the Document. Bool value</code></dd>
+
+	<dt><strong>acopy</strong> = <member 'acopy' of 'PDFfile' objects></dt>
+	<dd><code>Allow Copying Text and Graphics. Bool value</code></dd>
+
+	<dt><strong>aprint</strong> = <member 'aprint' of 'PDFfile' objects></dt>
+	<dd><code>Allow Printing the Document. Bool value</code></dd>
+
+	<dt><strong>article</strong> = <member 'article' of 'PDFfile' objects></dt>
+	<dd><code>Save Linked Text Frames as PDF Articles<br> Bool value</code></dd>
+
+	<dt><strong>binding</strong> = <member 'binding' of 'PDFfile' objects></dt>
+	<dd><code>Choose binding.<br>
+	0 - Left binding<br>
+	1 - Right binding</code></dd>
+	
+	<dt><strong>bleedMarks</strong> = <attribute 'bleedMarks' of 'PDFfile' objects></dt>
+	<dd><code>Create marks delimiting the bleed area.</code></dd>
+
+	<dt><strong>bleedb</strong> = <member 'bleedb' of 'PDFfile' objects></dt>
+	<dd><code>Bleed Bottom<br>Distance for bleed from the bottom of the physical page</code></dd>
+
+	<dt><strong>bleedl</strong> = <member 'bleedl' of 'PDFfile' objects></dt>
+	<dd><code>Bleed Left<br>Distance for bleed from the left of the physical page</code></dd>
+
+	<dt><strong>bleedr</strong> = <member 'bleedr' of 'PDFfile' objects></dt>
+	<dd><code>Bleed Right<br>Distance for bleed from the right of the physical page</code></dd>
+
+	<dt><strong>bleedt</strong> = <member 'bleedt' of 'PDFfile' objects></dt>
+	<dd><code>Bleed Top<br>Distance for bleed from the top of the physical page</code></dd>
+
+	<dt><strong>bookmarks</strong> = <member 'bookmarks' of 'PDFfile' objects></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> = <member 'colorMarks' of 'PDFfile' objects></dt>
+	<dd><code>Add color calibration bars.</code></dd>
+	
+	<dt><strong>compress</strong> = <member 'compress' of 'PDFfile' objects></dt>
+	<dd><code>Compression switch. Bool value.</code></dd>
+
+	<dt><strong>compressmtd</strong> = <member 'compressmtd' of 'PDFfile' objects></dt>
+	<dd><code>Compression method.<br>
+	0 - Automatic<br>
+	1 - JPEG<br>
+	2 - zip<br>
+	3 - None.</code></dd>
+	
+	<dt><strong>cropMarks</strong> = <attribute 'cropMarks' of 'PDFfile' objects></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> = <attribute 'displayBookmarks' of 'PDFfile' objects></dt>
+	<dd><code>Display the bookmarks upon opening.</code></dd>
+	
+	<dt><strong>displayFullscreen</strong> = <attribute 'displayFullscreen' of 'PDFfile' objects></dt>
+	<dd><code>Display the document in full screen mode upon opening.</code></dd>
+	
+	<dt><strong>displayLayers</strong> = <attribute 'displayLayers' of 'PDFfile' objects></dt>
+	<dd><code>Display the layer list upon opening. Useful only for PDF 1.5+.</code></dd>
+	
+	<dt><strong>displayThumbs</strong> = <attribute 'displayThumbs' of 'PDFfile' objects></dt>
+	<dd><code>Display the page thumbnails upon opening.</code></dd>
+	
+	<dt><strong>docInfoMarks</strong> = <member 'docInfoMarks' of 'PDFfile' objects></dt>
+	<dd><code>Add document information which includes the document title and page numbers.</code></dd>
+	
+	<dt><strong>doClip</strong> = <attribute 'doClip' of 'PDFfile' objects></dt>
+	<dd><code>Do not show objects outside the margins in the exported file.</code></dd>
+
+	<dt><strong>downsample</strong> = <attribute 'downsample' of 'PDFfile' objects></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> = <attribute 'effval' of 'PDFfile' objects></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> = <member 'embedPDF' of 'PDFfile' objects></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> = <member 'encrypt' of 'PDFfile' objects></dt>
+<dd><code>Use Encription. Bool value</code></dd>
+
+<dt><strong>file</strong> = <attribute 'file' of 'PDFfile' objects></dt>
+<dd><code>Name of file to save into</code></dd>
+
+<dt><strong>fitWindow</strong> = <attribute 'fitWindow' of 'PDFfile' objects></dt>
+<dd><code>Fit the document page or pages to the available space in the viewer window.</code></dd>
+
+<dt><strong>fonts</strong> = <attribute 'fonts' of 'PDFfile' objects></dt>
+<dd><code>List of fonts to embed.</code></dd>
+
+<dt><strong>hideMenuBar</strong> = <attribute 'hideMenuBar' of 'PDFfile' objects></dt>
+<dd><code>Hides the viewer menu bar, the PDF will display in a plain window.</code></dd>
+
+<dt><strong>hideToolBar</strong> = <attribute 'hideToolBar' of 'PDFfile' objects></dt>
+<dd><code>Hides the viewer toolbar. The toolbar has usually selection and other editing capabilities.</code></dd>
+
+<dt><strong>imagepr</strong> = <attribute 'imagepr' of 'PDFfile' objects></dt>
+<dd><code>Color profile for images</code></dd>
+
+<dt><strong>info</strong> = <attribute 'info' of 'PDFfile' objects></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> = <member 'intenti' of 'PDFfile' objects></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> = <member 'intents' of 'PDFfile' objects></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> = <attribute 'isGrayscale' of 'PDFfile' objects></dt>
+<dd><code>Export PDF in grayscale.</code></dd>
+
+<dt><strong>lpival</strong> = <attribute 'lpival' of 'PDFfile' objects></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> = <member 'markOffset' of 'PDFfile' objects></dt>
+<dd><code>Indicate the distance offset between mark and page area.</code></dd>
+
+<dt><strong>mirrorH</strong> = <member 'mirrorH' of 'PDFfile' objects></dt>
+<dd><code>Mirror Page(s) horizontally. Bool value.</code></dd>
+
+<dt><strong>mirrorV</strong> = <member 'mirrorV' of 'PDFfile' objects></dt>
+<dd><code>Mirror Page(s) vertically. Bool value.</code></dd>
+
+<dt><strong>noembicc</strong> = <member 'noembicc' of 'PDFfile' objects></dt>
+<dd><code>Don't use embedded ICC profiles. Bool value</code></dd>
+
+<dt><strong>outdst</strong> = <member 'outdst' of 'PDFfile' objects></dt>
+<dd><code>Output destination.<br>
+0 - screen<br>
+1 - printer</code></dd>
+
+<dt><strong>owner</strong> = <attribute 'owner' of 'PDFfile' objects></dt>
+<dd><code>Owner's password</code></dd>
+
+<dt><strong>pageLayout</strong> = <attribute 'pageLayout' of 'PDFfile' objects></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> = <attribute 'pages' of 'PDFfile' objects></dt>
+<dd><code>List of pages to print</code></dd>
+
+<dt><strong>presentation</strong> = <member 'presentation' of 'PDFfile' objects></dt>
+<dd><code>Enable Presentation Effects.Bool value</code></dd>
+
+<dt><strong>printprofc</strong> = <attribute 'printprofc' of 'PDFfile' objects></dt>
+<dd><code>Output profile for printing. If possible, get some guidance from your printer on profile selection.</code></dd>
+
+<dt><strong>profilei</strong> = <member 'profilei' of 'PDFfile' objects></dt>
+<dd><code>Embed a color profile for images. Bool value.</code></dd>
+
+<dt><strong>profiles</strong> = <member 'profiles' of 'PDFfile' objects></dt>
+<dd><code>Embed a color profile for solid colors. Bool value.</code></dd>
+
+<dt><strong>quality</strong> = <member 'quality' of 'PDFfile' objects></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> = <attribute 'registrationMarks' of 'PDFfile' objects></dt>
+<dd><code>Add registration marks to each separation.</code></dd>
+
+<dt><strong>resolution</strong> = <attribute 'resolution' of 'PDFfile' objects></dt>
+<dd><code>Resolution of output file. Values from 35 to 4000.</code></dd>
+
+<dt><strong>solidpr</strong> = <attribute 'solidpr' of 'PDFfile' objects></dt>
+<dd><code>Color profile for solid colors</code></dd>
+
+<dt><strong>thumbnails</strong> = <member 'thumbnails' of 'PDFfile' objects></dt>
+<dd><code>Generate thumbnails. Bool value.</code></dd>
+
+<dt><strong>usedocbleeds</strong> = <attribute 'usedocbleeds' of 'PDFfile' objects></dt>
+<dd><code>Use the existing bleed settings from the document preferences. Bool value.</code></dd>
+
+<dt><strong>useLayers</strong> = <attribute 'useLayers' of 'PDFfile' objects></dt>
+<dd><code>Layers in your document are exported to the PDF. Only available with PDF >= 1.5.</code></dd>
+
+<dt><strong>uselpi</strong> = <member 'uselpi' of 'PDFfile' objects></dt>
+<dd><code>Use Custom Rendering Settings. Bool value</code></dd>
+
+<dt><strong>user</strong> = <attribute 'user' of 'PDFfile' objects></dt>
+<dd><code>User's password</code></dd>
+
+<dt><strong>version</strong> = <member 'version' of 'PDFfile' objects></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>

Modified: branches/Version14x/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19747&path=/branches/Version14x/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp (original)
+++ branches/Version14x/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp Sat Jan 10 11:34:35 2015
@@ -47,8 +47,15 @@
 	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
@@ -87,6 +94,22 @@
 	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;
 
@@ -94,6 +117,7 @@
 {
 	Py_XDECREF(self->file);
 	Py_XDECREF(self->fonts);
+	Py_XDECREF(self->SubsetList);
 	Py_XDECREF(self->pages);
 	Py_XDECREF(self->resolution);
 	Py_XDECREF(self->downsample);
@@ -105,6 +129,8 @@
 	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);
 }
 
@@ -132,6 +158,11 @@
 			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){
@@ -140,6 +171,18 @@
 		}
 // 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
@@ -240,6 +283,30 @@
 		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;
 }
@@ -304,6 +371,30 @@
 			}
 //		}
 	}
+// 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;
@@ -327,8 +418,20 @@
 	}
 	Py_DECREF(self->pages);
 	self->pages = pages;
-// do not print thumbnails
+// 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;
@@ -514,12 +617,51 @@
 	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")},
@@ -547,6 +689,25 @@
 	{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
 };
 
@@ -605,6 +766,36 @@
 	Py_INCREF(value);
 	self->fonts = value;
 	PyList_Sort(self->fonts);
+	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;
 }
 
@@ -920,6 +1111,55 @@
 	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"
@@ -943,6 +1183,7 @@
 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},
@@ -954,6 +1195,8 @@
 	{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
 };
 
@@ -981,6 +1224,14 @@
 		QString tmpFon;
 		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;
@@ -994,6 +1245,18 @@
 	}
 // 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;
@@ -1074,7 +1337,7 @@
 	pdfOptions.UseLPI = self->uselpi;
 	pdfOptions.UseSpotColors = self->usespot;
 	pdfOptions.doMultiFile = self->domulti;
-	self->version = minmaxi(self->version, 12, 14);
+	self->version = minmaxi(self->version, 11, 15);
 	// FIXME: Sanity check version
 	pdfOptions.Version = (PDFOptions::PDFVersion)self->version;
 	if (self->encrypt)
@@ -1164,6 +1427,23 @@
 		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);




More information about the scribus-commit mailing list