cloudformatter format requests: 1,603,558    pages delivered: 4,231,197

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

Cum amet dolore dolore elitr sea blandit vero duis nostrud nisl no sed. Sit consequat vel labore dolor sit. Stet et facilisi delenit consequat lorem et amet. Elitr at kasd no diam justo enim. Duo molestie nibh ut amet minim et diam. Amet sadipscing sanctus ea duis stet et accumsan. Nisl at ipsum dolor lorem consequat. Sea lorem erat lorem amet sit clita duo no. Ipsum sadipscing gubergren autem takimata ut sea aliquyam no sed consetetur dolore aliquyam lorem. Vel eos consequat diam diam vero dolor aliquyam dolor.

Sadipscing sed aliquyam sadipscing dolore tempor diam sadipscing et diam eirmod sed delenit. Erat rebum id ea. Ea vero stet eirmod dolor erat aliquyam sed. Sit amet no ea ullamcorper adipiscing. Dolores amet praesent dolor takimata est nam labore. Diam magna dolor dolore kasd sadipscing sea dolor stet dolore. Aliquyam justo sed. Invidunt no et stet et gubergren volutpat ea duo amet amet ea sadipscing nonumy. Gubergren dolores congue consequat duis dolor sed vel. Invidunt eirmod aliquam sit kasd. Consequat autem accusam eirmod amet dolor labore vel magna clita.

Sample Output H3

Vel ea adipiscing amet rebum vulputate ut vel est duis lorem aliquyam ex nonummy. Dolore voluptua magna takimata minim takimata eros ipsum consequat sadipscing vero sed ut at elitr. Lorem erat aliquam mazim magna no in vero sed duis gubergren suscipit dolor. Sed tempor dolores consequat at et et dolore nonumy in sadipscing stet tempor ipsum nostrud sed. Gubergren diam kasd elit sit magna labore rebum ipsum duo. Aliquyam lorem diam et est sit dolore ipsum kasd sanctus.

Labore sit sed erat amet justo accusam velit autem sit sit illum vero option elit dolore sanctus et. Eirmod amet sed sed ut no et takimata justo adipiscing eos duo ullamcorper. Nulla eos et consetetur dolor soluta id illum euismod gubergren. Takimata clita eos at odio iriure facilisis diam sit erat vero consetetur diam sanctus. Erat vel dolor diam vero gubergren est voluptua ut dolor ea ea est lorem sit.

Sample Output H4

Magna consetetur sed sit et ea et diam clita et voluptua duis dolores lorem sanctus assum ad. Dolor eu velit ut stet consequat consequat ipsum eos facer magna accumsan kasd sit laoreet dolores. Et sed sea ut dolor dolor sit dolore ut erat feugiat lorem rebum gubergren voluptua takimata elitr lorem. Dolor amet dolore. Gubergren tation tincidunt tincidunt sea esse quis sanctus sed labore sed eos eros elitr lorem sit. Velit tincidunt est euismod diam ipsum no adipiscing. Dolor et lorem nibh eleifend duo sit dignissim lorem consetetur est gubergren. Nulla stet et placerat luptatum vero invidunt sit ea laoreet ipsum diam amet possim autem adipiscing.

Wisi sit aliquyam lobortis no ea consectetuer commodo eos ut diam. Mazim amet praesent ipsum. Elitr blandit luptatum et ut sit. Lorem et est nonumy ut consequat nonumy ut erat ex suscipit stet tempor. Eirmod est no lorem sit clita kasd et aliquyam ipsum qui ut accumsan ipsum dolore et.

Sample Output H4

Labore sit sit kasd duis consetetur sit id. Nonumy consectetuer elitr no ex quis vero est congue facilisi dolores ut et facilisis magna invidunt. Nisl nonumy velit ut ipsum sea ipsum et aliquyam ut accusam diam nulla elit ipsum vero vero facilisi lobortis. Minim sit sanctus magna. Ipsum rebum delenit duis justo eum justo voluptua feugait diam takimata accusam duo dolores euismod nisl consequat tincidunt. Odio sanctus accusam vero magna sed nisl vel elitr consequat nostrud. Labore hendrerit tempor aliquam sadipscing ipsum kasd euismod quis dolore sit dolore. Erat ex clita diam et. At id ea sadipscing et eos nonumy dolores dolores stet accumsan diam imperdiet ut est. Rebum duis et eirmod et nibh sit. Ut quis et et invidunt voluptua consetetur rebum voluptua magna dolore no ex et dolores eirmod diam vero sadipscing.

Vel diam consectetuer et suscipit hendrerit. Accumsan labore duo. Delenit molestie at nonumy no vero dolore invidunt tempor erat amet lorem dignissim. Est rebum eu duis amet euismod dolore ea sit accumsan. Nonumy dolore congue est sanctus velit voluptua dolor amet amet justo vero iusto sanctus clita.

Sample Output H3

Amet elitr in vero clita at sit euismod suscipit. Eirmod velit vel duis nonumy molestie no accusam erat et duo et velit iriure dolor est dolor invidunt diam. Dolores nobis justo amet esse lorem ea. Voluptua amet ipsum aliquyam takimata vero assum tempor wisi aliquyam erat facilisi delenit. Dolore elitr illum et dolor sit dolor eros iriure enim illum vel dolore est invidunt velit amet.

Nulla consetetur facilisis volutpat eirmod erat sed lorem at nonumy eos sanctus sit. Consetetur et vero sit qui dolor stet lorem ea consetetur commodo magna kasd dolores gubergren dolor in ut facilisis. Duo stet magna diam eum aliquam vero magna et dolor et nulla gubergren molestie soluta ut. Minim id gubergren sanctus laoreet sea invidunt justo nulla exerci kasd nisl ea lorem accusam sit erat elitr. Lorem sanctus ea sit diam praesent facilisi volutpat sea consetetur dolor vero consequat vel dolore ipsum. Sit et gubergren sanctus ut accusam eirmod kasd. Feugait augue dolor autem dolor lorem amet et ut molestie stet eum sanctus dolor justo gubergren vero at te. Dolor vero est ut magna lorem dolor ex at rebum labore clita diam rebum elitr no. Consetetur magna sadipscing kasd kasd imperdiet.

Sample Output H4

Dolore diam clita at augue euismod sit kasd sea illum ut nulla justo volutpat dolor sed. Rebum et dolor qui ipsum sed imperdiet consetetur feugiat molestie amet dolores vero. Eum in blandit lorem in ut gubergren facilisis vero facilisi sit kasd congue in. No iriure soluta ipsum ipsum sit vero sea consequat clita lorem amet ipsum. Elitr dolor vel. Erat esse et. Blandit lobortis accumsan et soluta ipsum aliquyam aliquam eirmod clita accusam sadipscing aliquam nonumy dolore.

Sed et amet duo tempor stet amet. Autem magna accusam accumsan eos sit ipsum praesent ullamcorper diam ipsum sit diam clita eros quis magna suscipit. At eirmod sed. Dolore nulla sed diam eleifend labore amet illum elitr eirmod sea lorem commodo vero consetetur. Kasd duo amet stet clita.

Sample Output H4

Amet erat delenit et tempor duis facilisis eos sea est sed duis. Sed kasd accusam. Sadipscing augue sanctus exerci justo sea at est invidunt labore. No sadipscing magna at. Consetetur sed kasd invidunt kasd minim labore illum rebum labore blandit magna sadipscing amet amet illum et. Dolor et tation sed magna velit esse. Consequat nostrud option rebum ea diam dolore in amet wisi ea molestie iusto aliquyam. Diam quod tempor diam stet elit ea ut sadipscing.

Dolore elitr aliquam et gubergren sed et nulla voluptua accusam ut amet justo diam dolor. Amet et ipsum magna vero eos. Duo ipsum autem rebum dolor et sit at takimata. Praesent duis rebum ea ut elitr elitr justo sed lorem justo sanctus. Invidunt et ut vulputate invidunt duo eos diam no. Aliquip liber eum ea facilisis rebum voluptua id. Eum ea sit dolore et diam ipsum.

More Sample Output H2

Clita dolore justo duo eum gubergren sed nisl labore aliquyam dolore tation amet esse no sea in erat nonumy. Ea sanctus et sed dolore feugait consetetur duo ipsum sit amet accusam. Clita labore diam illum est at invidunt et eos aliquyam eum stet invidunt stet eros gubergren ut. Eum nostrud lorem aliquyam facilisi et feugait iusto tempor consequat sed nonumy accusam no consetetur. Volutpat ipsum dolore vero labore ipsum ipsum ipsum elitr takimata lorem. Euismod nulla sit.

Dolor lorem et. Commodo sed kasd gubergren eu. Lorem autem qui sea aliquip justo tempor. Et diam labore at kasd nam duis tempor et elit in magna. Et dolore lorem vero sed ea aliquip et tation labore stet magna. Blandit est vero sit ipsum dolor accusam et. Magna vulputate eos exerci accumsan duo ipsum iriure congue sit. Eirmod accusam et hendrerit labore sed lorem lorem sed magna dolore et clita. Eirmod sed no ea vero clita consetetur lorem. Molestie exerci dolor dolore et clita est aliquyam. Ipsum voluptua et commodo diam ex volutpat.

Sample Output H3

Et clita eos vero eirmod consequat aliquyam. Voluptua labore nulla et esse sea erat. Dolor aliquyam magna et stet vel consequat amet et eos rebum ipsum nostrud. Dolor ut magna duo eirmod iriure diam stet et et ea possim consetetur et. Dolor feugait ea diam ipsum exerci aliquam dolor et aliquyam elitr kasd dolore tation ea iusto commodo. Dolor sea et diam dignissim et liber gubergren labore gubergren et eos elitr diam dolore. Rebum vel lorem kasd kasd dolore et aliquyam gubergren eirmod erat erat sea magna velit feugiat.

Elit dolore sit augue lorem consetetur dolore nonumy kasd sed vel lorem et lorem. Et sadipscing dolore et vulputate labore et invidunt ipsum no enim sed ut qui. Et sanctus accusam stet velit et lorem esse at sanctus. Et dolor consetetur erat eum ipsum eros justo in rebum sanctus nisl erat vel facilisis. Ad duo accusam lorem eum vulputate et lorem ipsum diam no consequat elitr ipsum sea justo et stet. Nulla sadipscing at ea ipsum lorem aliquyam diam aliquyam lorem elit te. At et praesent duo takimata dolor duo ut aliquyam accusam aliquyam justo. Sea voluptua sanctus ullamcorper nobis vulputate dolores ea et ut. Ea sit et est nostrud volutpat at delenit vel. Nulla adipiscing duo diam ea ipsum doming doming sit accusam consetetur et rebum eirmod. Et nulla sed sadipscing id eos ipsum dolor at invidunt nam rebum vel consetetur.

Sample Output H4

Dolores labore et. Sea tempor minim amet diam hendrerit vulputate feugait. Ipsum praesent eirmod esse diam molestie sed in ut elitr et dignissim sadipscing sadipscing et sed amet dolor sit. At sed et option duo sit vel diam sit. Est invidunt amet facilisis doming ex erat duis. Takimata nulla tempor eu hendrerit. Et labore consetetur sadipscing elitr sed placerat dolore takimata nonumy stet labore ullamcorper.

Dolores dolor vel accusam invidunt aliquyam te. Et et no accusam clita sed. Facilisi enim vulputate et esse. Eros labore iusto diam adipiscing wisi eirmod tempor takimata justo stet nibh kasd nonumy sed hendrerit tation sanctus velit. Gubergren dolore eos eu sanctus dolore sea et consequat esse dolore invidunt eleifend. Sed duo gubergren option vero magna laoreet. Sea aliquam vel ut sit hendrerit sit duo kasd amet. Consetetur illum magna kasd nonumy molestie sit. Est odio ut sea iusto erat invidunt. No et takimata amet diam justo consequat lorem odio. Ipsum dolore vulputate eirmod consectetuer.

Sample Output H4

Id ullamcorper at sed takimata et et. Suscipit enim gubergren magna tation voluptua nihil dolore diam invidunt et tempor aliquam. At ipsum clita ut nonumy invidunt velit vero praesent nonumy sed. Clita vulputate kasd lorem ipsum diam sed voluptua vel tempor at duo kasd voluptua adipiscing sit eum. Eros sed elitr invidunt. Diam dolores dolore dolore erat illum dolore ea et sadipscing sed stet sanctus eos. Dolores nonummy sit mazim velit tempor eos amet dolor dolor. Sea dolor ea sit tempor diam diam elitr molestie eirmod et.

Sadipscing dolore est. Nulla sit clita dolor. Elitr lobortis magna erat wisi et amet lorem. Nisl blandit sed voluptua iusto sit id sanctus. Molestie dolore iusto dolor duis vel consequat lorem tempor. Lorem consequat sit labore in labore cum. Kasd no diam aliquyam dolor nibh consectetuer velit kasd soluta sit lorem et sed. Clita voluptua sit sit accumsan sea stet rebum ipsum consetetur at erat lorem. Ipsum consequat elitr justo est sanctus stet et sanctus vel. Justo kasd takimata magna lorem diam feugiat voluptua amet ut vero nulla dolore amet stet ipsum sed tempor molestie. Kasd eu sed no ea sea aliquyam ipsum et vero dolor lorem diam.

Sample Output H3

Dolor est vel lorem. Sit hendrerit tempor et amet takimata dolor. Cum no duo duis et magna et no dolore amet ea ullamcorper sea duo gubergren elitr. Lorem ipsum at diam invidunt sed ea. Dolor elitr lorem in at stet no stet facilisi.

Nonumy sit sit erat no augue et eirmod. Facilisis amet vel ipsum iriure praesent diam lorem diam gubergren rebum. Lorem consetetur et nonumy ipsum blandit laoreet. Takimata kasd luptatum aliquam justo tempor justo lorem est eirmod sit sea no. Et ad iriure dolor kasd. Suscipit sanctus vel sea amet rebum ut. Sed iriure nibh kasd at magna quis dolore dolore vero facilisis nonummy dolor justo lorem est accusam est.

Sample Output H4

Eos ut amet in takimata dolores at dolor ut tempor voluptua est sit duis at erat esse. Et vero sanctus labore et et vero dolor at justo sanctus in. Id sit quis et vero dolor invidunt lorem elitr sea exerci et. Amet feugait diam invidunt sadipscing sit ut suscipit in nibh labore aliquam in takimata. Tincidunt sadipscing eos sit amet nonumy dolore sea.

Dignissim labore soluta illum sed ea ipsum est eros duo labore elitr. Erat est sanctus dolore ipsum dolore amet duis et. Ut commodo ea ipsum clita accusam aliquip diam dolor eos takimata eos dolores dolore vero consequat aliquyam. Augue nulla takimata. Eos ipsum id elitr diam takimata sea est elitr nostrud sit iriure duo dolore voluptua. Lobortis nisl sadipscing diam magna ipsum dolore takimata tempor ut sea labore et no accusam ipsum dolore.

Sample Output H4

Imperdiet no tempor feugiat in et imperdiet illum aliquyam et eos duis sed vulputate labore ex. Ullamcorper aliquyam diam eu dignissim vulputate est nobis lorem suscipit dolore et iriure sit stet sit dolores ipsum. Gubergren et dolore consetetur lorem diam sit tempor rebum hendrerit dolores consectetuer nonumy. Kasd minim dolor stet odio elitr at dolore aliquyam te duis erat ipsum. Cum consetetur congue ut gubergren diam labore eirmod. Invidunt et nonumy duo ea. Sea et eos nibh dolore dolore justo gubergren labore dolor ullamcorper magna dolor elitr nonumy et. Elitr dolore dolor hendrerit amet vero et at gubergren. No dolores erat ad vero. Diam et nostrud esse labore. Ut adipiscing amet sea sed lorem consequat.

Et ipsum sed dolor invidunt ipsum consequat rebum eos sit diam enim nostrud. Consetetur elitr ipsum diam diam amet dignissim amet feugiat in ipsum takimata praesent est duo amet dolores et. Veniam at rebum dignissim dignissim eirmod in est elitr nonumy tempor aliquyam consetetur duis et in duo. Elitr kasd et ullamcorper iusto eum. Sed erat rebum magna sit. Wisi duis tempor dolor et erat accusam sed sea dolore sanctus consequat eos placerat tation at no diam molestie. Consequat no eirmod aliquyam. Lorem nonumy duis sea dolor. Sea clita et tempor invidunt sed sit at sea dolor labore et aliquyam. Clita adipiscing dolor kasd ipsum et eirmod. Dolor est et no ipsum sit magna vero eos accusam et et eu.