cloudformatter format requests: 1,374,309    pages delivered: 3,625,459

PDF Properties

xportability LLC

PDF Properties


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).


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.


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;">
        <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>
        <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"
        <pref name="printer-mark"

Sample Output H2

Elitr vel dolor aliquyam qui volutpat. Sanctus et erat lobortis amet iriure dolor sit dolor takimata quis amet adipiscing amet clita mazim. Invidunt tempor gubergren ut et dolores magna gubergren in esse sanctus et sit autem sed eos duis est. Sed ipsum no velit sanctus. Vero diam blandit consetetur dolor dolor duis dolor dolor diam gubergren. Labore duis volutpat lorem dolore takimata sea sit invidunt sanctus nonummy amet sed amet hendrerit.

Kasd voluptua assum est delenit sed vel stet et ut dolor. Justo dolor duo velit clita rebum sed no eum amet ipsum. No aliquyam duo dolor dolores amet sit. Amet sanctus et aliquip et nonumy est tempor vel tempor ea ea gubergren nonumy et lorem duis eirmod ea. Clita sit duo clita vero accusam sit ut eos illum erat et euismod amet aliquyam vel ipsum. Delenit vero diam eos dolore consetetur ut labore accusam. At rebum sea ex dolores et diam lorem. Et diam sit veniam dolor nulla rebum sea amet eos.

Sample Output H3

Sea dignissim voluptua blandit sed et labore soluta iriure voluptua ut lorem hendrerit diam gubergren amet te rebum quis. Magna sadipscing illum elitr enim elit in sed nihil invidunt ea lorem takimata euismod sit. Illum sit consetetur sea molestie ea sit amet mazim sit justo. Consequat sit et ut vel autem vel magna diam blandit eirmod aliquyam amet. Est sanctus ut suscipit in stet eros et stet suscipit nonumy ipsum vel ea ipsum vel adipiscing rebum. Et at gubergren et eirmod et nibh dolore.

Facilisis delenit ea nulla nibh gubergren nonumy ipsum eirmod sed est dolores eirmod. Takimata zzril aliquyam no diam. Laoreet duo takimata. Ut aliquip amet invidunt sed esse lorem. Et sadipscing labore gubergren. Ad gubergren ut sea vel vel eos odio option tempor accusam stet blandit. Ut duo volutpat amet dolore sanctus et sanctus et kasd lorem.

Sample Output H4

Sadipscing eos consetetur consetetur lorem dolor sed et amet no at diam. Labore dolor dolor praesent at et ullamcorper labore dolor amet clita consetetur takimata. Amet takimata tempor elitr diam aliquam aliquyam autem sed dignissim tation ipsum amet veniam esse invidunt voluptua kasd. Accusam et eos ipsum justo sea. Labore duo sit exerci. Sit gubergren in sit feugiat nihil amet suscipit ut at.

Et takimata gubergren vulputate lorem ad sed sea no dolores dolores dolore vel lorem. Sit sanctus assum aliquyam. Vero clita sadipscing dolore nam ea kasd ullamcorper takimata vero. Dolore amet ipsum et ea magna sed ut et duo sit labore labore. Eum et vero duis amet lorem sit sed consectetuer voluptua accusam consectetuer at labore dolores ipsum. Lorem ut et ut stet autem duo nobis. Dolor cum kasd elit vero sed nostrud ea. Dolore invidunt takimata sea. Nihil tempor sit et lorem et ea elitr justo velit rebum dolor lorem kasd aliquyam. Illum eos ipsum ipsum dolor sanctus labore dolor ipsum sadipscing vero stet vero ut et dolor.

Sample Output H4

Sadipscing lorem clita at ut illum ut. Ut in magna accusam. Nihil volutpat at. Rebum gubergren sea eos clita molestie lorem et sanctus gubergren est duo duo. Amet kasd aliquyam lorem magna lorem et tation dolor rebum sit diam feugait ex magna ea vel sed. Vulputate ipsum eirmod et nonumy eos elit stet est eu vero rebum tempor. Ut et sed suscipit kasd velit eos in accumsan illum stet diam sadipscing sed volutpat dolore elitr duo duis.

Amet rebum sed lorem. Erat no aliquip erat eos labore no no tempor et qui vero. Nam sanctus sit nostrud et invidunt stet delenit nisl amet lorem lorem. Consectetuer et tempor aliquam sed aliquip accumsan delenit. Eu invidunt imperdiet sea stet labore amet sed eirmod est ipsum lorem sanctus dolores labore eos erat elitr. Luptatum et stet diam.

Sample Output H3

Labore consetetur et dolore eirmod justo duis. Velit eos gubergren dolores volutpat. Sed ea minim nulla consetetur. Vero nibh ea lorem ex eirmod ullamcorper tempor stet est justo feugiat tempor diam erat sed voluptua vero et. Invidunt erat assum. Vero sanctus est ut no ipsum laoreet odio amet nostrud diam. Rebum aliquip dolore amet nulla sed takimata magna esse erat aliquyam diam. Aliquam et ut vero sea rebum consetetur sed labore.

Amet dolore at sit nobis vel invidunt imperdiet vulputate sanctus kasd takimata dolore. Nonummy sea eos takimata et amet voluptua ea. Est rebum molestie dolor nam amet sit eos diam vulputate ullamcorper sit ipsum sit. Erat takimata tempor ut erat est voluptua dolore. Sed aliquyam sanctus accusam et amet labore duo invidunt sit at ipsum rebum illum ipsum sit.

Sample Output H4

Et amet nonumy blandit vulputate sea no clita luptatum dolor placerat. Aliquip at dolore stet in hendrerit nonumy vero ipsum feugait est eirmod ea accusam. Elit ea facer aliquyam dolor rebum magna. Ea ut in diam. Eros vulputate adipiscing. Diam facilisi lorem augue et magna sadipscing ullamcorper eum labore amet et vel sit cum diam ipsum dolore duis. Iusto diam amet et aliquam dolores nulla lorem amet diam luptatum nulla at eos amet at odio. Rebum rebum imperdiet placerat nam amet tempor dolor accusam labore eirmod consequat vel sea amet tincidunt consetetur odio hendrerit. At lorem sadipscing sadipscing justo vero consequat.

Odio vulputate sit luptatum et tempor et feugiat et ea est dolores. Gubergren mazim clita ea ut et congue et nihil accumsan elit sea takimata rebum stet soluta molestie et nulla. Diam blandit amet voluptua accusam ipsum. Clita elitr amet justo esse clita sit diam erat dolore lorem blandit. Eos ut at dolores. Sea diam eos amet erat clita et imperdiet sit eirmod. Dolor invidunt consetetur justo dolor ipsum nulla dolor lorem amet amet gubergren sed ipsum dolore et commodo. Sadipscing sanctus euismod erat ipsum stet gubergren dolores dolores rebum.

Sample Output H4

Sadipscing kasd no sit accusam sit no dolore dolor sanctus eros. Sit ut clita duo dolore sadipscing nibh sed accusam. Sea enim consequat. Et eu in ut justo duis consectetuer est ipsum ut amet erat ad et eos. Lorem nam nihil eirmod dolores. Dolores no vel at sanctus et imperdiet.

Quis consectetuer invidunt vero sed est vero invidunt rebum. Diam ea exerci sit. Consetetur sit liber takimata elitr dignissim et amet dolor. Ea qui ut consetetur sed ad feugait takimata zzril no nonummy amet nobis iriure gubergren magna qui. Et voluptua magna lobortis sed rebum delenit lorem illum in. Duo diam tempor ipsum sit eum est accumsan eros takimata gubergren kasd placerat dolor elitr sed congue duo voluptua. Kasd sit liber rebum euismod sit sea dolor et elit invidunt erat tempor lorem congue duo quod kasd. Lorem velit euismod sea in facilisi at et. Lorem et amet invidunt vero sadipscing elitr duo ut sea. Sit eirmod quis dolor. Accusam adipiscing erat molestie volutpat at et eirmod augue diam elitr est elitr erat liber sit.

More Sample Output H2

Amet amet aliquyam amet est consetetur clita elit et adipiscing sit tempor kasd dolor eos nostrud. Kasd eleifend accusam amet vero velit. Sanctus dolor sit ut at takimata stet aliquyam sed takimata zzril ipsum ut accusam facilisis labore vulputate invidunt elitr. Iusto consetetur et sit eos commodo no amet. Ipsum tempor accusam consetetur duo clita takimata dolor elitr ut voluptua ipsum cum. Eirmod minim lorem sadipscing dolore blandit et rebum no. Sea sea erat dolore. Takimata sit dolor at illum voluptua aliquip autem no esse in et vero amet amet et dolor et ipsum. Lorem diam ut consetetur tincidunt ipsum nisl erat eirmod tempor. Labore at vulputate duo. Erat laoreet duo consequat praesent et eum voluptua sanctus dolores elitr aliquyam in dolores diam.

Ex et erat in iusto et vel diam. Vero est nibh nonummy vel elit minim takimata erat. Sit ut erat erat vel rebum lorem. Takimata sed clita et dolor assum facilisi sed dolor nonumy ut euismod aliquyam dolor. Sed dolor diam lorem dolor et sadipscing amet volutpat stet gubergren aliquyam in magna. Dolore duis ut et diam duis accusam dolor diam eirmod et eirmod consectetuer. Iusto dolor no dolore facilisi tempor eos takimata stet. Et stet ut dolore ut diam labore magna nobis takimata sea sanctus in et eos amet. Iriure eu kasd diam ex nibh mazim lorem.

Sample Output H3

Nam duo amet sit takimata et consetetur justo. Et facilisi vel sed esse diam erat in. Luptatum dolore elitr no et dolore lorem gubergren nobis. Justo duo ut sit sadipscing. Exerci vel rebum dolore eu eos eum dolor sadipscing. Sed clita mazim vero tempor dolore lorem eos aliquip vero ut eum eu labore nonummy et ex dolor consequat. Volutpat takimata sit sanctus clita quis et aliquyam sit in erat. Dolores tincidunt takimata. Consequat feugiat at tempor ipsum kasd labore et at et justo ea justo commodo dolor. Et quis erat et ut invidunt clita vero gubergren.

Takimata option diam amet sit sed sed commodo et tempor erat et nostrud eos ea illum dolor at. Kasd ut dolor ipsum autem eirmod eirmod dolor et ex et et exerci eos. Diam invidunt rebum et sit accusam elitr lorem et sit ipsum rebum justo adipiscing amet magna ea lorem. Rebum tempor ipsum sit labore. Vulputate veniam consetetur dolor et magna dolor gubergren.

Sample Output H4

Et duo voluptua nonumy. Duo magna zzril ipsum clita. Stet amet dolore diam ex dolore vero gubergren. Suscipit sit aliquyam consequat stet gubergren elit takimata dolor et labore tempor justo lorem dolores suscipit diam. Dolore sit sanctus diam ipsum accusam lorem at tation clita et. Diam clita aliquam gubergren no dolore et dolor at no ipsum vero duo clita dolore eirmod sadipscing dolor. At kasd ea elitr magna et wisi dolor ut commodo nonumy ea iusto invidunt accumsan. Eos invidunt dolor stet ut amet tation possim.

Dolore et liber amet kasd magna. Dolor stet nonummy vero aliquam eirmod invidunt consetetur aliquyam elit. Tempor ullamcorper minim tempor. Hendrerit aliquam ipsum sed praesent stet sea amet amet et in ipsum sadipscing wisi rebum consequat sea. Vulputate vero erat doming laoreet magna et justo. Lorem vero ut dolore sit amet diam sed nam no nonumy clita nisl sanctus amet augue delenit amet nisl. Labore volutpat erat erat justo diam rebum et dolore sit est. Kasd sea sea vero sadipscing sanctus sadipscing ipsum. Amet at sadipscing ex sadipscing est duo et ipsum eos dolore nonummy. Velit rebum rebum justo. Nonumy magna clita feugiat sanctus laoreet nihil delenit amet ipsum et justo.

Sample Output H4

Eirmod ipsum diam erat in id voluptua aliquip eum dolore dolores kasd. Et ea qui dolor vero esse sadipscing est tempor cum est justo aliquyam sanctus ipsum voluptua. Amet erat wisi accumsan diam. Takimata justo voluptua facilisis diam. Aliquam aliquyam ipsum amet eirmod rebum et gubergren eirmod. Et eirmod accusam amet volutpat vero voluptua lorem in clita diam voluptua iusto aliquyam sit. Sadipscing volutpat kasd at commodo at dolore lobortis vulputate. Diam vero sanctus ullamcorper ea adipiscing aliquip magna. Dolore tempor accumsan lorem lorem.

Takimata at sed hendrerit sea no. Adipiscing accusam zzril autem duis eum invidunt hendrerit dolores clita consetetur dolor invidunt consetetur sed ipsum. Consetetur in facilisis autem aliquyam. Justo illum dolore diam illum labore stet amet wisi magna et accusam nonumy eirmod tempor. Ipsum facilisi nulla et. Lobortis imperdiet euismod enim dolore eros.

Sample Output H3

Sit ut qui diam dolores elit dolores adipiscing accusam magna elitr eos duo dolor accusam veniam. Et amet takimata ullamcorper sanctus. Sed kasd iriure sed ut. Takimata est in dolore nulla ea dolor sed ipsum et dolor. Voluptua adipiscing labore et dolor. Sea dolore ea sit sanctus consetetur vero vero. Illum diam tempor. Ipsum kasd sanctus duis aliquam amet sed suscipit. Eum et ut soluta eum tempor magna vero labore vero stet rebum euismod erat quis amet. Congue in justo et stet nulla feugait ipsum lorem iusto et dolore et lorem.

No dolore nostrud kasd justo eos ipsum nulla accusam consequat ex aliquyam consetetur elitr eirmod enim. Tempor tempor ex vel erat nibh vulputate voluptua eirmod elitr duo dolor elitr qui. Takimata et zzril stet ipsum duo no sit nonumy vero ipsum. Voluptua ad ipsum feugiat dolor est duis clita sed at nam aliquyam magna tempor ut ut in. Sit sed magna gubergren takimata diam eros at ad lorem erat et sea clita magna consectetuer. Nulla ut erat duis nonumy ipsum. Gubergren et justo sit quis gubergren lorem vero kasd invidunt sanctus accusam.

Sample Output H4

Iusto et accusam quis vero feugait. Elitr dolor erat. Eirmod vero justo labore amet vulputate clita delenit. Diam mazim et at consectetuer iusto et nonumy gubergren. Sanctus consetetur et dolor vero qui sea ut zzril nonumy vero voluptua dolore vero sit. Invidunt voluptua accumsan sit erat eum takimata iriure nonumy rebum dolore. Diam velit ut facilisis. Vulputate labore at facer diam lorem wisi tempor aliquyam magna vero justo dolor sed eum vero kasd ut. Enim in takimata vel ipsum eos sea te tempor clita et. Ipsum te diam nibh magna dolor dolore te dolore consetetur vel aliquyam sit kasd invidunt. Takimata takimata accusam dolores eleifend tation et eos lorem diam eos luptatum justo ipsum vero eum et dolore et.

Doming eos lorem erat. Sit stet amet vulputate invidunt et enim et dolor congue sed stet sed ea duis ut. Nonummy voluptua labore laoreet takimata. Est est rebum amet dolore stet aliquyam labore sanctus. At odio clita nulla. Velit soluta ipsum lorem dolor erat dolor possim ea laoreet amet et zzril. Sadipscing nostrud erat iriure volutpat sed dolore sanctus quod sit sanctus sed ea vel vero. In amet sit consequat sed sit velit ut lorem liber ipsum ea sadipscing tempor.

Sample Output H4

Minim eos stet amet takimata at. Vel lorem sed gubergren ipsum sadipscing sed rebum esse et sed dolore illum et amet. Invidunt voluptua sed laoreet ea esse et stet nonumy ea aliquyam eros sadipscing eirmod erat molestie. Vero eu ut diam euismod nonumy sit mazim. Consequat amet et laoreet vero magna lorem invidunt. Ut et et clita clita lorem vel accusam et stet justo.

Invidunt minim dolore vero sit dolore sadipscing nulla accusam. Labore sed tempor amet dolor esse suscipit diam amet sanctus lorem consetetur duo et. Luptatum ut hendrerit suscipit sanctus et velit ut nonumy rebum dolore sed dolores dolore gubergren consetetur diam ipsum. Sit lorem eros dolore tempor cum sadipscing. Iriure duis eos hendrerit amet lorem stet ipsum dolor ut. Consequat ipsum sed.