cloudformatter format requests: 1,140,199    pages delivered: 2,946,175

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

Clita invidunt nonumy ea facilisis sed justo molestie suscipit nibh at stet nonummy ut facilisis nihil duis. Sed lorem lorem tation sit no consequat eum diam dolor invidunt no et ut esse nostrud. Ea odio dolor sit gubergren. Accusam vel nostrud elitr. Erat possim tempor eu eos stet vulputate sit diam iusto ut magna accusam lorem in duo amet. Kasd diam laoreet duo vero lorem voluptua. Voluptua ea stet at stet esse dolores eirmod rebum erat ea et volutpat amet eu invidunt eos.

Sed nulla sed dolores in nisl autem aliquip. Exerci clita feugiat facilisi nisl clita consetetur erat et autem te dolor magna. Diam at ipsum clita voluptua et kasd velit augue dolor qui. Option labore ipsum hendrerit consetetur lorem voluptua. At ipsum ipsum eros et accumsan illum. Eu diam diam praesent no vero dolor ut ut sed et ut dignissim duo ut aliquyam tempor dolore. Gubergren magna dolore ut amet at imperdiet diam ut est exerci nonumy dolore. Praesent kasd vel lorem dolor voluptua facilisis dolore accusam sea dolor nibh et. Takimata consequat nulla esse eos kasd sadipscing nonumy duis eros et sea magna gubergren rebum sanctus mazim. Est et justo facilisi magna no invidunt takimata sanctus nulla duo quod et.

Sample Output H3

Ea vulputate labore eum. Vel vero et sit sed vero nisl consetetur stet et velit et ea justo accusam amet sit labore est. Ea et est ea et ipsum clita eleifend lorem et ut elit feugait aliquam dolores illum. Placerat no takimata sanctus in ad diam sed labore tincidunt stet elit lorem justo euismod aliquyam adipiscing nonumy. Assum takimata et iriure elit dolor vero duis rebum sanctus sadipscing ea ea suscipit ipsum ipsum. Lorem diam vero ipsum enim vero ut consetetur ipsum dolores amet vel amet aliquip sed aliquyam.

Sed sit ipsum vel. Eirmod dolores id ut. Dolor et voluptua. Commodo duo aliquyam lorem wisi amet vero et ex magna dolore invidunt et delenit. Vero ea ut et feugiat duis et diam eos vero suscipit invidunt et diam veniam sit. Sed consequat et consetetur stet vero dolore et justo no eu at clita dolores rebum dolore sea at. Clita sed sed et voluptua takimata sed delenit gubergren.

Sample Output H4

Sadipscing eirmod et rebum consetetur diam ea voluptua lorem in consequat aliquam clita sit diam labore kasd nam. Qui nulla et et labore elitr consectetuer gubergren. Suscipit dolore kasd accumsan lorem ea et in nonumy lorem suscipit suscipit et dolore at. Vel iusto ea ut invidunt vero aliquyam elitr diam dolor dolor sit justo lorem accusam nonummy no. Et nulla et stet wisi dolor invidunt magna kasd nonummy ipsum et delenit vel lorem ea. Nonumy dolores vero et dolore duis justo stet consetetur elitr et dolore justo consetetur. Erat diam stet. Sea vel ipsum justo amet est stet. Consetetur lorem aliquyam consetetur sed lorem stet et augue accusam dolor ullamcorper sadipscing sanctus et no esse.

Eros ipsum et erat duo sit et sea voluptua dolores eu. Dolores justo wisi at. Aliquyam commodo sed dignissim est sed et diam sed et dolore delenit et ad nulla kasd commodo stet praesent. Luptatum stet sed et dolor lorem duis dolor rebum invidunt tempor imperdiet vulputate nulla aliquyam. Velit lorem et sea liber eu ullamcorper no et kasd lorem et tempor vero ipsum. Dolor dolor justo dolores et sea ut tempor nihil ipsum in consetetur hendrerit sed sed et gubergren est.

Sample Output H4

Aliquip sadipscing amet labore euismod justo et aliquip et elitr. Tempor praesent nonumy duis sit vero erat. Zzril amet dolor gubergren justo nonumy clita in aliquyam eirmod nonumy tincidunt ea amet sadipscing zzril magna ipsum. Tation labore dignissim justo lorem dignissim elitr et diam amet consequat voluptua. Nonumy sit clita consetetur lorem vel wisi. Stet aliquyam labore. Amet diam consetetur molestie et dolor at ipsum et tempor lorem gubergren adipiscing ipsum. Diam duo et eirmod elitr vero magna ea amet tempor lorem volutpat sed ea in magna ipsum odio.

Sit dolor ut eirmod no dolore eos. Dolor sit dolor. Ut elitr dolor sed sit sadipscing et dolore rebum. Aliquyam illum vulputate vero vel eirmod sit sanctus sit ut ipsum aliquip lobortis no et dolor erat aliquyam sit. Dolores lorem invidunt invidunt dolor dolore nulla exerci dolor kasd et dolores. Et dolor duo vel. Sit ut consequat. Quis sed dolore ea illum diam nibh lorem.

Sample Output H3

Magna accusam blandit. Option laoreet diam ipsum magna. Lorem diam diam sed in ut at elit. Sadipscing assum et vero molestie eos sed molestie dolore. Wisi dolore ipsum aliquyam consetetur est facilisis rebum feugait duo no sea ipsum lorem stet vero sea amet. Ut vel vel amet.

Et rebum vel dolor justo elitr ut sed lorem adipiscing. Sit no ea vero eirmod vel et magna. Et ipsum clita kasd amet molestie sed amet. Iusto et tempor ipsum vero diam suscipit erat dolores velit. At option sadipscing diam sed nibh option dolore elitr vero. Stet ea kasd labore eros commodo dolor sit lobortis sit et vel sit commodo qui consectetuer ut in justo. Nibh no est duis qui duis iriure esse consequat labore at. Qui odio esse et in dolore sit takimata sed ipsum lorem in sed.

Sample Output H4

Erat dolore sadipscing enim at et hendrerit. Lorem consetetur dolor soluta ea no ipsum sit qui eros eirmod. Quis rebum dolor takimata consectetuer accumsan clita nulla rebum kasd eum eos nonumy ut accusam duo in. Illum takimata aliquyam aliquyam in sed facilisis duo tempor dolor aliquyam rebum ut. Lorem quis dolor lobortis. Invidunt dolore amet gubergren stet aliquyam nonumy kasd takimata.

Et aliquyam at magna elitr dolore accusam sit mazim justo stet augue in ea nihil ea no facilisis et. Eirmod lorem minim takimata sanctus et delenit duo lorem sit nulla voluptua invidunt sea vel. Iusto hendrerit diam et in. Et tempor vero eirmod magna amet consequat ea stet lorem. Dolor diam nonumy dolor duo sea no invidunt dolor illum. Takimata diam justo aliquyam velit duis diam et nonumy dolore vel voluptua labore takimata labore justo. Lorem ea ut assum consetetur qui accusam dolores est eirmod dolor.

Sample Output H4

Justo facilisi sit vero ipsum labore. Sit lorem molestie iusto elitr augue ipsum dolores autem sanctus vero ea vulputate liber magna et ea erat. Accusam sit stet duo dolor aliquam at sea quis consetetur eu no gubergren amet. Dolore nihil magna rebum. Ea et est et et lorem tempor est amet. Takimata magna eirmod. Stet diam nam takimata no labore.

Takimata eos diam sit et invidunt invidunt labore. Tempor amet voluptua ipsum eirmod dolor sadipscing dolor facilisi consequat ipsum vel. Suscipit lorem accusam sed diam sed ea sed. Aliquyam elitr ullamcorper nibh dolore dolores justo et wisi justo. Tempor accusam stet clita justo quod justo dolor est commodo ea consequat sea blandit invidunt eirmod. Sed amet delenit justo sed amet nisl labore sea clita magna voluptua lorem labore duo sit tempor accusam esse.

More Sample Output H2

Et in accusam consequat invidunt nonumy. Feugiat luptatum sea aliquyam sed consetetur magna blandit ut. Diam at takimata erat dolore diam eirmod accusam est dolore consequat eirmod et consequat sit ipsum lorem ex. Feugait ex elitr sanctus vero magna in lorem dolores consequat sanctus ipsum justo eum. At sed erat eu eros sit commodo minim aliquyam takimata tempor.

Eu erat voluptua erat amet sea aliquyam vero dolores ipsum illum eos eirmod hendrerit. Eum amet erat erat. Voluptua illum ullamcorper vero ut sadipscing amet elitr. Kasd lorem invidunt sed no eum. Volutpat sed diam sea magna duo kasd sea erat sed eirmod diam. Eos rebum sed no iriure esse te. Sit erat ut dolores esse sea vero ipsum dolor sadipscing quod et wisi et feugait. Accusam est no elitr commodo delenit nonumy sanctus. Clita eum ut accusam. Eirmod sed autem duo.

Sample Output H3

Vero elitr consetetur. Tempor et consectetuer sit stet et et ut lorem at tempor consequat nulla tempor odio voluptua no consequat. Amet dolor takimata feugiat duo sanctus nulla aliquam ipsum tempor feugiat clita erat clita ipsum lorem sed dolore. Tation eirmod amet sit vero ea sed justo justo. Delenit nihil justo sit dolore ad stet aliquyam elitr augue in dolore erat. Dolor sea augue no diam.

Id sed tempor invidunt accusam amet ut magna dolores diam est aliquyam sed dolore no diam labore sit aliquyam. Invidunt invidunt velit. Sed eirmod sed ipsum tempor. Dolore facilisis diam sit accusam. Labore te clita sit erat lorem voluptua ipsum sanctus tempor sed invidunt eirmod ea. Stet dolore doming in nostrud esse accumsan no et diam tempor dolor lorem amet eros possim. Augue ipsum dolore vero labore augue. At consetetur lorem takimata.

Sample Output H4

Diam no nonumy ut et labore no cum sed blandit quis et amet gubergren elitr nonumy autem elitr nonummy. Option takimata invidunt ipsum diam sed dolor velit. Amet eirmod dolores labore sanctus sit sed est euismod ut elitr sed consetetur duo. Dolor sea nonumy stet stet invidunt duis nibh vero diam eu. Eos et amet elitr invidunt suscipit amet. Eum at magna nonumy feugait ea duo et labore ipsum sanctus aliquyam diam dolor amet.

Dolore ut sit aliquip erat facilisi sea amet ut. Ut clita et est consequat sadipscing tempor odio voluptua voluptua lorem duis lorem duo dolore. Vero dolor sed autem possim dolore dolores esse at magna et stet molestie. Eos diam vero doming dolore eos sit dolor justo. Ipsum diam at eos et lorem nonummy commodo erat eirmod elit lorem accusam suscipit. Tempor id feugiat nulla aliquip sed vero voluptua. Tempor et voluptua iusto vel vero dolor voluptua ut erat sadipscing sea takimata nibh gubergren. Et consectetuer rebum doming sit justo facilisi et kasd augue sed et dolores amet ut erat. Sit et nisl vero est et sed et et ipsum at ut.

Sample Output H4

Ea accusam possim dolore magna consetetur te sea dolores lorem in eros et ea. No vel erat dolor dolores sed accumsan at consequat volutpat ut et aliquyam erat dolor. Et et ea clita eirmod eum dolores invidunt ut zzril diam laoreet est voluptua. Sadipscing voluptua sit stet volutpat consetetur qui sadipscing eirmod elitr enim takimata elit duis in zzril. Magna lorem et facilisi molestie dolor eirmod dolor duo sit adipiscing blandit aliquyam tempor clita diam diam. Sit labore lorem duo voluptua elit iriure aliquyam accusam duo facer.

Consetetur labore et vulputate takimata amet ullamcorper sed ut sea dolores zzril. Eirmod dolore nulla. Erat erat erat amet. Feugiat aliquyam rebum voluptua ullamcorper sit voluptua dolore et et sit vero consequat blandit ipsum zzril. Diam dolore kasd eirmod diam vel diam ut iriure et erat dolores nulla tation eos. Adipiscing dolore dolor in aliquyam dolore gubergren rebum elitr tempor voluptua ea nonumy et takimata id. Ea dolor nihil sed diam et et doming ipsum kasd voluptua dolor ea nulla. Tation invidunt dolor. Sit nonumy amet amet diam sit eum nonumy vero eirmod justo voluptua rebum diam diam hendrerit eos consetetur. Eu praesent qui magna nostrud luptatum dolores kasd sed at amet ut ipsum volutpat gubergren.

Sample Output H3

Et tempor takimata imperdiet eum aliquyam gubergren sea ad ut amet. Ut eirmod elitr amet nonumy iriure rebum sea in sanctus. Est sed qui consequat clita dolore. Ut est imperdiet gubergren hendrerit. Ipsum consectetuer ut molestie id sanctus amet dolore sed. Sed tempor et eos stet voluptua veniam labore at. Lorem ipsum aliquyam vulputate wisi lorem vero ea elitr diam ea iriure. Est stet et ullamcorper vero praesent dolor kasd sit ea lobortis sit sit elitr gubergren lorem.

Takimata ut eos ut sit aliquyam aliquyam diam amet magna aliquyam nonumy wisi cum eum sea. Gubergren gubergren assum tempor liber eos. Ex eirmod minim clita et accusam dolore clita kasd magna vulputate quis dolor accusam stet elitr sed accusam accusam. Magna augue ea est eleifend. Consetetur sit dolore stet. Sit stet magna zzril rebum zzril duo et sanctus blandit sit duis in sed lorem consetetur duis. Duo sanctus adipiscing amet.

Sample Output H4

Sanctus lorem dolore clita adipiscing dolor. Ut ipsum sadipscing. Ipsum commodo et lorem kasd iriure nobis ut stet erat sit diam sea et nostrud ea lobortis sadipscing labore. Accusam gubergren vel ullamcorper elitr nonumy est vero elitr consequat et vel. In sanctus vero nonumy lorem sea et et et ea sed est erat. Eleifend duo autem duis sed rebum esse illum in sea stet in nonumy ipsum. Elitr wisi feugiat ipsum ex aliquam vero invidunt nostrud aliquip invidunt ea accusam sanctus. Nisl qui minim eirmod vero nonumy amet sed sed justo takimata elitr invidunt et voluptua no justo dolor. In magna sed eirmod ipsum. Diam et vero sed sanctus amet.

Sadipscing aliquam erat dolor ut stet nonumy ipsum diam diam erat nulla sed eirmod dolore molestie. Sit eum ex ea stet at amet ea eos dolor. Et duo justo consequat eum stet elitr vel magna amet. Est amet tempor erat tempor justo velit est nonumy labore et rebum. Ex dolore dolor elit congue sed ipsum clita lorem sit nibh erat accusam. Labore rebum amet dolor. Praesent ipsum laoreet eleifend ullamcorper diam tempor dolore quod. At eos lorem accusam dolor dolore tation dolor illum. Dolor vel diam sanctus praesent sit facilisis dolores eirmod diam sed sadipscing et lorem imperdiet vero.

Sample Output H4

Diam ipsum kasd dolores ut vero et sed nonummy vero vero ipsum facilisi erat eu. Luptatum justo no magna et dignissim illum et iriure. Dolor magna takimata amet eum lorem est amet dolor erat sanctus lobortis sadipscing dolor rebum esse elitr. Elitr diam et clita aliquyam augue accusam vero ea nulla gubergren accusam blandit at vero. Dolores sed accusam sed zzril justo sadipscing clita ipsum lobortis clita magna te.

Stet duis ex diam dolor lorem consectetuer ut sed elitr et sed imperdiet erat vero diam consequat sed. Magna ut ad id assum. Sit ut elitr. Sit sed dolore ut. Ipsum nulla justo stet facer et soluta te nostrud invidunt lorem sadipscing et. Erat voluptua dolor amet tempor et accusam diam dolor clita est vero sed ipsum no nulla dolores et vero. At eu no et eirmod takimata nostrud voluptua est lorem dolor magna rebum odio rebum lorem.