www.cloudformatter.com

cloudformatter format requests: 4,926,734    pages delivered: 11,093,528

PDF Properties

xportability LLC

PDF Properties

http://www.cloudformatter.com

Using a custom set of XML tags inside your HTML, you can insert both custom metadata as well as instructions for how the PDF would be viewed in a PDF viewer application (subject of course to that application supporting those features).

Options

You use the (optional) tag <pdfproperties> and within that tag you can insert <metainfo> and <pdfpreferences> sections as shown in the instructions below. Within the <metainfo> tag, you can add <prop> tags with @name, @value attribute pairs with the data you wish to store in the PDF metadata. Anything without one of the recognized, standard PDF names (author, title, subject, creator, keywords) are stored in custom metadata in the PDF.

The <pdfpreferences> section allows you to insert one or more <pref> tags with specific @name, @value pairs that control the way the resulting PDF is displayed with a viewer that supports standard PDF view attributes. The support name, @value pairs are listed below and grouped into all the available categories:

General PDF Options

These options let you control some general information about the generated PDF.

bookmarks - sets whether PDF bookmarks are generated or not. The default is "false" for Cloudformatter. You can set @value to "true" if you want bookmarks in PDF. Note that bookmarks are only generated for interpreted hierarchical information. All h1 elements and there following h2 elements and so on. Skipping levels will break the sequence and the bookmarks will not be correct.

pdf-version - sets the PDF version number. The default is version 1.5 for Cloudformatter but you set @value to values like "1.3", "1.4", "1.6" or "1.7" if you wish to change the version. Be aware thar some other features could be disabled by setting the version too low.

compress - sets whether the PDF is compressed or not. The default is "true" for Cloudformatter. You can set @value to "false" if you want uncompressed PDF.

linearize - sets whether the PDF is linearized or not. The default is "false" for Cloudformatter. You can set @value to "true" if you want to optimize a long PDF for web view.

PDF View Options

These options let you control how the PDF when opened appears to the end user.

view-mode - Choose from one of the following:

  • auto - If there are bookmarks in the document, the bookmarks pane is displayed. Otherwise, all auxiliary panes are hidden.
  • show-none - All auxiliary panes are hidden.
  • show-bookmarks - The bookmarks pane is displayed.
  • show-thumbnails - The thumbnails pane is displayed.
  • full-screen - The document is displayed in full screen-mode.

initial-zoom - Choose from one of the following:

  • auto - Page scaling is not specified.
  • fit - The page is scaled to fit completely into the view port.
  • fit-width - The page is scaled so that its width matches the width of the view port.
  • fit-height - The page is scaled so that its height matches the height of the view port.
  • ### or ####% - The page is scaled by the number or percentage specified.

page-layout - Choose from one of the following:

  • auto - Uses settings of viewer application.
  • single-page - Displays one page at a time.
  • continuous - Displays pages continuously in one column.
  • two-columns-left - Displays pages continuously in two columns, with odd-numbered pages to the left.
  • two-columns-right - Displays pages continuously in two columns, with odd-numbered pages to the right.
  • two-pages-left - Displays pages in two columns, by two pages at a time, with odd-numbered pages to the left.
  • two-pages-right - Displays pages in two columns, by two pages at a time, with odd-numbered pages to the right.

viewer-preferences - A comma separated list of the following possibilities:

  • hide-toolbar - Hides the viewer application's tool bars when the document is active.
  • hide-menubar - Hides the viewer application's menu bar when the document is active.
  • hide-window-ui - Hides user interface elements in the document's window (such as scroll bars and navigation controls), leaving only the document's contents displayed.
  • fit-window - Resizes the document's window to fit the size of the first displayed page.
  • center-window - Positions the document's window in the center of the screen.
  • display-document-title - Controls whether the window's title bar displays the document title taken from the "title" metadata field.

PDF Security

These options allow you to specify owner and user security in the PDF output. User-level security can inject a password to be used to open the PDF, while owner-level security can control what can be done with the PDF (like printing it or copying the data from it).

userpassword - Sets the user password that must be entered to view the PDF. There are no options, the @value passed is the password to be used.

ownerpassword - Sets the owner password that must be entered to enable advanced processing of the PDF. There are no options, the @value passed is the password to be used. An ownerpassword is used to lock down certain privledges that an owner will grant to a recipient of the PDF. Without the owner password, recipients can be restricted from certain things. By default they are restricted from everything, and you can then specify what additional things you allow by using userpriviledges.

userpriviledges - A comma separated list of the following possibilities:

  • print - Enables printing the document.
  • modify - Enables editing the document.
  • copy - Enables copying text and images from the document to the clipboard.
  • annotate - Enables adding notations to the document and changing the field values.

PDF Pre-Press Options

These allow you to specify crop marks, bleeds and registration marks to be applied to the PDF.

crop-offset - specify offsets from the meaningful content on the page to the edges of the physical media (/MediaBox entry in the PDF page dictionary). Its value is a series of 1 to 4 length specifiers that set offsets from the edges of the page area to the corresponding edges of the /MediaBox. Rules for expanding the value are the same as for the padding property in CSS.

bleed - specify the bleeds — an extra space around the page area into which the contents of the page may protrude (/BleedBox entry in the PDF page dictionary). Its value is a series of 1 to 4 length specifiers that set offsets from the edges of the page area to the corresponding edges of the /BleedBox. Rules for expanding the value are the same as for the padding property in CSS.

crop-mark-width - defines line width for the crop marks, setting it to 0 disables drawing of crop marks.

bleed-mark-width - defines line width for the bleed marks, setting it to 0 disables drawing of bleed marks.

printer-mark - specify additional SVG images to be drawn in the offset area surrounding the page (specified by crop-offset and bleed parameters). Printer marks are clipped to the outside of the bleed rectangle. The @value is a URL to an SVG you have. This sample has two URLs (one for a colorbar and one for a registration mark) you can also use if you like.

The following code is what is behind this page for producing the PDF. Of course, you would only see the things supported by your PDF viewer you use. If you wish to see them all in action, then use "download" and Adobe Reader to view the PDF.

Note:

Recent changes in some browsers will not treat this XML as XML. Instead it tries (incorrectly) to not close tags. For best results, be sure to use open and close tags and not a self-closing tag.

<pdfproperties style="display:none;">
    <metainfo>
        <prop name="author" value="Xportability LLC"></prop>
        <prop name="title"
            value="Xportability Cloudformatter: Showing Custom
            PDF Properties"></prop>
        <prop name="subject" value="A Cloudformatter Document"></prop>
        <prop name="creator" value="css2pdf@cloudformatter.com"></prop>
        <prop name="keywords" value="CSS, PDF, Cloudformatter"></prop>
        <prop name="custom1" value="value1"></prop>
        <prop name="custom2" value="value2"></prop>
        <prop name="custom3" value="value3"></prop>
        <prop name="custom4" value="value4"></prop>
    </metainfo>
    <pdfpreferences>
        <pref name="bookmarks" value="true"></pref>
        <pref name="pdf-version" value="1.6"></pref>
        <pref name="view-mode" value="auto"></pref>
        <pref name="initial-zoom" value="fit-height"></pref>
        <pref name="page-layout" value="two-columns-left"></pref>
        <pref name="viewer-preferences" value="display-document-title"></pref>
        <pref name="crop-offset" value="0.5in"></pref>
        <pref name="crop-mark-width" value="1px"></pref>
        <pref name="printer-mark"
            value="http://www.cloudformatter.com/Resources/Images/registration.svg"></pref>
        <pref name="printer-mark"
            value="http://www.cloudformatter.com/Resources/Images/colorbar.svg"></pref>
    </pdfpreferences>
</pdfproperties>

Sample Output H2

Invidunt labore dolore nonumy diam dolores. Labore est magna kasd consetetur sanctus. Ullamcorper sed nonumy magna justo elit ipsum sadipscing est stet. Vero justo no dolore aliquam kasd sea eos amet takimata no hendrerit nonumy. Ut et nonumy. Justo aliquip dolor dolores et clita elitr ut nulla sea accusam no no sed vel sea est. Diam ipsum sit minim ipsum ut erat sadipscing. Est amet rebum veniam commodo at magna tempor illum duo et ut et diam et vulputate option. Sed rebum aliquyam amet dolore stet sadipscing elitr ipsum dolor tincidunt commodo gubergren.

Magna stet ipsum. Et elitr amet sanctus te dolores sea stet stet. Dolor magna voluptua accusam ipsum tempor erat sit gubergren. Labore volutpat sanctus euismod eirmod. Dolore sea invidunt amet dolor. Sit sea labore amet at invidunt justo euismod takimata erat.

Sample Output H3

Vulputate adipiscing ea diam sea sit kasd ad kasd dolor erat ipsum. Vero diam augue dolor. Diam dolores mazim no dolore dolores eirmod at stet sadipscing magna amet kasd. Diam nonumy sit accumsan dolore sanctus amet. Et nam diam labore commodo justo gubergren sit eum takimata gubergren at elitr dolor vero aliquyam dolor. Eos dolore nonumy justo adipiscing kasd at quis elit amet eos sit amet sit. Sadipscing labore ut luptatum aliquyam amet duo et kasd aliquyam at. Qui nulla nonumy et. Ut amet labore duo nonumy rebum. Dolores no ut nonumy lorem erat magna in rebum vero et stet eirmod et est facilisis lorem dolores diam.

Accusam odio est facer erat tempor kasd amet. Vel stet dignissim gubergren ex accusam dolores erat sit et amet ut at amet laoreet. Diam sanctus wisi in erat sit dolor in eirmod amet. Feugiat gubergren justo at invidunt nostrud volutpat kasd justo feugait sed et dolor at at dolores sadipscing ut. Aliquyam voluptua dolor sit molestie magna kasd kasd amet eos sed. Placerat liber et. Eum amet sea stet in justo ipsum iusto sit dolore laoreet amet eros diam ut sea ut. Elit stet dolor stet dolore. No delenit odio.

Sample Output H4

Nulla sanctus sit et eros aliquyam amet ut consetetur sed sanctus dolor. Amet nonumy tempor kasd invidunt eum dolor et. Dolore accusam invidunt duo vel erat rebum est amet amet invidunt. Et voluptua voluptua aliquyam ut vero et ut sea tempor hendrerit ipsum exerci elitr. Amet autem nostrud diam et diam ipsum feugiat at et eos aliquip. Et nonumy et nonumy duo diam vero augue dolores rebum sit facilisi sed praesent diam. Aliquyam wisi elitr dolor takimata amet accusam sit. Takimata consetetur dolor amet vel. Amet assum justo luptatum dolor est laoreet dolore et justo ipsum dignissim et. Dolor tempor dignissim ea erat amet diam. Diam no sit ipsum luptatum voluptua iriure dolore.

Ea velit accumsan et gubergren et ut sed eros consetetur takimata. Sadipscing at takimata ut facilisis aliquam takimata tempor dolores sea gubergren quis invidunt no aliquyam est. Sit hendrerit ut sit ipsum nonumy ea eirmod et diam ipsum congue rebum qui sadipscing. Ipsum amet dignissim quis sed vel. Vero et ut takimata voluptua gubergren duo dolor imperdiet magna consetetur dolore invidunt et diam. Liber sed invidunt aliquyam. Est takimata volutpat dolor sit est lorem sea blandit minim. Dolore ut clita vel sit eos diam diam rebum voluptua et duo et vero takimata dolor amet sanctus. Aliquam voluptua ut consectetuer amet kasd magna tempor et sanctus ex sadipscing sadipscing justo duo lorem qui gubergren magna. Ut sit at et ad aliquyam est luptatum et nibh ipsum dolore ipsum sit elitr ea sit aliquyam.

Sample Output H4

Ea amet vel et kasd dolore vel eirmod. At accusam ut kasd sea in praesent vel. Et nam sanctus et et amet ipsum voluptua diam diam diam ea. Eirmod amet eirmod labore erat in ipsum est ipsum ad sanctus amet sed elitr consetetur labore amet clita. Enim doming kasd laoreet amet ipsum ut ipsum justo tincidunt diam elitr sanctus. Eos vel vero eos at nihil aliquyam amet magna. Diam amet accusam congue iusto hendrerit et erat sed ut et euismod sed doming sadipscing ut lorem sit. Duis eirmod sea duo eos ut gubergren praesent ea et et rebum ut magna dolore eu consetetur diam te. Sea facer duo. Ipsum takimata zzril est et aliquyam vulputate hendrerit erat ea duis praesent eleifend ex luptatum stet vero. Duo at sed diam magna amet et clita lorem sed consetetur invidunt takimata gubergren est consetetur wisi ea assum.

Invidunt rebum in amet ex consequat eos dolore. Et kasd tempor ut molestie voluptua dolore delenit sed est et. Magna erat lorem sadipscing facilisi facer eum takimata ut dolor at eirmod at enim iriure eirmod diam dolore. Commodo magna tempor gubergren clita duis facer sanctus erat. Dolores tempor et in. Lorem amet kasd takimata clita gubergren amet feugait nonummy sed. Lorem gubergren lorem ea ipsum nulla esse eros ipsum nonumy sit nulla velit. Sit labore dolore ea justo magna ut zzril at ad lorem dolore.

Sample Output H3

Aliquam ipsum et sed et facer amet nonummy dolor. Nostrud sadipscing volutpat in eirmod kasd hendrerit voluptua vero lorem kasd voluptua. Rebum sea feugiat augue dolor invidunt feugait wisi ipsum tempor. Elitr amet dolores justo euismod. Tincidunt hendrerit ea ea. Voluptua facilisis tempor diam vel molestie. Tempor dolores lorem hendrerit feugait sadipscing sit justo. Et dolor tincidunt dolores voluptua. Amet lorem accusam amet. Nulla sed odio accusam gubergren tempor quis dolore dolor veniam voluptua odio tempor.

No magna praesent laoreet eos minim sanctus. Sit consetetur vero dolor tation voluptua dolor accusam est eirmod stet ipsum no sit consectetuer sed gubergren sit. Duo lorem at vero est ea amet nostrud justo minim magna eirmod vero suscipit. Consetetur autem erat at. Sanctus sed facer esse molestie. Lorem sanctus no dolores ut elitr ipsum no nisl velit sanctus.

Sample Output H4

Tempor amet dolor at et diam lorem consequat ut labore vel tempor kasd. Nobis labore diam no amet nulla magna kasd assum erat et eum et volutpat. Ipsum invidunt nonumy dolore lorem iusto qui accusam et lorem commodo sit sanctus. Accusam sed magna vero dolor eirmod at dolore. Diam magna accusam. Dolore accusam vero diam sit sit labore voluptua lorem ea magna vulputate qui dolore stet consetetur diam nonumy.

Ad ad adipiscing diam accusam accusam erat kasd facer sanctus dolor. Labore veniam eos ea elitr odio magna labore in sadipscing eos ea. Labore ex sanctus. Vel et ea vero wisi nihil erat vulputate labore nisl eu eos diam zzril euismod rebum. Euismod lorem no sed. Eos sed diam et. Dolor magna diam esse aliquyam nonumy dolore lorem dignissim tempor lorem blandit duo amet no nibh lorem sit. Sit euismod clita ut sit vero imperdiet dolor enim elit eum eos gubergren eu nulla dolor et amet. Diam et sed gubergren. Et wisi eos. Dolor nonumy consetetur et diam.

Sample Output H4

Gubergren gubergren illum sadipscing amet in elitr diam diam sea rebum. Accusam suscipit clita. Dolore rebum iriure sanctus kasd et eirmod. Sit justo accumsan et laoreet invidunt tempor et vulputate. Dolores invidunt lobortis sit velit magna laoreet lorem possim et kasd diam sit stet ut amet erat. Augue lorem hendrerit nonummy sed sanctus luptatum no justo elitr.

Et magna erat. In et ipsum. Sea lorem dignissim takimata stet. Duo delenit dolores imperdiet ipsum et clita gubergren diam amet exerci. Sed ea illum ipsum clita duo facilisis et nonummy dolore rebum. Possim nonummy magna ipsum eirmod ipsum et. Ea at tempor duo sadipscing dolor consetetur et est consetetur.

More Sample Output H2

Amet labore ut lorem aliquyam gubergren invidunt invidunt ea. Diam iusto sit invidunt takimata hendrerit gubergren. Nonumy diam et aliquyam consetetur ea. Et sanctus accusam vero est dolore dolor duo. Eirmod sanctus iriure diam labore sed kasd delenit et sea. Et ipsum sanctus esse est amet sea velit erat illum. Vero et diam ipsum ipsum et erat amet takimata eirmod ipsum justo ipsum blandit sit dolore.

Nihil ipsum dolor ut lorem imperdiet consectetuer duo lorem justo gubergren tation magna dolore aliquyam eos eu justo. Et ut sit magna. Dolor imperdiet clita. Sea et sea minim diam diam vero ea ut eirmod lorem congue zzril. Nulla gubergren ut ea in accusam nonumy at invidunt facilisi. Vero tempor dolor eu gubergren ut. Ut amet facilisis lorem consetetur ad. Sit sea dolore nonumy feugait justo et nonumy dignissim ea quis ipsum eirmod accusam vero sadipscing et.

Sample Output H3

Euismod amet facilisi et eu voluptua est dolor rebum eleifend clita sadipscing adipiscing eirmod et eirmod stet. Consequat sanctus voluptua illum eos dolores et sed sea rebum magna kasd in. Lobortis sea tempor dolore amet invidunt sit rebum labore duo et aliquam in. Voluptua ipsum eirmod dolore te duo erat. Erat magna imperdiet et odio voluptua justo diam accusam.

Amet lorem nibh amet duo sadipscing. At iusto nonumy eirmod takimata adipiscing iriure. Ea no eros dolore duo et stet accusam rebum. Ex nonumy vel hendrerit amet erat ipsum. Stet sanctus diam et praesent et laoreet ipsum exerci nulla vel diam accusam kasd et vero kasd no et. Qui ipsum accumsan et ipsum. Dolore erat no eu vero tincidunt ullamcorper sed tempor dolor sadipscing. Feugait et placerat dignissim sit laoreet elitr labore duo sea voluptua exerci nonummy invidunt ipsum at eirmod. Amet lorem accusam sea sanctus lorem. Consetetur dolor justo amet zzril at luptatum consequat ea ea.

Sample Output H4

Labore takimata ipsum sed at facilisi accumsan amet sanctus invidunt et dolor et takimata. Invidunt eirmod diam ut labore lorem justo dolor laoreet et accusam lorem illum dolore takimata magna sit sanctus voluptua. Est ipsum stet amet ut dolore iusto kasd sea diam at dolore takimata ipsum aliquyam sit. Dolores diam clita ea est amet lorem lorem. Est et lorem est vulputate takimata sadipscing in est. At dolore dolores. Rebum elitr tempor justo ipsum diam et vel nonumy nulla.

Amet dolor dolor amet dolor amet sed vel voluptua stet clita dolor ex dolor eos et vero sea accusam. Adipiscing dolor dolor takimata imperdiet at invidunt rebum elitr. Ea diam kasd lorem rebum amet dolore est et aliquyam diam lorem accumsan dolor aliquyam iusto justo duis. No no et vero qui duo erat lorem consetetur et voluptua et diam vero sanctus dolores quod hendrerit. Tation diam gubergren sed aliquyam in. Ea et eum duis eos sanctus sed sit erat. Id minim gubergren sanctus dolor zzril illum et sadipscing sea rebum aliquyam dolore ex invidunt amet gubergren eirmod. Lorem consequat eleifend labore justo lorem commodo ex eu ipsum et sed aliquyam amet iriure. Magna sit et at aliquyam. Sea clita et molestie.

Sample Output H4

Diam ullamcorper erat sit nonumy ipsum vero vel consetetur eu sed ipsum no kasd delenit. Sanctus autem et nisl eirmod vel sanctus stet iusto consetetur. Voluptua sed in labore amet lorem erat nibh sea clita at in takimata labore ea diam qui gubergren. Vel ea ea lorem vulputate justo tempor magna eos rebum duo elit vero augue iriure lorem kasd euismod. Sed ea dolor lorem vulputate gubergren erat kasd takimata dolore dolor justo accusam lorem molestie clita. Kasd sea delenit dolore eum liber. Stet nonumy odio sit. Autem nonumy ipsum accusam.

Diam aliquyam ea. Nam nulla no clita amet vero vel diam no suscipit. Sit eirmod sea diam rebum nonumy. Accusam elitr dolor nonummy aliquyam clita consetetur elitr amet volutpat aliquyam esse eirmod amet consetetur diam. Est vero labore et labore amet. At rebum sea clita dolor consetetur id diam suscipit no at. Sed at ipsum iusto ea sea sed diam dolores. Et invidunt sanctus labore sea facer. Consetetur no et possim voluptua eos et erat et diam hendrerit et esse diam sed sed stet.

Sample Output H3

Vero dolores amet clita. Accumsan suscipit minim elitr ipsum est duo invidunt lorem invidunt ipsum wisi et. Lorem magna dolore diam stet duo gubergren est ipsum dolor magna kasd aliquip iusto magna dolores nonumy consetetur. Magna aliquyam invidunt gubergren nulla tation quis eos iusto justo soluta consequat placerat. Ut dolor vero sadipscing. Erat consetetur ea qui amet quis. Sed invidunt erat velit aliquip aliquyam ipsum est est voluptua stet tation takimata accusam kasd. Id invidunt nibh ut. Sit justo vero sed et et ea et sanctus clita diam duo. Sed invidunt minim duo eirmod sanctus consetetur clita consetetur clita ut delenit.

Dolor eirmod assum wisi zzril tempor dolor. Amet liber augue rebum rebum eirmod dolor dolores kasd et et sed sadipscing suscipit sit. Molestie sea erat nonumy justo ullamcorper nonumy sed nisl erat diam et. Kasd voluptua magna augue nibh. Takimata eirmod duo no vulputate ut gubergren dolor augue sanctus exerci. Vel dolore kasd dolor voluptua vero augue ea. Minim aliquam nulla et lorem magna ea dolore dolor amet sit dolore magna vel diam.

Sample Output H4

Velit ipsum elitr dignissim diam est consetetur esse amet eirmod takimata enim illum ipsum et enim. Sed duo amet et labore est et justo consequat veniam lorem et ea sanctus et. Voluptua eirmod gubergren takimata mazim hendrerit facilisis delenit dolor sanctus elitr facilisi tempor dolor elitr elit dolores. Labore accusam mazim vero liber lorem clita. Id rebum facilisis sadipscing ut eleifend consequat ut. Rebum takimata lobortis amet et nonumy adipiscing erat sanctus clita.

Diam et qui clita amet eirmod. Liber dolore sit gubergren amet. Consetetur esse labore lorem ut. Et dolor est kasd vero consetetur justo dolor. Kasd amet sed eirmod takimata ut sed sadipscing kasd aliquyam sed clita invidunt aliquyam diam magna aliquyam diam consetetur. Aliquam imperdiet vero vulputate. Ex stet consectetuer no rebum labore voluptua at duo id in vero iusto takimata et aliquam mazim.

Sample Output H4

Delenit eos ut et amet erat consetetur amet vero laoreet sed consequat iusto erat dolor lorem accusam nulla labore. Nonummy et lorem duo lorem amet ut. Nonumy et eirmod aliquyam odio amet diam eirmod blandit elitr lorem. Ut dolores sit stet no clita dolore et odio ex dolor erat lobortis consetetur clita option dolor et dolor. Lorem dignissim clita dolore duo ipsum.

Iriure rebum et aliquyam feugait sanctus nonummy sed. Amet tincidunt no dolores tempor dolor vel accusam sadipscing dolor sed odio autem consetetur commodo diam ut. Ipsum sanctus sit tempor kasd et kasd vero placerat molestie accusam lorem dolores adipiscing. Ut minim ut at feugiat duo duo sed rebum elitr takimata ut. Amet et ipsum nonumy.