cloudformatter format requests: 3,813,588    pages delivered: 9,531,839

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

Et eos diam molestie invidunt at nonummy. Nam aliquyam elitr sadipscing amet praesent eirmod aliquyam diam ea vero lorem kasd dolor sed invidunt ut illum. Vero amet molestie velit duis imperdiet elitr elit sadipscing lorem sadipscing feugiat nostrud amet tempor ea in takimata labore. Ut invidunt amet nonumy ullamcorper qui aliquyam duis vero et sed dolor dolor placerat qui. Et accumsan quis minim facilisi accusam consetetur rebum sed ut dolor sea amet ipsum ipsum sed sit. Consectetuer sanctus iriure autem labore no sit ea tation kasd in. Veniam accusam voluptua tempor sadipscing ipsum sanctus lorem minim dolor no justo et stet facilisi accusam sit voluptua. Sit ut liber no.

Iriure in et lorem elitr sed dolores odio hendrerit possim voluptua dolore sea. Amet vel diam ipsum magna ipsum voluptua et sit clita sed ea nulla voluptua eos diam no clita. Blandit et nonummy dolor. Vero ex et lorem enim. Adipiscing facilisi no et nonumy te lorem. Sed ut kasd facilisis dolor erat justo. Dolor facer sea dolores dolore stet lorem facilisi lobortis eirmod amet sea sadipscing doming laoreet sed. Ea velit et est vero tempor odio labore et et sadipscing. Nonumy tempor et et sit nobis et ullamcorper ea clita praesent eirmod qui lorem accumsan eleifend euismod.

Sample Output H3

Elit amet est sed iriure dolor sanctus sanctus soluta invidunt enim gubergren veniam quis sit. Sit et nonumy dolor consetetur dolor tempor aliquip. Takimata blandit lorem ullamcorper dolore et. Eos duo eos in ut euismod sed et diam. Vel eirmod et voluptua ipsum vero justo ex clita erat est dolores vero sed et. Luptatum et erat dolor consequat accusam ea tempor eirmod eum erat no dolore dignissim consetetur. Sed dolor praesent lorem ea consequat tempor sed dolor. Et tation esse est iriure et amet duis vero et sadipscing eirmod aliquam ea vero consequat eirmod. Amet sadipscing dolores in ut eirmod gubergren soluta autem magna sit ea et eirmod sit.

Nonumy lorem et dolores gubergren vel lorem amet nonumy nulla ipsum dolores clita at invidunt commodo clita. Ut tempor sit sed dolor consetetur diam hendrerit stet duis te eirmod. Tempor aliquyam no labore. Est takimata eos kasd duo duis amet vel euismod dolor voluptua euismod ea illum. Nibh sadipscing amet velit clita eu labore laoreet velit et sit invidunt. Ex luptatum accusam takimata in magna quod tincidunt lorem feugiat takimata adipiscing magna tempor eirmod tation et. Qui kasd aliquyam consetetur. Sit tincidunt eos amet commodo eu tempor sed et veniam sadipscing.

Sample Output H4

Facilisis et ut nostrud. Et laoreet duis at diam luptatum te labore ea et magna ex at sanctus sadipscing ipsum eros ex. Labore elitr takimata dolores nonumy sadipscing vero accusam consetetur feugiat sit dolor. Sanctus accusam sit cum amet. Molestie vero sed eu praesent dolores kasd molestie invidunt ullamcorper blandit sanctus lorem sit vel sadipscing.

Ullamcorper esse eleifend et sit et vero justo sanctus sanctus id est no diam dolor facer et sadipscing. Gubergren sed lorem sed sea. Rebum consetetur odio elitr id tempor. Accusam et sadipscing stet esse blandit nonumy at et dolore kasd erat diam eos ipsum dolor dolor vel. In sit eirmod invidunt dolore te nulla amet. Dolor ipsum voluptua magna at illum et esse dolor nonumy dolor et elit ex dolores at. Diam duo tation dolores. Et eu et facilisis stet et vel sit velit sit. Ea praesent eos takimata rebum eum feugiat et nulla sit delenit. Nonumy sea et et facilisis magna dolores vulputate liber dolor.

Sample Output H4

Nulla sea stet. Duo justo zzril laoreet takimata elitr blandit sit clita justo eos invidunt exerci. Sea blandit justo lorem ea erat nulla kasd sed exerci ea takimata dolores. At lobortis tincidunt accumsan aliquyam gubergren. Nulla amet diam ut dolor sea.

Dolore zzril dolore amet rebum eirmod eos sit. Lorem hendrerit esse laoreet facilisis ipsum. Amet at dolore voluptua sea no duo sanctus lorem et amet vulputate elitr amet aliquyam. Duo duo nihil clita lorem diam lorem stet consequat blandit clita et labore hendrerit. Amet dolor eos magna accusam euismod aliquyam vel invidunt et diam amet nam nonumy dignissim. Lorem ut clita diam lorem et. Lorem no et. Tation diam consequat.

Sample Output H3

No dolor est sed justo odio dolores. Amet et sit zzril sed sed. Vero dolore no facilisis ut gubergren dolor sea veniam est vero nulla et nam magna elit. Magna sadipscing diam sadipscing labore delenit vulputate. Dolores vulputate elitr nonumy ipsum amet et duo. Amet et magna. Dolores takimata sea hendrerit no justo amet diam dolor labore rebum invidunt nulla elit ea amet et vulputate dolore. In amet eirmod sadipscing justo voluptua gubergren ipsum clita voluptua kasd diam lorem praesent stet ipsum.

Feugait gubergren nulla nulla minim sed. Invidunt no dolore tempor blandit duo eirmod invidunt stet sanctus duo molestie rebum volutpat amet no et. Te et eos nam sanctus consequat et duo justo dolore euismod nam ut dolor dolor elit soluta. Et molestie consetetur no vero amet dolor vero amet lorem. Duo kasd sit aliquyam delenit sanctus blandit accusam veniam takimata vero stet adipiscing ipsum takimata autem. Consetetur esse sanctus amet duo ipsum dolor sed labore sit duis. Lorem sit ut dolores amet dolor accusam accumsan dolor hendrerit dolor dolor ad tempor vero ut rebum nulla amet. Ipsum eum aliquyam vero sadipscing sit lorem no. Commodo facilisis aliquam labore ipsum consetetur takimata gubergren accusam amet eum velit no vero. Eirmod nonummy molestie magna sed et nostrud. Takimata lorem et sea accusam lorem vero ipsum dolor duis eirmod.

Sample Output H4

Ullamcorper clita ea exerci dolores. Consetetur vero congue. Consetetur eos dolor hendrerit illum ea justo no est invidunt lorem zzril consequat sanctus velit ut. Dolor dolor nibh velit no nisl erat consequat ea diam lorem clita erat qui lorem nibh. At ipsum augue vero sea. Gubergren dolores diam dolores est consetetur ut.

Magna takimata sit dolore justo vel ut justo dolore elitr aliquam sea sit ut doming invidunt. Diam invidunt invidunt labore eos et nisl justo dolor accusam aliquip ipsum at lorem takimata diam kasd. Odio iusto sadipscing lobortis eos vulputate amet invidunt vel nonumy vero. Ea dolore luptatum illum est est consectetuer elitr no dolores no suscipit dolor est ea dolor vulputate nam clita. Nonumy invidunt eos vel sit amet consectetuer iriure erat invidunt nonumy eu. Magna vero ut invidunt exerci amet ea vel invidunt sanctus est dolor molestie dolores ut eos. Enim erat diam nisl diam sed sea ipsum dolor iusto elitr sed in eos diam eros. Gubergren rebum et ut erat takimata feugiat lorem dolor autem lorem ut no labore dolor. Diam diam kasd lorem et est sit voluptua dolore et diam. Doming duis amet erat ut vel takimata lorem diam elit dolor accusam duo. Sanctus ipsum accusam amet sed et consetetur ipsum diam.

Sample Output H4

Erat lorem nonumy tempor takimata autem no stet labore sed diam ea sadipscing nulla elit. Sadipscing et esse illum diam liber kasd ipsum ipsum suscipit dolore takimata vero ex no ut magna. Et takimata sit. Dolore amet sed nibh duo est et lorem dolor accusam sit erat dolor ipsum adipiscing ipsum voluptua et facilisis. Accusam ut praesent.

Soluta ea dolor labore. Eum hendrerit voluptua voluptua amet sit sanctus adipiscing voluptua vulputate ipsum dolore exerci gubergren. Aliquyam commodo sanctus facilisi clita lorem dolores ea sed dolore erat labore. Molestie feugiat invidunt feugiat duis ea voluptua est dolor. Molestie sit rebum nostrud consetetur amet eos sea clita in in euismod lorem stet rebum et feugait erat.

More Sample Output H2

Ea justo lobortis eu consetetur tincidunt dolor no luptatum. Labore sea diam eos et. Ipsum voluptua eos clita tempor molestie invidunt dolore lorem sea. Vulputate ea feugiat sadipscing erat diam praesent gubergren. Veniam qui dolore aliquyam ipsum rebum quis accusam iusto. Et zzril consetetur amet sea consequat sanctus ea stet doming et elitr et ut clita ipsum consetetur. Stet iusto adipiscing gubergren clita esse amet erat diam blandit rebum dolor sed aliquyam lorem et sadipscing. Erat duis et. At dolor lorem labore ut blandit clita autem nulla. Et accusam nibh ut.

Stet sea molestie erat takimata eirmod adipiscing accusam duo. Eirmod ipsum sadipscing lorem sit dolores justo et ipsum labore diam erat et ea consectetuer facilisis sed. Et vulputate labore dignissim et. Tation et sea vero laoreet diam eum eu ea ut elit. Lorem nonummy lorem lorem ipsum takimata tempor invidunt labore sadipscing sadipscing eirmod diam duis clita invidunt ea. Ea dolor dolore at vero ipsum nulla amet. Consetetur liber hendrerit stet ea duo nibh dolore.

Sample Output H3

Justo sanctus ea dolore ut invidunt dolor. Dignissim ea voluptua at voluptua dolor voluptua consequat erat gubergren eu lorem ut. At laoreet sadipscing aliquyam hendrerit sit takimata et dolor accusam aliquyam et. Vero amet qui autem accusam est dolores lorem stet vulputate eirmod iriure nonumy sed ea. Et elitr duis erat et dolore ut. Eirmod sed voluptua iusto dolor stet nonumy amet ipsum.

Luptatum at duis. Lorem dolores feugait amet invidunt esse invidunt vel diam nonumy rebum invidunt. Commodo elitr exerci at tation sadipscing diam. Praesent rebum diam duo invidunt sadipscing. Dolore elitr dolor dolor iusto autem ipsum clita ea invidunt nonumy dolor justo amet duo consequat et nonummy. Euismod commodo ipsum vero diam illum labore illum magna laoreet voluptua. Enim nibh amet. Duis tempor gubergren dolore et tempor aliquyam vel nonumy et elitr gubergren dolore duis aliquyam dolore. Diam et te erat. Clita elit assum rebum amet. Hendrerit no possim sea eos nibh in sit eirmod nonumy sadipscing.

Sample Output H4

Sanctus vel consequat eum nulla blandit dolores in sed invidunt sanctus et lorem est at. Consequat euismod ipsum aliquyam lorem et stet dolore et lorem tempor gubergren ea sed. Nisl sed tempor vero et amet eirmod sit nonumy. Et amet vero autem kasd ipsum ut kasd tempor dolor vel accusam justo duis ut sed qui nostrud. Ut sea eirmod diam vero labore accusam sed dolore duis. Elit dolor takimata diam nonumy duo possim labore eos labore clita eos feugiat et consetetur stet dolor delenit. Et euismod nihil et stet elitr diam sanctus justo autem diam ullamcorper voluptua et vero tempor ipsum. Nihil esse praesent sit qui invidunt est cum feugait elitr. Eu at congue dolor consetetur consequat facilisi invidunt facer sadipscing rebum kasd stet. Lobortis gubergren et tempor ipsum takimata nonumy elitr vel sadipscing voluptua lorem eos est clita tempor. Et aliquip vel nonumy et sea dolor consequat eum ut dolor dolore facer et voluptua possim.

Et rebum ut. Dolores ex tempor autem ut et. Stet ea vero ipsum duis. Et imperdiet magna stet sanctus duis. Clita lorem ut sadipscing sea diam sit ea elitr elitr elitr facilisi. Liber ipsum ut volutpat vero velit diam. Duis praesent sed sed takimata nobis.

Sample Output H4

Ut tation rebum. Clita nostrud at. Consetetur eirmod diam clita vero. Ullamcorper dolore duis tempor amet eos kasd at. Ut ut at magna vero clita et dolores voluptua consequat et sed sit. Velit illum sit. Invidunt kasd suscipit minim euismod dolor erat. Amet dolores dignissim accusam.

Takimata ipsum augue gubergren ut nonumy suscipit ex consetetur ipsum. Ex ipsum erat elitr lorem et et et et tempor dolores sed et consetetur hendrerit elitr et. Amet zzril ut. Accusam ut lorem lorem in et takimata tempor vero duo ipsum clita et amet eirmod illum dolor consetetur. Sed sit stet et sanctus sed diam eros zzril accusam amet sadipscing ullamcorper enim congue. Iriure nonumy magna ex diam gubergren amet. Dolore tation diam voluptua elitr gubergren eleifend vel sanctus erat wisi in diam nulla. Sea sit sed nostrud dolor takimata vero.

Sample Output H3

Sadipscing lorem lorem aliquyam duo. Aliquyam magna sit dolores sea lorem erat duo. Ullamcorper vulputate nonumy eirmod at lorem et. Dolore tation lorem lorem dolor. Lorem eirmod facilisis feugait nonummy clita eirmod facer accusam.

Sit molestie kasd kasd ut dolore sed consequat lobortis lorem sea tempor diam iusto lorem. Invidunt ut et lorem minim et illum ipsum erat amet ut. Est iriure et tempor magna sea sea amet sed. Commodo et eirmod adipiscing takimata delenit diam sit diam ipsum sit no ipsum aliquyam eos nonumy amet et. No eu ipsum hendrerit quis diam diam eirmod iusto nonumy diam rebum duo consetetur sed blandit kasd amet sed. Et clita sed diam est lorem. Elitr iriure voluptua sadipscing no nulla adipiscing invidunt gubergren eos dolore.

Sample Output H4

Magna nonummy diam clita nulla eirmod adipiscing magna voluptua odio dolores iusto et quis invidunt aliquyam assum. Tempor iusto rebum ut kasd amet zzril magna et ipsum sea amet clita eirmod est ut amet. At dolores zzril et elitr labore et nonumy diam magna invidunt ipsum amet nonumy. Sanctus eum nonumy consetetur amet dolores. Rebum gubergren sed. Takimata vero justo praesent et dolores ea. Sanctus et imperdiet est commodo stet.

Kasd amet molestie sadipscing voluptua lorem aliquyam magna lorem et minim. Sed eirmod consequat suscipit illum commodo diam elitr hendrerit laoreet tempor illum et eu dolore dolores vero diam no. Euismod delenit voluptua justo in in invidunt justo sadipscing diam ea sit eos. Facer blandit consequat sed et lorem invidunt diam et nam nostrud luptatum sadipscing in lorem vel dolore imperdiet. Lorem eum exerci kasd ut kasd rebum clita sea duis sit sea.

Sample Output H4

Justo sadipscing aliquyam magna. Justo gubergren nulla vel adipiscing aliquyam gubergren sadipscing magna hendrerit. Iriure dolores consequat in suscipit. Erat placerat ut aliquyam in tempor erat erat dolore. Sanctus lorem vero consectetuer at commodo labore vero et lorem amet aliquyam est euismod dolores dolore. Sadipscing lorem dolores iusto gubergren labore ipsum stet takimata delenit sea diam. Autem aliquam duis sea lorem diam sanctus takimata diam sed dolore. At duo no duis amet te sit dolore duo dignissim at amet quis sit aliquip voluptua laoreet consectetuer eirmod.

Veniam elitr amet commodo autem volutpat sed voluptua elit tempor at dolor duis. Ipsum hendrerit ipsum ut justo stet ex lorem erat consetetur dolores luptatum nulla nisl feugiat. Diam sed et at dolores voluptua consequat clita lorem at dolores magna. Et labore dolor stet. Ipsum ut at magna. Amet amet sea rebum amet magna et diam takimata feugiat sed dolor labore rebum justo amet. Sanctus sed praesent amet quis aliquyam et amet kasd justo justo sed.