cloudformatter format requests: 1,570,582    pages delivered: 4,134,405

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 clita eos erat tempor et sadipscing nam magna lorem sed rebum nulla lorem clita sea erat duis. Sed kasd sea aliquyam rebum sed at lorem justo. Et clita amet dolores ipsum magna feugait lorem vero et magna accusam kasd dolor gubergren. Sadipscing dolore vero labore eirmod et eos amet at et accusam consequat sadipscing ex sea duo. Clita ea nihil. Dolor consetetur invidunt accusam est sanctus nulla accusam justo. Rebum clita amet aliquip sadipscing in sit illum justo dolor aliquam nonumy et no. Gubergren elitr hendrerit dolor. Nostrud eos qui. Sit iusto diam adipiscing ut sea et vero sed luptatum. Sit tincidunt sit duo sit sea nonumy delenit dolores ea vero clita magna clita kasd vel eirmod vero accusam.

Consetetur tempor eos et ipsum ipsum erat sea accusam. Amet ut sit nonumy aliquip duis elitr sit nulla volutpat. Ipsum ex lobortis dolor eos et at. Diam amet sanctus elitr voluptua vel vero vero clita gubergren est. Sanctus stet assum sanctus augue. Eos euismod clita.

Sample Output H3

Stet eirmod ipsum. Est amet doming erat et lobortis. Commodo dolor diam et no iriure sed et. Diam lorem voluptua et diam kasd erat magna sadipscing sit eum consetetur et diam sadipscing est. Ut et eos vel aliquyam dolore tempor in duis consetetur nonumy diam. Clita dolores dolor duo et feugait sit consequat vel sadipscing est wisi molestie tempor kasd justo. Ad sit labore sit.

Option facilisis dolore consequat et lorem clita duo sanctus sed eos nisl amet aliquyam. Amet et feugiat diam lorem voluptua justo et nulla sit voluptua elitr duo. Sadipscing sanctus ipsum dolor voluptua gubergren esse est consetetur iusto amet elitr voluptua dolore vero. Ut adipiscing diam assum molestie clita at. Gubergren vel illum nostrud dolor et ipsum erat quod lorem rebum. Justo sit justo rebum. Nulla diam odio in nibh sit nisl veniam at. Quis ipsum lorem quis ea ea clita sea ad invidunt dolor lorem diam elitr est ipsum est dignissim facer. Sit lorem voluptua dolor stet nam ex vel ea diam. Amet ut labore. Voluptua nonumy rebum ad.

Sample Output H4

Sadipscing sanctus sea et suscipit. Dolor ut euismod rebum et vero et zzril kasd et sit dolor sea dolor vero. Magna sea sit congue consetetur est sed assum elitr ipsum accusam. Sea eum elit congue ut consetetur diam lorem. Sit consetetur iusto. Ipsum eros wisi et et eos et et in at ipsum accusam sanctus ipsum. Takimata sed et. Volutpat ad voluptua. Vero vel ut consequat sed in eleifend option. Nibh elitr feugait euismod erat tempor. Aliquyam ea in justo justo magna vero vel sed dolor elitr et sed rebum invidunt diam diam at.

Et no magna hendrerit eirmod eum esse sed elit in eirmod clita tempor dolor amet accusam. Ullamcorper sit dolor lorem ut dolor nostrud amet eu volutpat consectetuer dolor ea feugiat ex ipsum justo aliquyam esse. Sit magna voluptua tation dolor tempor dolore rebum aliquyam ipsum consequat stet. Ipsum in sea facilisis dolore. Dolores tempor possim takimata et ipsum consequat dolor sit quis dolor ut et. Consequat vero tincidunt et volutpat invidunt ipsum consetetur augue accusam ut accusam laoreet iriure. Elitr gubergren sea diam lorem erat dolore eu. Lorem et amet duo ipsum clita. Erat labore dolores sed nulla ea ut consetetur erat doming nulla magna. Aliquam dolor lorem et et est duo tempor. Clita in ipsum duis.

Sample Output H4

Clita ut magna sea clita esse eos tempor ut ea sit diam diam rebum no no sed. Kasd tempor invidunt elitr dolore sed ipsum aliquip et ipsum et elitr takimata. Labore ea magna kasd wisi dolor amet et et ea dolor invidunt euismod diam gubergren sanctus et. Minim sit et augue vel esse dolore dolor gubergren kasd dolor et duis dolor aliquyam dolor voluptua. Et dolor clita kasd dolore augue tempor et nihil delenit volutpat est elitr kasd no et dolore kasd et. Nulla quis sea nostrud facilisis duo rebum takimata.

Takimata lorem amet ipsum in at vero eirmod aliquyam tempor laoreet eirmod elitr. Ipsum eirmod et sed et nulla invidunt. Sadipscing accusam amet et nonumy elit ut dolore duis aliquyam tempor dolore facilisi blandit lorem exerci qui. Erat sea aliquyam lorem aliquyam erat justo tempor consetetur molestie. Eos sed dolor elit accusam euismod sed ipsum labore dignissim voluptua dolor. Nam te stet no lorem vel ipsum sadipscing et sit invidunt duis nonumy. Gubergren justo labore ipsum vero et tempor eros nonumy dolores ut consectetuer sadipscing vero nostrud. Stet et sanctus volutpat dolore lorem. Feugait tempor nulla ut tempor sit nulla dolore labore commodo kasd et aliquyam feugiat duo vel invidunt.

Sample Output H3

Odio nulla at. Tincidunt diam option accusam vulputate kasd sed odio ad takimata labore duis. Et ipsum dolores in lorem magna consequat ut kasd ipsum autem nonumy enim duo et. Feugiat consectetuer nonumy ut vero magna dolore ut commodo et accusam. Amet dolore rebum sit labore justo duo esse.

At dolore facilisi dolor dolore nonumy dolores lorem eos dolor eirmod et invidunt mazim augue sit. Ut iriure elit sea tempor kasd. Nonumy clita eros. Diam amet amet ea duis. Sed est sed diam ipsum sit lorem amet lorem eos eos augue congue. Sit nam sed labore magna magna clita ea ut eu.

Sample Output H4

Magna ea consetetur eum ut takimata lobortis. Dolor vero erat autem invidunt in ut kasd. Eirmod magna no feugiat eirmod aliquam eu dolores et amet ea dolore diam sit magna sit rebum. Nonumy suscipit dolore accumsan ad sadipscing tempor eirmod nibh. Facilisis ipsum suscipit et sit et dolor stet amet eos gubergren rebum stet euismod sit in diam magna. Mazim diam sit hendrerit ipsum dolor vero hendrerit dolore ipsum dolore te amet elitr tincidunt sanctus ut. Sed dolore at zzril justo sit sanctus eu eum sadipscing elitr. Voluptua lorem lorem sit labore vel dolore ut nisl invidunt id sit. Sadipscing ea sit consetetur accusam ipsum takimata ea magna dolore vel ut elitr ut amet velit placerat. Dolore ea no diam erat lorem lorem no takimata et nibh lorem sanctus ut.

No et in invidunt eos nonumy nisl tation amet sanctus. Amet sadipscing dolor. Eirmod ea nonummy ad dolore consetetur et accumsan sadipscing possim. Duis illum est sea sadipscing amet in no gubergren kasd nulla sanctus. Elitr erat et dolore et et nonummy ea sed justo in vulputate duis diam eu. Clita euismod justo delenit vero minim justo tempor ex delenit accusam lobortis clita at. Rebum ut voluptua et amet takimata amet. Gubergren stet nihil est ea vel magna nulla eu consetetur gubergren. Duo takimata sed nostrud. Kasd labore ipsum elitr kasd vero lorem dolore gubergren sanctus. Sed dolores vel imperdiet sed voluptua gubergren soluta magna sea et et et labore tation kasd dolor sea.

Sample Output H4

Sit vero at et nulla clita kasd lorem eirmod id eos sanctus et eos ut veniam nibh dolore et. Ipsum ut eu diam. At dolore sea. Nonummy sit lorem duis est magna feugiat sadipscing accumsan tempor eros et at augue suscipit. Et eirmod tincidunt eu amet minim assum sed vel tincidunt. Amet consequat illum erat est erat aliquyam et eum duo. Et sadipscing elitr justo accusam amet kasd voluptua qui nibh sed iusto placerat at eos.

Et adipiscing sed ea dolore ex vel at diam sea et clita ea stet clita luptatum voluptua. Molestie lorem delenit te consetetur erat sea vero dolore duo ipsum diam et luptatum nulla sadipscing sea. Est elitr ut. Et erat aliquyam tempor nonumy dolore eirmod elitr et sanctus. Tempor eirmod gubergren est accusam tempor duo sanctus consequat molestie dolore gubergren stet.

More Sample Output H2

Dignissim suscipit gubergren amet sit et dolore. Sit dignissim facilisis in. Doming dignissim exerci dolor elitr. Et vero gubergren nam accusam. Invidunt tempor invidunt invidunt placerat justo duo et sit nostrud. Dolore dolores euismod dolore esse clita rebum. Te eum sed diam magna dolor. Duo dolores et. Accusam ipsum nonumy.

Dolor duis sed ipsum. Doming takimata nulla et tempor voluptua consequat vel vel. Consequat justo molestie erat dolor no eros. Facilisi dolore sit ut sit voluptua sed ut consetetur quis illum dolor sed et eum duo ea est in. Consetetur tempor erat tempor lobortis duo rebum ipsum kasd. Vero qui diam facilisi aliquip sed luptatum amet. Diam tincidunt dolor et consetetur. Sit sed facilisis in tempor ea elitr.

Sample Output H3

Kasd et dolores. Nulla vel elitr accusam suscipit consequat et lorem nonumy ut assum ea velit. Lorem dolor dolores hendrerit est labore takimata facilisi. Vel feugait et dolor dolor delenit takimata nulla magna iriure justo. Nonumy amet accusam minim amet kasd congue consequat vulputate sed.

Exerci sadipscing qui rebum ipsum et dolore exerci sea sadipscing sea clita et diam et justo accusam et. Dignissim dolores eos dolor in sit lorem accusam hendrerit tempor accusam. Euismod ea tation volutpat iriure. Sit sanctus ea. Kasd sea stet tempor in eu sit consetetur aliquyam zzril duo soluta ut. Assum eirmod sed dolores lorem amet velit magna invidunt justo consequat feugiat id commodo eos vero no amet mazim. Nonumy elit ad laoreet dolore justo sea autem stet vero ut diam esse ullamcorper dolore gubergren. Erat vero accusam hendrerit veniam eirmod eos vulputate sed ut aliquyam accusam magna et facilisi gubergren in eum est. At ea ea liber voluptua justo amet in accusam. Eirmod aliquam delenit.

Sample Output H4

Tempor laoreet delenit feugait duis sea vel hendrerit labore amet nonummy exerci soluta. Dolores ea et sea diam feugait rebum nonumy consequat ut eum voluptua lorem tempor invidunt dolor euismod. Amet elitr tempor ullamcorper vero et diam takimata tincidunt iusto ut kasd luptatum. Sanctus no est nulla dolor elitr accusam lorem ut dolore. Ipsum clita accusam ut erat iusto tempor molestie tempor elitr kasd quod at consetetur lorem et consequat magna. Ut eos lorem duo rebum consetetur et erat aliquam et tempor sit sea sanctus. Voluptua consetetur vero dolor eirmod sit ipsum voluptua dolore stet duo et. Eos no no duo dolores no feugait dolores. Amet takimata sed sit nonummy ipsum ea amet sed lorem tempor gubergren blandit sed iriure ut praesent.

Dolor in magna sit erat in aliquyam et clita dolor consequat ipsum vel dolor nostrud lorem. Et tempor dolor clita clita elit eu stet augue aliquip augue ex delenit et duo. Erat et euismod rebum gubergren amet. Vel diam dolor ipsum voluptua diam. Hendrerit sanctus erat sed dolor elit et dolor ut sea. Et dolore nonumy duo sadipscing dolore invidunt et aliquyam erat vel et ut. Sed magna consetetur labore gubergren dolore ipsum nulla sanctus accumsan takimata odio lorem et tempor. Et invidunt consequat. Voluptua praesent et dolore soluta possim sit sea.

Sample Output H4

Nonumy eos minim tempor accusam amet nonumy clita at id gubergren no. Lorem consetetur nisl sed autem sanctus sit sea eum. Et magna dolore commodo et sit in invidunt voluptua praesent imperdiet rebum et no labore labore. Amet euismod dolore diam erat consequat vero ipsum invidunt sit. Diam lorem aliquyam accusam ad vero est est nonummy dolor accumsan. Ut exerci dolor hendrerit dolore ut dolore nihil consetetur aliquyam lorem amet dolor sit accusam clita quis nobis clita. Lobortis voluptua eos voluptua consequat at vel takimata diam clita eirmod justo nonumy enim. Amet tempor no elitr luptatum iriure duo enim dolores sed aliquyam vero feugiat facilisi clita diam aliquyam diam. Euismod euismod invidunt veniam diam takimata eirmod lobortis consetetur ex ut invidunt iriure veniam kasd. Vero justo quis aliquyam est tempor tempor suscipit volutpat accusam sit et labore at. No erat erat elitr aliquyam nobis elitr dignissim ut nostrud tempor vero duo voluptua elitr invidunt feugiat.

Tempor sed esse at est nonumy ut duis ipsum dolor sanctus eos accusam. Ipsum wisi sanctus commodo ut ea sit et amet voluptua nobis dolores stet. Nonumy voluptua consequat placerat sit kasd tempor iriure nonumy justo facilisi consequat consetetur sit kasd invidunt sed vulputate. Esse lorem nibh esse ipsum. Nonumy iusto est at.

Sample Output H3

Assum voluptua sed lorem et luptatum et voluptua kasd vel soluta rebum liber no dolor suscipit lorem et sed. Gubergren sit takimata voluptua ipsum suscipit sit consequat in takimata et eos sadipscing elitr ipsum sed qui. Nonumy justo erat nulla takimata et clita dolor aliquyam eum. Labore esse enim hendrerit amet dolores lorem duo est eleifend dolore lorem eum invidunt erat lorem aliquyam. Dolor takimata sadipscing sit dolor labore erat duo magna consetetur et ut euismod dolor takimata molestie takimata. Consequat aliquyam consetetur elitr illum sed zzril et. Assum labore facilisis et at sanctus voluptua commodo. Dolor et suscipit illum facilisis zzril ut sadipscing. Justo voluptua esse elitr erat rebum ipsum et duo consetetur et takimata et tempor invidunt voluptua no. Dignissim at no erat lorem diam sanctus lorem accumsan rebum lorem sit clita accusam.

Nonummy diam eirmod dolor consequat amet dolores gubergren sanctus et nulla sed eum sit lorem elitr nonumy. Duo ut voluptua diam iriure veniam invidunt accumsan assum nonumy duo labore zzril. Et diam at amet diam erat congue. Sea lorem eos et enim dolor amet quis sadipscing et nonummy stet takimata sanctus dolores. Rebum id consetetur dolor clita sanctus elitr vulputate sit magna quis. Dolor no lorem diam amet aliquyam sed diam. Rebum dolor eros elit at amet kasd assum dolor feugait gubergren eos labore magna dolor. Dolor iriure nulla takimata sit et eu magna takimata vero labore volutpat nisl stet voluptua. Diam sed dolor nihil.

Sample Output H4

Tempor et duis ipsum congue eos duo sed et. Gubergren sadipscing dolores nam illum ipsum lorem dolor et iriure vero amet kasd vulputate ut dolore dolore. Labore tincidunt erat magna. Dolores tempor et. Ipsum esse gubergren stet accumsan lorem takimata quis te quis eirmod ea suscipit et eirmod rebum. Quis invidunt est vero justo vero eos invidunt. Sed eos erat clita duis ipsum lorem diam ut kasd. Consectetuer labore eum. Ipsum iriure kasd stet esse eum ut sed duo labore et praesent sed dolor aliquyam.

Voluptua gubergren diam. Adipiscing autem rebum invidunt et erat in diam sed amet diam. Dolores iriure id stet kasd magna ipsum eros at kasd ullamcorper sea ipsum et sea eos. Ut takimata diam dignissim iriure luptatum consetetur dolor diam justo sit dolor rebum voluptua consetetur ea. Gubergren facilisi ut delenit voluptua accumsan sed duo dolor dignissim eirmod dolore dolore. Dignissim duo elitr nonumy odio invidunt lobortis est consetetur luptatum et et sit volutpat. Diam ut wisi.

Sample Output H4

Kasd dolor lorem lobortis gubergren dolore et est at magna est at consetetur takimata minim te et nam sanctus. Eos accumsan clita justo ipsum dolor eos liber sit no esse iriure wisi takimata ut. Ipsum sanctus sit eirmod ipsum lorem vero rebum kasd quod eirmod. Sanctus sed est nihil no magna dolor suscipit justo. Nisl lorem dolor dolor lorem ut. Dolore voluptua tempor placerat sit stet duis gubergren. No at clita ipsum sea justo vulputate nihil option gubergren laoreet. Et dolore sanctus nulla. Augue adipiscing magna rebum tincidunt consetetur elitr ut commodo eu sit ipsum no erat suscipit eirmod. Facer kasd hendrerit et vero dolores feugait dolor dolor consetetur.

Ipsum diam magna voluptua amet blandit amet. Nonumy ut aliquyam et stet at placerat possim autem. Luptatum duo amet eos consetetur rebum eos lorem. Sit et et ut sit. Diam ea possim et sea no dolor est nonummy. Odio elit erat clita et voluptua lorem qui elitr kasd no elitr voluptua labore. Sit amet eu dolore tation. Sadipscing sed gubergren suscipit aliquyam dolor vel labore vel sanctus nulla elitr velit takimata et justo veniam qui tincidunt. Feugiat dolor no.