cloudformatter format requests: 2,041,010    pages delivered: 5,460,268

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

Dolor takimata tation et et ad rebum dolor facer vel ea ut justo et clita at. Aliquip elitr diam magna eirmod accumsan no hendrerit est lorem dolore diam feugait enim takimata dolor ut iriure. Molestie lorem in tempor ea et invidunt sit no diam sed clita justo sit vel. Sit enim duo at dolores ipsum autem ipsum vero feugiat et dolor aliquyam nulla sed. Molestie dolor diam sed et velit sea lorem invidunt duis sit commodo rebum elitr rebum diam.

Kasd delenit molestie odio magna et diam invidunt ullamcorper justo stet nonumy et dolore zzril. Gubergren et gubergren in nonumy facilisi sadipscing justo eos. Ipsum amet eirmod dignissim et. Invidunt ipsum et nonummy at dolore dolores ut lorem magna rebum diam ut rebum dolor justo duis. Dolore ut praesent dolor tempor.

Sample Output H3

Enim dolor diam facilisis diam dolore diam et et invidunt vel molestie et lorem. Sanctus nulla dolores no eum ipsum ut te facilisis aliquyam ut dolor molestie sed gubergren. Nisl consetetur sea gubergren labore diam no rebum et at et et. Dolor ea nulla tempor ipsum. No takimata sed sed lorem dolore eirmod aliquam sit. Sit et erat vero eos diam in nibh nonumy. Dolores autem tempor voluptua justo et duo ipsum tincidunt amet aliquip lorem ipsum assum. Voluptua et et est amet eum assum adipiscing nulla erat iusto ullamcorper vero.

Clita ut autem dolor. Consetetur accusam ipsum diam tempor et eos amet dolor justo. Laoreet laoreet voluptua dolor. At dolore vero elit duis ut nihil laoreet. Dolor consetetur kasd duis et. Ex magna et sea invidunt justo ullamcorper dolores erat. Quod elit esse sanctus amet et ipsum dolore sit odio sed accusam et. No dolor commodo diam nulla dolore duis dolor dolor duo lorem ipsum nulla justo duo amet justo eos. Nonumy ipsum ipsum sea feugiat. Tation dolor takimata amet minim elitr. Ex vero lorem dolor vero vero eirmod diam erat sed dolor est.

Sample Output H4

Sed aliquyam tempor sit dolor suscipit eos vero sanctus diam amet dolore lorem sed magna diam dolor ut. Justo dolores et justo possim dignissim amet ut hendrerit consetetur clita gubergren aliquam eos adipiscing dolore duo. Commodo eros dignissim voluptua elitr qui amet aliquyam elitr at magna dolor nostrud diam lobortis erat takimata delenit nulla. Ad lorem in ut blandit sit diam diam kasd sed labore gubergren et sit odio consectetuer sanctus. Vero rebum at consetetur sed lorem est amet. Et at quod ea invidunt lorem. Diam et justo ut assum quis kasd velit justo. Ullamcorper et et sadipscing velit et lorem eros. Stet invidunt takimata dignissim et minim duo luptatum aliquip dolor dolore stet ipsum nonumy dolor.

Stet et sadipscing rebum molestie facilisi vero dolor at et dolores te est. Ipsum diam duis gubergren tation et ad nulla eirmod dignissim sadipscing. Amet et ipsum sit nobis liber dolore ea. Ipsum praesent sadipscing et nihil dolore et dolor consequat sit sanctus. Duo vel diam dolor sed velit sed no elit labore placerat accusam magna.

Sample Output H4

Augue dolore duis aliquyam. Takimata at aliquam vulputate tempor labore no ut vulputate invidunt lorem qui tempor at et qui. Gubergren velit magna tempor nonumy consetetur justo voluptua justo doming ut in tempor nihil et velit sed sadipscing iriure. Praesent lorem consetetur. Sadipscing tempor duis aliquyam et et. Sea at dolor est voluptua option hendrerit. Dolore sit delenit ea. Lorem aliquyam dolor takimata et erat gubergren rebum in ut eu duis dolor dolor clita. Dolore aliquyam lorem sanctus tempor zzril lorem hendrerit elitr takimata sed et et kasd stet lorem labore odio consetetur. Nonumy invidunt sea. Eos in dolore.

Hendrerit dolore nihil magna lorem lorem amet quis sea et nonumy magna tempor magna ea nonumy diam et. Sea facilisis quis vero eros ea stet elitr magna kasd et sed no consequat erat. At veniam nonumy diam clita duo veniam at ea. Magna ipsum no dolor lorem et tempor eos diam vel. No accusam zzril. Sea vel amet voluptua sadipscing. Soluta et feugiat eos sit amet rebum dolor diam rebum.

Sample Output H3

Et praesent in dolore molestie sea sit. Elitr ut vero velit praesent facer takimata facer et lobortis clita eirmod diam. Ipsum et duis nonumy laoreet et elitr et tempor elit gubergren lorem lorem et consetetur no consetetur elitr voluptua. Diam et no elitr nisl. Tation eos eu lorem dolor. Duis clita lorem at est et sit dolores dolore eirmod vel no aliquyam magna vulputate. Duis iriure tation sit tation no nulla ea te lobortis eu labore facer erat et ut sit. In eirmod stet molestie lorem facilisis elitr no ut et invidunt aliquam stet takimata ut erat.

In amet eu. Diam nonumy nulla sit ex ut sit vel duis rebum. No vulputate praesent rebum et et magna eum ea vero nibh. Sed facilisi dolor blandit eos eos labore et diam eos lorem qui vero takimata. Erat quod vel accusam amet takimata sea lorem aliquam volutpat nonumy erat aliquyam. Dolore sit magna kasd diam magna amet. Ipsum nonumy gubergren labore assum magna tempor volutpat et diam blandit diam sit ipsum blandit ut diam et labore. Et sit duo justo. Stet gubergren et et vero enim sit elitr accusam dolor mazim clita dolores diam diam labore ipsum labore lorem.

Sample Output H4

Kasd duo amet eu wisi takimata vulputate elitr tempor dolor est diam erat euismod ut dolore stet. Et invidunt magna magna facilisis gubergren accumsan gubergren ut takimata qui vero adipiscing justo. Dolor invidunt et lobortis clita diam takimata te dolores labore stet. Et ut kasd possim invidunt labore elitr ut eleifend sed erat elitr eos odio feugait et autem. Clita dolor consequat takimata consectetuer invidunt amet et magna et diam laoreet.

Quis eos lorem eos takimata dolore. Nonumy in sed amet. Voluptua dolore et vulputate option esse clita dolor accusam consequat. Autem vero ullamcorper dolor kasd consequat et accusam at doming dolore. Sit justo invidunt dolore illum ut vero laoreet takimata tation at justo stet facilisis. Esse sit facilisis et.

Sample Output H4

Magna est amet sit ut et dolore consequat nulla voluptua clita sed lorem et et stet sit ea nonumy. Erat stet takimata ipsum in illum ex cum dolor et sit et assum duo. Ipsum et autem lorem praesent labore. Volutpat illum rebum diam hendrerit nostrud. Voluptua sit ipsum zzril ea ut takimata enim duo dolore erat ipsum. Nisl in erat est magna accusam invidunt vero hendrerit lorem dolore laoreet stet kasd sit sed labore quis. Amet diam elitr et dolore at vero lorem.

Molestie ut quod congue. Kasd erat nobis diam facilisis ut vero ipsum nobis dolor lorem sed duo mazim kasd consectetuer labore et tincidunt. Consetetur kasd justo dolor sed sit lorem amet diam sanctus amet dolor eos amet amet duo amet dolore labore. Lorem nulla nostrud eos stet sed sanctus sanctus congue et ex ad et possim duo est euismod tempor ipsum. Ea sed rebum imperdiet erat invidunt eirmod justo consequat et at nonumy eirmod in eirmod stet dolor. Ex dolor at lorem dolor sanctus accusam vero dolore dolor dolore diam at dolore laoreet ipsum justo.

More Sample Output H2

Stet sed diam feugiat tempor sed voluptua in sea dolore nihil dolore. Ipsum ut sit dolor eos dolores magna. At accusam lorem invidunt invidunt ut duo amet molestie labore et clita sea nonumy. Laoreet tempor lorem in feugait et stet volutpat soluta dolores ut stet ut velit ut magna. Nibh takimata esse takimata facilisi hendrerit sit et lorem diam odio sanctus voluptua eos et stet eos consetetur duis. Dolor facer takimata stet laoreet consectetuer qui aliquam tempor no kasd ea.

Eu dolor ut sea labore iriure ipsum et sanctus at et vero diam. Ad takimata erat enim vulputate exerci voluptua diam lorem te ipsum takimata eirmod option et at. In ipsum nonumy. Accusam augue accusam sed lorem ut ut ut dolore et kasd elitr veniam takimata duis magna wisi. Voluptua consetetur eros dolor ullamcorper takimata diam takimata dolor eirmod tincidunt erat wisi accumsan. Dolor elitr in no nonumy consequat nulla duo sanctus et.

Sample Output H3

Sed amet mazim aliquip sed consequat gubergren voluptua amet. Dolor nonumy stet eos dolor wisi et at esse invidunt. Lorem gubergren dolore sanctus lorem sed odio enim voluptua odio ut justo labore no dolore sit consequat consetetur iriure. Dolor nulla ipsum diam liber clita takimata et clita ipsum congue erat nisl. Sadipscing ut no duis elitr eos nibh consetetur justo kasd. Justo stet duo consectetuer et et illum elitr labore diam dolor eos eum. Diam ipsum ipsum dignissim sed vero facilisi molestie quis accusam autem invidunt.

Nam lorem esse esse accumsan takimata velit et nonumy eirmod dolore rebum duo invidunt ut et sit clita esse. Vel lorem diam tation sed eirmod tation ex et minim sed amet no feugiat est erat qui elitr gubergren. Dolore et rebum gubergren consetetur ea sanctus suscipit. Erat tincidunt et illum magna possim. No magna eu amet dolore et rebum. Sed kasd est lobortis ea facer eum laoreet sed duis sit ipsum no iusto rebum. Dolore sanctus ipsum invidunt sed sed lorem kasd nonumy amet accusam in te zzril liber lorem ea. Sit luptatum sadipscing gubergren ipsum sadipscing dolor dolor tempor ut dolor tempor sed lorem sit suscipit. At erat diam duo sanctus stet sadipscing. Rebum et et sed magna erat sit.

Sample Output H4

Diam vel duo elit molestie facilisis et diam est stet dolor dolore elitr adipiscing sit. Kasd facilisis justo tempor lorem possim dolor lorem amet eros et sadipscing vero sea takimata diam. Sed consetetur nonumy molestie accusam quis justo nibh diam qui. Duo magna ipsum consequat et et justo praesent at. Amet ut sea esse amet sea et diam et dolor nisl nonumy. Dolor in congue dignissim.

Et kasd voluptua justo et aliquyam diam invidunt tempor aliquip blandit eirmod vero veniam rebum diam facilisi aliquyam. Et ea nihil. Clita aliquam kasd erat et accusam magna at lorem diam ea consetetur facer vero. Tempor et dolor accusam vel placerat et no. Diam hendrerit kasd dolore justo odio accusam esse lorem elit rebum kasd. Amet stet amet est facilisis zzril eu feugait praesent in dolores et voluptua takimata vero nonummy diam.

Sample Output H4

At consequat ipsum consectetuer gubergren dolore dolore amet. Rebum suscipit kasd no ipsum tation eos labore sanctus aliquyam. Sit ea esse sed. Id kasd elitr sit ipsum est facilisis molestie duo assum diam dolor commodo et elitr est ea. Nonummy sea nulla takimata vulputate. Velit nonumy ut dolor dolor sed dolor.

Dolor labore accusam diam lorem lobortis. Dolore ut nostrud ea erat at est et nam sanctus odio eros elitr justo ut. Mazim sanctus gubergren te wisi at nonumy facer et. Nonumy dolor diam. Sadipscing kasd et et vero takimata et iusto consequat quis duo at sed sed et ut enim sea vero. Erat lorem consetetur stet vero odio duo.

Sample Output H3

Sea tempor lorem at ipsum vel quis sed esse hendrerit. Accusam justo euismod duo sed sed ipsum ipsum lorem aliquip justo autem sed nulla sed nonumy. Ea dolore diam nonumy consequat. Facilisis iusto dolore dolor et amet et sanctus aliquyam et nulla te gubergren sed no eos volutpat dolor clita. Ipsum qui ut elitr dolor sit sea hendrerit.

Nisl diam nulla est. Eum sadipscing consetetur nulla lorem consequat. Sadipscing dolor lobortis et ea gubergren sea stet at accusam sit sea kasd. Lorem placerat nonummy sit tempor sea et tempor eos wisi dolores lorem dolores rebum erat nulla nisl gubergren sed. Vel gubergren nam ea aliquyam dolor illum amet duo feugiat. Amet amet dolor ea volutpat consectetuer ut et et vero eos. Eirmod lorem gubergren consetetur consetetur et luptatum labore lorem ipsum. Sit eirmod labore amet ea diam placerat ut dolor adipiscing. Et gubergren ipsum ad consetetur consetetur et amet ea et et at blandit ea possim ipsum lorem iriure stet. Lorem et erat invidunt nonummy consectetuer tempor ipsum vero dolore lorem lorem lorem. Et sit wisi.

Sample Output H4

Erat clita est dignissim clita stet stet ut voluptua voluptua invidunt sit vel magna diam ipsum soluta clita. Diam nonummy sea wisi magna et et volutpat voluptua vel tempor eirmod nisl feugiat liber dolore dignissim amet. Ut diam enim dolores kasd diam. Dolore stet eos adipiscing erat commodo assum. Eos adipiscing erat erat amet eirmod et veniam invidunt duis eos aliquam. Sed elitr et praesent ipsum est nostrud eos in elitr vel sanctus ipsum duo. Dolor ad nam esse enim eirmod sanctus at dignissim dolor illum sadipscing amet consetetur nonummy dolor eirmod. Gubergren quis aliquyam euismod aliquyam voluptua feugait voluptua aliquyam commodo aliquyam dolore sanctus sit lorem nam. Iriure diam ut sanctus clita ut duo eum consetetur et aliquyam sit vel et laoreet dolor soluta ullamcorper vero. Justo elit magna aliquyam.

Sea qui et invidunt sit. Nonumy vero invidunt sea ipsum labore lorem at erat erat tempor sanctus dolor in. Dolore autem suscipit lorem amet no consequat. Sea erat sanctus et. Diam eos eos vero ipsum elitr clita vero aliquyam sit hendrerit duo sea dolores vero. Erat et praesent ipsum vero vel sanctus duo et sanctus voluptua eos vero sea sed dolor.

Sample Output H4

Ipsum aliquyam sanctus dolore dolore voluptua dolore autem dolor erat stet lorem esse sit eirmod dolore veniam laoreet. Sit magna luptatum sadipscing est hendrerit et dolores nonumy et ipsum et te. Dolor et dolor dolores ad nonumy eu ea vel sadipscing sea nonumy clita. Erat et facilisis feugiat takimata quod labore erat. Erat sit dolor et diam diam exerci option exerci ipsum.

Diam elitr clita dolor consectetuer sadipscing invidunt ut. Justo adipiscing erat sed tempor et est sanctus ea dolor. Duo liber gubergren et sed et diam eirmod ut dolore et. Sed elitr dolores sadipscing ut illum eum consequat autem duis eos tempor ut vero vero dolor takimata facilisi. Feugait dolor possim nulla diam magna amet et ad sit ipsum ut sit. Dolore tempor ipsum dignissim vero sit facer at magna luptatum vulputate eu takimata dolore lorem eum accusam. Dolor justo feugait. Accusam ipsum amet sit in delenit aliquyam clita vel erat diam dolor vel invidunt soluta feugiat rebum justo. Tempor ex nonumy dolores hendrerit. Delenit ea eu. Et et diam te amet dolor.