<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Python: class PDFfile
</title>
</head>
<style>
@import "manual.css";
</style>
<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><p>This method is deprecated - use
<a href="#PDFfile-save">save
</a>() instead.
</p></dd>
<dt><a name="PDFfile-__init__"><strong>__init__
</strong></a>(...)
</dt><dd><p>x.
<a href="#PDFfile-__init__">__init__
</a>(...) initializes x; see x.__class__.__doc__ for signature
</p></dd>
<dt><a name="PDFfile-save"><strong>save
</strong></a>(...)
</dt><dd><p>Save selected pages to pdf file
</p></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><p>T.
<a href="#PDFfile-__new__">__new__
</a>(S, ...) -
> a new object with type S, a subtype of T
</p></dd>
<dt><strong>aanot
</strong> =
<member 'aanot' of 'PDFfile' objects
></dt>
<dd><p>Allow Adding Annotations and Fields. Bool value
</p></dd>
<dt><strong>achange
</strong> =
<member 'achange' of 'PDFfile' objects
></dt>
<dd><p>Allow Changing the Document. Bool value
</p></dd>
<dt><strong>acopy
</strong> =
<member 'acopy' of 'PDFfile' objects
></dt>
<dd><p>Allow Copying Text and Graphics. Bool value
</p></dd>
<dt><strong>aprint
</strong> =
<member 'aprint' of 'PDFfile' objects
></dt>
<dd><p>Allow Printing the Document. Bool value
</p></dd>
<dt><strong>article
</strong> =
<member 'article' of 'PDFfile' objects
></dt>
<dd><p>Save Linked Text Frames as PDF Articles
<br> Bool value
</p></dd>
<dt><strong>binding
</strong> =
<member 'binding' of 'PDFfile' objects
></dt>
<dd><p>Choose binding.
<br>
0 - Left binding
<br>
1 - Right binding
</p></dd>
<dt><strong>bleedb
</strong> =
<member 'bleedb' of 'PDFfile' objects
></dt>
<dd><p>Bleed Bottom
<br>Distance for bleed from the bottom of the physical page
</p></dd>
<dt><strong>bleedl
</strong> =
<member 'bleedl' of 'PDFfile' objects
></dt>
<dd><p>Bleed Left
<br>Distance for bleed from the left of the physical page
</p></dd>
<dt><strong>bleedr
</strong> =
<member 'bleedr' of 'PDFfile' objects
></dt>
<dd><p>Bleed Right
<br>Distance for bleed from the right of the physical page
</p></dd>
<dt><strong>bleedt
</strong> =
<member 'bleedt' of 'PDFfile' objects
></dt>
<dd><p>Bleed Top
<br>Distance for bleed from the top of the physical page
</p></dd>
<dt><strong>bookmarks
</strong> =
<member 'bookmarks' of 'PDFfile' objects
></dt>
<dd><p>Embed the bookmarks you created in your document.
<br>These are useful for navigating long PDF documents.
<br>Bool value
</p></dd>
<dt><strong>compress
</strong> =
<member 'compress' of 'PDFfile' objects
></dt>
<dd><p>Compression switch. Bool value.
</p></dd>
<dt><strong>compressmtd
</strong> =
<member 'compressmtd' of 'PDFfile' objects
></dt>
<dd><p>Compression method.
<br>
0 - Automatic
<br>
1 - JPEG
<br>
2 - zip
<br>
3 - None.
</p></dd>
<dt><strong>downsample
</strong> =
<attribute 'downsample' of 'PDFfile' objects
></dt>
<dd><p>Downsample image resolusion to this value. Values from 35 to 4000
<br>Set 0 for not to downsample
</p></dd>
<dt><strong>effval
</strong> =
<attribute 'effval' of 'PDFfile' objects
></dt>
<dd><p>List of effection values for each saved page.
<br></dd>
<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></p>
</dl>
<dl>
<dt><strong>encrypt
</strong> =
<member 'encrypt' of 'PDFfile' objects
></dt>
<dd><p>Use Encription. Bool value
</p></dd>
<dt><strong>file
</strong> =
<attribute 'file' of 'PDFfile' objects
></dt>
<dd><p>Name of file to save into
</p></dd>
<dt><strong>fonts
</strong> =
<attribute 'fonts' of 'PDFfile' objects
></dt>
<dd><p>List of fonts to embed.
</p></dd>
<dt><strong>imagepr
</strong> =
<attribute 'imagepr' of 'PDFfile' objects
></dt>
<dd><p>Color profile for images
</p></dd>
<dt><strong>info
</strong> =
<attribute 'info' of 'PDFfile' objects
></dt>
<dd><p>Mandatory string for PDF/X-3 or the PDF will fail PDF/X-3 conformance. We recommend you use the title of the document.
</p></dd>
<dt><strong>intenti
</strong> =
<member 'intenti' of 'PDFfile' objects
></dt>
<dd><p>Rendering intent for images
<br>
0 - Perceptual
<br>
1 - Relative Colorimetric
<br>
2 - Saturation
<br>
3 - Absolute Colorimetric
</p></dd>
<dt><strong>intents
</strong> =
<member 'intents' of 'PDFfile' objects
></dt>
<dd><p>Rendering intent for solid colors
<br>
0 - Perceptual
<br>
1 - Relative Colorimetric
<br>
2 - Saturation
<br>
3 - Absolute Colorimetric
</p></dd>
<dt><strong>lpival
</strong> =
<attribute 'lpival' of 'PDFfile' objects
></dt>
<dd><p>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.
</p></dd>
<dt><strong>noembicc
</strong> =
<member 'noembicc' of 'PDFfile' objects
></dt>
<dd><p>Don't use embedded ICC profiles. Bool value
</p></dd>
<dt><strong>outdst
</strong> =
<member 'outdst' of 'PDFfile' objects
></dt>
<dd><p>Output destination.
<br>
0 - screen
<br>
1 - printer
</p></dd>
<dt><strong>owner
</strong> =
<attribute 'owner' of 'PDFfile' objects
></dt>
<dd><p>Owner's password
</p></dd>
<dt><strong>pages
</strong> =
<attribute 'pages' of 'PDFfile' objects
></dt>
<dd><p>List of pages to print
</p></dd>
<dt><strong>presentation
</strong> =
<member 'presentation' of 'PDFfile' objects
></dt>
<dd><p>Enable Presentation Effects.Bool value
</p></dd>
<dt><strong>printprofc
</strong> =
<attribute 'printprofc' of 'PDFfile' objects
></dt>
<dd><p>Output profile for printing. If possible, get some guidance from your printer on profile selection.
</p></dd>
<dt><strong>profilei
</strong> =
<member 'profilei' of 'PDFfile' objects
></dt>
<dd><p>Embed a color profile for images. Bool value.
</p></dd>
<dt><strong>profiles
</strong> =
<member 'profiles' of 'PDFfile' objects
></dt>
<dd><p>Embed a color profile for solid colors. Bool value.
</p></dd>
<dt><strong>quality
</strong> =
<member 'quality' of 'PDFfile' objects
></dt>
<dd><p>Image quality
<br>
0 - Maximum
<br>
1 - High
<br>
2 - Medium
<br>
3 - Low
<br>
4 - Minimum
</p></dd>
<dt><strong>resolution
</strong> =
<attribute 'resolution' of 'PDFfile' objects
></dt>
<dd><p>Resolution of output file. Values from 35 to 4000.
</p></dd>
<dt><strong>solidpr
</strong> =
<attribute 'solidpr' of 'PDFfile' objects
></dt>
<dd><p>Color profile for solid colors
</p></dd>
<dt><strong>thumbnails
</strong> =
<member 'thumbnails' of 'PDFfile' objects
><dd><p>Generate thumbnails. Bool value.
</p></dt>
<dt><strong>uselpi
</strong> =
<member 'uselpi' of 'PDFfile' objects
></dt>
<dd><p>Use Custom Rendering Settings. Bool value
</p></dd>
<dt><strong>user
</strong> =
<attribute 'user' of 'PDFfile' objects
></dt>
<dd><p>User's password
</p></dd>
<dt><strong>version
</strong> =
<member 'version' of 'PDFfile' objects
></dt>
<dd><p>Choose PDF version to use:
<br>
12 = PDF/X-3
<br>
13 = PDF 1.3 (Acrobat 4)
<br>
14 = PDF 1.4 (Acrobat 5)
</p></dd>
</dl>
</body>
</html>