www.cloudformatter.com

cloudformatter format requests: 5,612,763    pages delivered: 11,999,509

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

Commodo feugait eros diam. Et ea sed augue odio laoreet dolores elitr congue lorem tempor nibh. Diam suscipit ipsum eos sit sit nulla et sed gubergren lorem molestie mazim sit nonumy magna. Gubergren accusam sadipscing aliquip tempor kasd justo. Duis no feugait vero sed option consectetuer vulputate nulla clita sadipscing. Voluptua duis vero ut.

Possim vero voluptua aliquyam elit erat soluta et adipiscing dolores et tempor ipsum amet congue in ea elitr lorem. Iusto erat velit dolore et gubergren facilisis molestie invidunt zzril sit takimata diam lorem velit id tincidunt. Dolor veniam accusam et duo nulla et et et. Et vel magna. Invidunt ut lorem gubergren ipsum consetetur rebum volutpat eirmod magna ipsum et odio rebum in lorem lorem lorem duo. Augue ipsum no clita clita at clita.

Sample Output H3

Eu et commodo duo. Odio ut wisi eu et nibh ut exerci ea sed dolores dolor no takimata erat nulla et duo ea. Velit ut sit aliquyam dolore sed dolore odio hendrerit nobis et dolor. Facilisi kasd hendrerit volutpat amet duis sanctus at dolor tempor. Ipsum sea et est ea eos at et ipsum et imperdiet justo et esse vel dolor. Lorem labore rebum hendrerit lorem lobortis. Nulla lobortis no magna ut aliquyam gubergren sit enim eos gubergren facer veniam diam. Eu diam sit ipsum sed sit elitr ut dolore. Ea in voluptua justo vero luptatum est takimata option. Facilisis et amet sed ipsum placerat stet et sit consetetur sea lorem volutpat tempor vero aliquam sed autem accusam.

Blandit sed et sanctus odio sit ut at accumsan sanctus autem clita. Clita takimata luptatum eos sit elitr labore blandit et tempor euismod erat et dolore duis aliquam at nonummy. Sadipscing molestie clita. Sed laoreet et sed wisi gubergren no nonumy sadipscing iriure qui. Duo et duo autem veniam eos dolor et laoreet diam autem autem ipsum ipsum accusam. Dolor clita lorem vel lorem feugiat molestie aliquam labore illum consequat et gubergren lorem et invidunt. Illum erat nihil eos et accusam accusam ipsum stet duo eirmod diam ipsum. Dolore duis te at elit lorem eirmod gubergren molestie ut ad tation amet lorem ipsum eos nibh. Feugait sea ea nulla elitr diam magna in. Amet tempor sed elit eum gubergren nulla voluptua eos zzril takimata erat dolore labore dolor iriure.

Sample Output H4

Diam amet et veniam diam sed rebum velit takimata lobortis duo. Wisi facilisis diam esse iusto sit sea aliquam vero diam eirmod erat nonumy sea et. Eros sed dolores ut erat magna vero sit ut justo magna ipsum lorem sea no diam takimata qui dolore. Feugiat consetetur iriure voluptua amet elitr dolor. Stet liber justo dolore takimata elitr no dolore justo ea no ipsum et consetetur laoreet qui lorem sed et. Justo et nonumy te voluptua facilisis sea et amet erat consectetuer eirmod justo kasd dolore quis. Ipsum eu stet lorem gubergren takimata laoreet erat et takimata molestie. Elitr takimata elitr exerci dolor nostrud sed et. Sanctus duis labore vel magna diam.

Erat gubergren clita sea ut aliquam clita ipsum dolores nulla ipsum adipiscing magna sadipscing aliquam. Ut tation vulputate id consetetur dolores. Elitr erat eros dolor aliquyam sed aliquam erat dolores nam sea lorem dolor eros ipsum nulla tempor. Exerci ut est exerci ad duis delenit aliquyam rebum duo sadipscing erat sed diam clita voluptua. Doming eum sed.

Sample Output H4

Stet facilisis dolore erat eos eirmod odio erat sadipscing ea qui rebum ut magna erat ipsum duis ipsum in. Ea et aliquip et et aliquyam sed accusam. Labore labore gubergren ipsum consequat sanctus eum magna. Hendrerit veniam nibh ut vero nonummy ea diam elitr magna. Facer amet amet ea et. Eum vero stet stet sadipscing aliquyam nobis mazim facer eleifend sea kasd et voluptua cum labore clita ut sit. Erat amet sed nisl nonumy eirmod kasd eos ea voluptua eirmod feugait consequat et eos aliquam justo. Imperdiet magna at clita ipsum diam sanctus iriure facer. Rebum takimata labore ea. Ut dolore nihil dolor tincidunt vero ipsum ea erat nulla rebum exerci et duis ipsum diam ut ea suscipit. Ut et sit veniam amet nihil diam ad takimata sadipscing hendrerit mazim est placerat voluptua facer illum.

Et sanctus sit zzril labore nonumy dolores lobortis aliquyam mazim sed erat sea ipsum. Et elitr magna tempor diam magna et vero rebum esse adipiscing. Diam eros vero nulla consetetur magna nonumy dolor ut. Vel dolores voluptua. Diam ipsum vero sed elit. Erat dolore nostrud dolores no diam diam erat justo. Blandit magna labore dolore consetetur dolor.

Sample Output H3

Ut dolor dolor in ipsum sadipscing at ipsum ea ipsum diam justo lorem labore sit et amet lobortis. Et duo aliquyam sed at lorem at voluptua suscipit enim nisl lorem sadipscing sed no consetetur. Sit dignissim nisl dolores gubergren. Dolore elitr sanctus dolores et dolor stet justo eirmod est nonummy et lorem magna at et justo. Accusam et zzril sadipscing sadipscing magna. Diam facer lorem ipsum at lorem.

Est consequat lorem et lorem placerat ipsum elitr congue duo enim erat tation gubergren sanctus amet diam erat. Iriure diam zzril velit dolore sea nonumy sadipscing. Rebum lorem dolor dolores sed accusam. Voluptua voluptua labore ut sit dolores sed dolores feugait consetetur amet labore aliquyam ut laoreet aliquyam. Iriure takimata eos takimata et dolores magna autem congue elitr dolore. Et eleifend dolor consectetuer blandit erat ut consetetur clita rebum in clita congue magna.

Sample Output H4

Duo stet amet sed rebum. In iusto dolore duo. Gubergren diam accusam amet et dolores odio erat tincidunt volutpat dignissim sit. Diam amet sit sed dolor kasd te tincidunt erat eos minim dolor. Et ea eirmod takimata nonummy ipsum amet.

Takimata at vero justo consetetur elitr diam nonumy no wisi sit nonumy iusto et nobis zzril sadipscing laoreet elitr. Magna stet ipsum dolor consetetur erat. Sit consequat invidunt erat duis sadipscing sanctus eirmod nibh dolores erat dolores dolores. Illum eu sit amet in dolore sit tempor gubergren accusam congue nibh blandit consetetur. Accusam feugait vero diam velit sadipscing mazim. Sit justo dolor consetetur magna voluptua magna rebum sanctus at vel. Nulla assum invidunt eirmod ea aliquyam erat amet molestie et et voluptua duo. Est et sanctus ipsum amet in diam kasd lorem autem nibh et magna sed sit takimata elitr sit.

Sample Output H4

Dolor eleifend vero justo luptatum sanctus rebum ipsum nonumy diam. Et voluptua accusam esse possim eros lorem at lorem accusam aliquip ut sed quod. Lorem duo lorem diam sed justo et ut rebum est ipsum ipsum invidunt consetetur eros erat. Diam sadipscing vero amet kasd sed tincidunt magna nonumy voluptua diam clita kasd et gubergren consetetur vero ullamcorper rebum. Clita et amet lorem sed takimata. Lorem diam duo aliquyam amet elitr. Ut autem vel erat eirmod nonummy at aliquyam dolore. Dolore iriure consequat dolore lorem et illum ullamcorper stet. Kasd sed at justo est lorem sadipscing magna in accusam erat consetetur invidunt facilisis elitr erat. Sadipscing praesent tempor takimata et mazim est consetetur enim lorem no.

Dignissim eum et amet iusto erat. Ea nibh ut labore invidunt hendrerit qui dolore et voluptua sea autem vel dolores eirmod eirmod sed. Erat lorem aliquam tation eos illum labore sit sadipscing ut consequat facilisis invidunt elitr adipiscing rebum. Dolor sed dolore praesent sit nonumy placerat kasd amet. Amet lorem aliquyam sit liber eos lorem diam at ex nonumy lorem sit sit laoreet. Nisl eum est magna et ut nonumy takimata ipsum diam esse.

More Sample Output H2

Wisi magna eirmod dolore. Et dolor rebum et et ut blandit autem ullamcorper rebum est. Consectetuer accusam aliquyam amet lorem amet takimata stet erat kasd at eos commodo ea ut ut vel. Justo diam nulla quis vero vel illum qui dolore dolore dolore. At euismod consequat iusto ut soluta et et kasd invidunt sadipscing gubergren diam eum sea diam lorem labore. Et justo sed ad enim takimata duo dolore feugiat tempor vel consequat. Magna sea et lorem eirmod in magna commodo elitr kasd dolores. Sed gubergren lorem magna dolore elitr ea eum stet lorem aliquyam amet clita diam eirmod eos sed.

Gubergren consequat consequat invidunt amet magna est ipsum. Sit et in kasd nulla rebum dolore dolor. Nulla et sit tempor tempor sed dolore dolore zzril elitr dolore facilisis ea ullamcorper. Autem sanctus dolor clita vero amet adipiscing ullamcorper sanctus dolore aliquip diam nonummy justo lorem ad takimata dolore. Aliquyam magna volutpat sanctus lorem facilisis accusam eirmod elit rebum est. No amet amet rebum dolore dolores et eos vel amet erat sed labore est amet laoreet.

Sample Output H3

Sadipscing sadipscing sed elitr rebum rebum lorem sit consequat lobortis lorem eirmod. Eum illum dolores tempor et dolore sanctus commodo zzril lorem ad consetetur molestie odio nulla eos augue euismod ad. Voluptua velit kasd sit. Ea eos ipsum accumsan in. Justo lorem amet invidunt accusam eu labore amet diam ut rebum euismod sanctus. Congue erat veniam et sea labore erat sanctus takimata. Ipsum eos nonumy amet dolores labore sea. Amet ipsum feugait enim.

Tempor sed dolore eirmod sed nonumy elitr gubergren. Duo at tempor et diam dolor tempor est vel sed dolores et volutpat minim dolores lorem liber autem. Dolores dolor dolor ut ut voluptua ut tempor eos sed sit duo sanctus sadipscing blandit accusam no et. Aliquyam doming laoreet feugiat amet iusto eos ea esse imperdiet nostrud nisl ipsum et sit veniam invidunt wisi vero. Consetetur at voluptua dolore magna tempor. Dolor nonumy ea facilisi no vero mazim. Ad hendrerit et laoreet dolore ut sea dolore. Gubergren nisl at te est amet sit invidunt.

Sample Output H4

Et et et id esse sea stet at enim eirmod est. Eu dolor takimata esse vel. Nonumy voluptua diam invidunt sadipscing esse est hendrerit stet lorem accumsan iusto. Sit vero euismod laoreet consetetur sadipscing dolore ullamcorper et praesent et nostrud. Justo elitr sed consetetur ea amet minim tempor molestie sea velit et magna labore diam elitr. Zzril lorem takimata vero eos.

In rebum nibh lorem. Takimata consetetur odio no. Ad stet ea duo enim at elitr doming dolores et ut aliquyam stet sea elitr quis tempor dolores. Accusam dolor ea ipsum ut blandit lorem dignissim sed erat feugiat zzril justo at rebum. Kasd amet sed invidunt erat zzril erat suscipit facilisis et diam sit odio id. Et gubergren dolores stet ipsum dolore ea sea ut et in stet zzril tation labore.

Sample Output H4

Dolore est dolore ipsum no ad iriure sanctus vero no dolor nonumy magna dolor et. Amet no eos blandit molestie amet sit rebum eirmod sadipscing. No sit dolore dolor stet ipsum vero esse dolore stet gubergren. Euismod elitr dolore diam nulla rebum ipsum lorem accusam sanctus magna erat lorem clita lorem nonummy elit lorem. Ea dolores accusam et eirmod voluptua.

Dolor sed eirmod. Nonumy tincidunt amet euismod at vulputate te mazim amet duo nonumy vero lorem nonumy. Lorem dolor lorem wisi dolor sed te consetetur elitr tation te vero ipsum luptatum. Sit diam dolores accusam sea invidunt dolore sit ut invidunt eirmod magna et zzril sed feugiat erat lorem iriure. Aliquip lorem et.

Sample Output H3

Eum sed takimata et et sed erat voluptua at consequat elitr lobortis et magna et. Dolor nulla at stet magna sed no rebum hendrerit zzril at sanctus aliquip nonumy ipsum et. Vel elit laoreet amet sit no no laoreet lorem consetetur sit invidunt no sit. No eum ex ipsum magna aliquam. Sanctus ipsum mazim stet blandit amet at at invidunt nonummy ipsum at. Consectetuer facilisis est est nisl dignissim et doming aliquyam rebum sed enim justo at zzril eos. Duo sed nostrud aliquyam at justo dolor. Exerci sea dolores stet no tempor praesent.

Dolor nulla diam rebum. Sed eleifend magna diam diam nulla iriure amet. No dolores invidunt sit clita quis aliquyam dolore quis ipsum diam ipsum vero accusam feugiat tempor. Kasd dolore nostrud vero amet et accusam molestie et clita takimata dolor. Et et no wisi euismod wisi sanctus. Invidunt eos aliquyam nostrud eirmod eirmod suscipit amet dolores iriure ea nonumy stet aliquip.

Sample Output H4

Duo sea sit magna exerci dolore nobis dolor. Stet magna justo eos consetetur no dolores ea. Et no eu labore nulla amet erat eirmod minim sit nonumy sea duis velit takimata elit justo. Aliquyam quis labore sea possim nam sit at diam. Eros accumsan ea duo quod erat lorem lorem aliquyam amet sit dolor.

Esse labore dolor dignissim ea rebum stet vero feugait diam invidunt lorem eirmod vel eirmod. Assum sanctus accumsan sed duis. Dolor accusam labore justo consequat ipsum. Justo est sea nibh consectetuer assum accusam eirmod voluptua gubergren at. Consequat et duo et esse wisi tempor amet elitr aliquyam sanctus rebum sadipscing.

Sample Output H4

Dolore magna est sit at. Velit ut gubergren no dolor amet no ipsum ex clita nulla zzril consequat gubergren esse labore eirmod iriure. Lorem ipsum clita nonumy ea stet et accumsan dolor takimata sanctus est. Dolor et dolor in voluptua vero elitr nulla sed sit magna duo gubergren. Euismod stet clita ipsum eum feugait vulputate dolor sanctus nulla invidunt sit nonummy. Diam nonumy diam clita nisl et soluta et stet sit ut zzril assum nulla stet ut tation et aliquam.

Gubergren eros at dolore magna accumsan labore kasd. Possim aliquyam veniam sed sit et kasd voluptua et diam. Ad sit ea ut in accusam. Voluptua lorem justo et. Dolore sadipscing sit clita aliquyam ipsum facilisis ullamcorper. Eirmod sadipscing at eum nonumy gubergren sanctus.