cloudformatter format requests: 5,032,436    pages delivered: 11,252,601

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

In ut stet sea rebum. Sanctus dolor ipsum et tempor illum invidunt dolore feugait duo labore et dolores delenit. Et sed nonumy. Feugait duo ut eirmod voluptua esse takimata amet kasd sadipscing dolor augue. Dolore voluptua euismod lorem. Nisl dolor stet vulputate dolor facilisi nulla tempor at sanctus sadipscing erat gubergren sea takimata option tempor aliquyam accusam. Stet sit sit ipsum voluptua vulputate placerat in nulla vulputate.

Iusto duis facer veniam. Duo et sit aliquyam diam ipsum sit sanctus. Et sed vero at duis amet iusto iusto vel consetetur dolores feugiat delenit duis et et feugiat. Consectetuer sea sea clita tempor sit tempor vel rebum. Praesent magna lorem erat sit amet facilisi rebum ea. Rebum kasd rebum lorem ipsum aliquyam consetetur labore nonumy diam et dolore nulla vel eirmod lorem eos accusam. Diam in gubergren aliquyam stet est sit sit et consectetuer justo nonumy dolor est voluptua sanctus consequat.

Sample Output H3

Gubergren takimata magna sit magna iriure ipsum takimata vel justo diam luptatum accusam amet eos liber eu. Magna sit consetetur velit labore et volutpat et ea feugiat lorem nonumy et. Lorem et duis labore sea sit commodo lorem duis. Lorem voluptua dolore. Dolor accusam erat.

Lorem est sadipscing stet facilisi eos ipsum. Kasd dolore justo dolores magna consetetur vero clita sanctus nonumy eirmod nihil sit ipsum eum dolore sit ipsum no. Odio iusto at duis voluptua vel accusam clita te molestie est clita no illum lorem. Aliquyam sed lorem enim takimata ipsum. Illum diam et dolor dolor consetetur nibh dolores. Stet sed et takimata blandit eirmod erat invidunt sanctus sit qui ipsum ut diam dolor clita labore. Est eos ipsum nostrud eirmod. Sit kasd et.

Sample Output H4

Et soluta labore accusam ipsum dolore duo eos aliquyam sanctus. Aliquip commodo diam elit duo diam autem rebum. Invidunt vel nonumy accusam duo takimata eos eros stet kasd et ad tation sea lorem sadipscing. Et tempor augue vel lobortis et dolore iriure nostrud et. Ipsum duis sanctus et eum invidunt eros vel rebum. Soluta ut no. Kasd ipsum ex dolor sadipscing sed dolor sit consequat vero no erat ea stet. Ut gubergren diam at vulputate nonumy augue aliquip consequat dolores at feugiat. Quis iusto consectetuer eu qui consetetur imperdiet sit.

Ut nonumy elitr amet et dolore eu sed lorem. Diam nibh odio clita et et magna ut et ipsum. Ipsum nonummy et vero sed quis erat ea accusam vel ea placerat vero possim molestie. Vulputate dolore tempor accusam velit erat labore rebum tempor. Et duis dolore eos magna et clita ipsum labore voluptua ipsum diam sanctus elitr option dolor dolore clita invidunt. Gubergren eos aliquyam. Eum invidunt aliquyam magna tincidunt ea vel facilisis invidunt diam accusam. Et ipsum tempor nulla eu sadipscing est erat no augue at quis vulputate kasd. Accusam sed dolor sed. Vel erat sed amet nonumy magna sed ipsum facilisis voluptua diam erat dolor. Dolor dignissim diam id euismod velit invidunt illum elitr et nibh eleifend voluptua stet clita.

Sample Output H4

Vel invidunt sea ipsum eirmod et nulla laoreet rebum delenit ipsum consequat eirmod. Dolor vero voluptua magna sit at enim dolor aliquam consetetur. Invidunt amet duo tation sanctus luptatum at. Exerci eirmod elitr sadipscing consetetur no nobis duo justo kasd et labore duo eirmod eum dolores. Et dolore facilisis rebum et. Dolore rebum diam sit at takimata duo no rebum sit rebum erat et accusam illum magna et amet. Iriure et et iriure. Lorem qui dolores ut voluptua et dolore takimata consequat.

Erat est sea et. Consectetuer dolor no tempor aliquam sea invidunt clita lorem dolor. Amet lorem amet sed et justo diam dolor vero. Volutpat tempor aliquyam invidunt takimata sea nonumy sea ipsum dolore dolor no lorem no. Sea voluptua takimata sed nonumy est zzril ipsum vero ea soluta at et duis no vero sanctus ut eirmod. Ea sed dolor minim minim labore ut dolore elitr magna erat eos dolores voluptua lobortis diam. Kasd sit dolor sit dolor facilisi lorem et ut. Ea sit et sed takimata sed in qui nulla vero sed eum. Et et sanctus at. Aliquyam sed iriure eirmod et elitr consetetur sanctus volutpat sit stet est ipsum consetetur eum ipsum.

Sample Output H3

Sea diam facilisis sit quod elitr sadipscing sit consetetur vulputate. Veniam qui diam magna sed sadipscing amet diam voluptua stet elitr duis dolor euismod nostrud nam consetetur. Et duis sit amet minim accusam ut molestie dolores wisi lorem amet rebum magna facilisis est sanctus consectetuer. Ut sea labore amet sea. Velit amet ad diam dignissim ut aliquip volutpat dolore sea vulputate est aliquyam nonumy et sit et. Lorem est magna duo kasd accusam vel aliquam diam elit accusam duo. Clita eirmod vulputate sed lorem sed tation ipsum dolore amet sit dolor possim consectetuer lorem voluptua eum. Eros sit feugiat dignissim volutpat. Accusam accusam eum aliquyam ut takimata et eum consetetur aliquyam sed amet ut dolor lorem tincidunt duo sed. Ut ex minim in ipsum. Sadipscing ut amet rebum.

Voluptua tempor nonummy dignissim consequat ipsum sed clita. Erat amet diam no et blandit dolor dolor iusto ipsum labore amet blandit. Feugiat suscipit lorem diam kasd voluptua iusto voluptua dolores quod no dolor rebum nulla id ea eros vero et. Elitr duo justo magna facilisis ipsum facer sanctus sed diam vel. Iriure tempor lorem kasd dolore sea stet tempor sit sit. Et lorem et tempor eos dolor et vel no duo diam vero te.

Sample Output H4

Sed dolores lorem dolores duo takimata. Accusam nonumy voluptua minim. Et labore clita erat vero nonumy velit hendrerit magna. Dolor duo tempor duo luptatum voluptua vel ipsum. Tation te aliquyam dolor sit dolores ipsum ut amet at erat tation dolor facilisis lorem in tation vel facilisi. Invidunt at aliquyam esse et eos ut aliquyam duo vero eu. Voluptua stet sea eos et liber praesent clita elitr diam sed delenit dolor dolor sit sed labore. Diam nihil clita sanctus diam et. Elitr diam et dolore justo ut et sadipscing.

Aliquyam et dolore est sanctus sit aliquyam est eu. Dolores invidunt et eos. Aliquyam vulputate labore et eos. Ut no kasd sed erat consetetur erat justo sit lorem et no magna et nulla. Placerat labore consequat et amet aliquyam ea erat diam lobortis elit eirmod eum dolor est et justo ea.

Sample Output H4

Lorem diam voluptua dolor lorem ut aliquyam commodo stet voluptua quis. Invidunt dolore amet amet assum sea soluta accumsan sed dolore nonumy feugait sit no in takimata lorem. Sed et vero et lorem delenit sea option duo luptatum lorem. Ut stet sadipscing sed ipsum autem nibh est ipsum clita stet facer dolore accusam eirmod duo est diam gubergren. Commodo dolore ut vel no ipsum magna lobortis. Nonumy nonumy sit at et esse feugait zzril vel takimata kasd duis consetetur dolor. Invidunt ipsum dolor nonummy. Diam in diam at in laoreet ut diam. Amet amet ut at diam rebum et clita ea nonumy est. Vulputate aliquyam labore commodo clita nisl dolores takimata elitr kasd sit lorem erat dolor rebum stet.

Lorem amet amet dolore et takimata autem labore eos commodo sea invidunt. Clita et duis. Diam voluptua voluptua delenit justo et stet sed diam dolore adipiscing aliquyam. Amet sadipscing velit dolor ut est stet voluptua justo diam lorem vero accusam enim dolore. Eos nonumy ad. Aliquyam voluptua est blandit ipsum consequat volutpat erat est dolore in rebum sed et. Dolore eirmod sed diam duo dolore et justo lorem eos. Dolor sit nonumy elitr rebum elitr rebum erat.

More Sample Output H2

Tempor duo amet et ullamcorper labore amet eirmod dolor nonumy dolore dolor et dolore aliquyam et clita ea blandit. Laoreet takimata te dolor eirmod et. Eu consectetuer invidunt. Stet odio diam kasd et amet duis nibh ea lorem dolore dolor ut accumsan nonummy ut vero sed. Sed et consetetur volutpat et magna sea dolor autem diam sadipscing blandit. Dolores eirmod justo rebum liber tempor gubergren eirmod ea et ipsum ea erat no at takimata. Eos sit lorem nonumy facilisi consectetuer assum nonumy clita erat clita lorem dolores facer accusam dolore. Aliquyam sit vulputate amet commodo molestie duo mazim consetetur augue diam soluta eirmod et gubergren. Ipsum elitr sed eirmod magna consetetur labore congue elitr sadipscing takimata.

Duo ipsum dolore labore ut. Erat dolores voluptua. Dolor tempor nonummy illum et lorem. At sea enim nulla dolor augue exerci dolore sanctus. Quod elitr vero est iriure aliquip qui elitr lorem sea. Dolor elitr eirmod nulla tempor no magna. Ea stet et amet. Duo amet duo amet lorem dolor aliquyam dolor facilisi sadipscing. Et dolor at ipsum eu diam nonumy takimata et tempor eos.

Sample Output H3

Et possim dolor magna invidunt sadipscing in diam tation velit odio consetetur sit vulputate iusto. Justo eu eu volutpat illum dolore. Magna erat rebum at mazim sadipscing laoreet wisi autem dignissim vero labore ea. At ea delenit dolor diam. Molestie sea sea magna nostrud enim elitr vulputate est clita minim nibh et ea sea tempor et volutpat. Labore ut duo consetetur sadipscing no lorem sanctus dolores amet commodo nulla feugiat in et diam vero tempor. Dolore at amet ut ad et lorem dolor ex vel sanctus tempor voluptua erat dolor sadipscing. Ad autem autem et est eros voluptua imperdiet laoreet sed amet labore lorem ut dolor lorem euismod ipsum. Cum amet justo diam hendrerit sea odio accusam elit takimata sed amet sed ea et elitr. Labore consetetur sit amet at tation sed justo est dolores aliquip.

Eirmod amet at wisi nulla stet sed liber sed delenit et est ad in dolor. Eos lorem aliquyam. Exerci dolore magna at vero sed clita erat elitr molestie sed accusam sed sed justo no minim elit sed. Rebum ipsum consetetur nonummy duis facilisis kasd duo facilisis. Dolore vel stet amet vero sea qui dolore iriure aliquyam vel dolor facilisis. Eos duis facilisis eirmod accusam. Ut kasd minim nam dolor. Praesent justo stet nonumy sit amet soluta. Ipsum consetetur et ea enim elitr lorem dolor nonumy elit et duo.

Sample Output H4

Et et stet hendrerit veniam elitr accusam lorem ipsum zzril gubergren duo quod et et rebum erat. Minim sea nostrud veniam sed vero tempor sed magna et justo dolore adipiscing dolores. Nobis nihil sit sea nulla feugiat tation zzril option vero. Iriure rebum gubergren sanctus eos vero aliquip consectetuer invidunt ipsum ullamcorper sadipscing tempor consequat eirmod ut kasd ipsum. Clita et voluptua ipsum sed odio eos sanctus lorem vero dolor. No est gubergren sit sanctus sit feugait amet. Ex dolor consetetur consequat elitr est gubergren sed aliquip nulla rebum dolores sit. Lorem minim eu et adipiscing sit qui dolor lorem. Tempor luptatum et sed dolor kasd et dolor eos sit et stet. Praesent amet ut rebum iriure elit dolor.

No dolores lorem ut amet et no lorem nibh ipsum dolore vulputate et voluptua dolore. Dolore eos et stet invidunt lorem. Diam dolor at sadipscing duo invidunt. Illum takimata molestie sed sanctus est suscipit autem accusam dolor sadipscing vel diam velit consequat diam ipsum eos. Et dolor amet ut at diam gubergren et ex esse luptatum.

Sample Output H4

Augue odio accusam et takimata elitr lorem. Amet tempor sit accusam dignissim erat at amet nulla. Consetetur lorem magna lorem amet invidunt. Takimata rebum sit et est et eos voluptua. Vel duo delenit no et gubergren lorem sanctus iusto gubergren consetetur vulputate in. Amet et elitr dolores eos sed sed dolor hendrerit vel in magna.

Velit accusam rebum sed facilisis accusam dolor voluptua consequat et amet consequat et vero. Lobortis elitr aliquyam accusam no nulla diam stet sanctus dolores duo hendrerit at. Consetetur blandit diam dolor aliquyam duo amet clita et takimata duo laoreet vero erat tincidunt duo et et ipsum. Vero diam clita kasd justo vero lorem sadipscing elitr gubergren diam dolore diam amet sed. Kasd dolore dignissim takimata ea elitr no sanctus sit tempor invidunt. Ipsum magna nulla sed dolor sit ipsum dolores invidunt sed eirmod. Justo vero ipsum sanctus magna invidunt te dolore diam. Accusam ut est dolor dolor rebum justo sanctus sed dolore diam diam eos qui dolor illum ea.

Sample Output H3

Et sed dolore. Lorem magna hendrerit assum ipsum et ut. Illum eirmod sed dolores amet eos hendrerit volutpat nonumy dolore ut liber duo ea clita labore. Iusto ea lorem facilisis euismod ea accusam exerci gubergren sanctus elitr liber amet amet rebum nonumy est sit ipsum. Accusam commodo kasd voluptua illum sea eum takimata amet autem.

Diam lobortis nulla gubergren. Illum sanctus takimata clita sea diam duo dolor clita. Kasd est ad rebum zzril diam et sed accusam est sed kasd. Accusam rebum dolor et invidunt wisi erat diam et ipsum sed. Vel amet magna minim voluptua consetetur erat aliquam facilisis sed. Duis dolor labore dolores quod accusam no sanctus wisi.

Sample Output H4

Dolores est facilisis diam diam option illum laoreet stet aliquip sed facer. Eu lorem et amet iriure amet. Takimata sed rebum wisi iriure takimata. Ex et consetetur ipsum et voluptua kasd sed no dolore kasd et ipsum amet elitr et duo. Amet eirmod illum takimata vel duis clita aliquam dolor eum nonumy sed kasd duis dignissim sit. Dolor dolor lorem ea rebum iriure qui vero labore clita dolor invidunt sit eleifend stet sit consequat amet. Lorem eum ut nibh ut. Vero zzril nonumy dolores accusam volutpat iriure dolor ut eos stet sed diam magna sed ea dolor ipsum. Sed eu sanctus dolor voluptua nulla. Lorem clita dolor vulputate amet sea duo feugait diam hendrerit facilisis tation.

Sit diam amet hendrerit lorem congue takimata duo dolores labore et est elitr. Iriure ipsum ea rebum eirmod tation volutpat duis amet et eos sanctus ipsum nonummy et. Clita molestie dolor takimata dolor quod kasd aliquyam diam dolores at magna sit consequat eirmod eum lorem dolor. Erat at eleifend et elitr dolor ipsum consetetur erat justo consetetur duo consetetur kasd dolores ea. Takimata lobortis vero lorem facilisis ipsum stet et et velit ipsum. Sed sed vulputate dolores eu lorem vero qui eirmod est te amet lorem dolore justo dolore. Magna dolor sed laoreet hendrerit. Iriure takimata diam aliquyam kasd no sit te erat. Sit amet in lorem labore ea takimata sadipscing erat stet ipsum consetetur feugiat blandit eum sed diam est.

Sample Output H4

At lorem tempor laoreet consetetur sadipscing. Nulla rebum eos dolore feugiat magna sit ipsum et tincidunt erat ad et magna labore sadipscing delenit. Sit dolor blandit consequat dolore voluptua sit id feugiat. Nonumy clita eirmod no vero et delenit aliquyam sanctus magna mazim augue eu lorem tation ut exerci tation ut. Sed nihil in sit consetetur sit sea et magna consequat aliquip. Blandit et justo et. Aliquip sea consetetur nobis lorem tempor duo erat eirmod delenit vel kasd. Velit velit no aliquyam labore feugiat accusam dolore. Diam dolore in sit nulla dolor suscipit aliquyam voluptua ut sanctus dolor lorem delenit sed lorem tempor kasd elitr. Sanctus kasd voluptua clita praesent.

Vel in tempor labore. Nonumy velit aliquyam amet at assum in magna nonumy no. Magna diam ipsum eu. Volutpat magna dolor eirmod ipsum stet gubergren nulla sanctus erat et dolores at rebum ullamcorper eirmod stet elitr vulputate. Labore sit at volutpat blandit ea ut dolor sed facilisis mazim veniam dolor sanctus voluptua ut. Et eleifend te facilisis et sea amet odio consetetur gubergren sed dolores lorem gubergren clita eos et sed. Sanctus ipsum et rebum gubergren stet tempor ut est stet accusam et. Invidunt ipsum magna tation amet esse sit nisl erat sit ut facilisi sanctus autem sed dolore. Et ea consequat tincidunt duo eros stet invidunt amet praesent dolore feugiat. Duo invidunt nonumy lorem magna dolor tempor et invidunt dolor. Rebum diam dolor elit lobortis ad dolore sea.