cloudformatter format requests: 2,604,837    pages delivered: 6,803,068

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

Quod sit wisi sed eu facilisis gubergren at labore erat. Ut labore feugiat eirmod tempor feugiat ipsum voluptua tincidunt sadipscing amet erat minim. Et amet sit dolore nulla facilisis takimata amet dolores sit rebum ipsum at eos lorem. Ipsum consequat eu. Gubergren euismod lorem dolore ut magna sit no invidunt ipsum consetetur gubergren lorem amet. Et sea kasd accumsan ea. Duo et consetetur eos nonumy et aliquyam voluptua ipsum sed ipsum. Lorem aliquip dolor dolor ipsum dolores sit dolore lorem stet rebum. Ad amet in aliquam sadipscing aliquyam tempor et erat voluptua sed diam no.

Diam et dolore ea at sed autem aliquam duo sanctus diam accumsan amet. Eu dolore vero amet laoreet elitr sed labore eu ea tation sed magna possim. Nostrud et tempor amet et sanctus praesent duo amet et dolores. Nam eos augue rebum. Exerci sed dolore tempor consequat at sanctus luptatum ea sanctus liber dolor.

Sample Output H3

Gubergren sadipscing sit sea invidunt elitr erat dolore takimata ea et aliquyam erat est. At duis et lorem labore ipsum aliquam elitr invidunt eos consetetur rebum euismod sadipscing. Dolor nonumy dolores sea takimata dolore est ipsum ut dolor amet diam ut labore ipsum. Aliquyam dolor elitr sea sed dolor quod vero ut suscipit ut duis labore. Nulla aliquam rebum vulputate dolores aliquip clita facer lorem ea invidunt vel vero dolore eos takimata sit at. Aliquip dolore stet clita sit et facilisis sit vulputate laoreet et est nisl rebum vel rebum et.

Amet vel diam dolore volutpat vulputate. Amet wisi clita ipsum iriure nostrud kasd iriure ut nulla delenit et erat dolores no. Diam duo dolore clita ipsum justo facilisi duo. Ipsum dolore sea at eos sea diam elit erat voluptua kasd ut amet voluptua dolor sadipscing kasd kasd. Duo veniam ad magna diam voluptua labore lobortis dolor diam sea eros takimata diam sanctus dolore rebum.

Sample Output H4

Sed aliquam tempor sit et diam commodo invidunt assum elitr rebum justo eirmod elitr lorem. Liber feugiat sit dolores. Ut clita tation ea accusam ut lorem takimata sit quis takimata diam velit sit lobortis. Vero gubergren diam kasd diam illum wisi gubergren no lorem ipsum nonummy diam clita ex stet invidunt takimata gubergren. Aliquyam ut duis dolore vel erat nulla consequat lorem erat commodo elitr hendrerit duo eum consequat. At at amet lorem dolor dolor duo dolore autem aliquyam doming stet clita est. Diam takimata sit velit ipsum duo dolores. Voluptua justo sanctus erat invidunt diam sit no ut dolores vel euismod magna no eu et no id sea. Lorem ipsum duo. At nulla vel ipsum blandit. Dolor sed exerci rebum vero vel ullamcorper wisi vero ipsum te accusam et sit kasd kasd dolor illum sed.

Amet euismod duo clita sed qui delenit est id facilisis et et wisi vero. Accusam dolores ut feugait no sadipscing et lorem. Sed voluptua lorem lorem stet sed labore at labore ut dolore magna possim ut sit. Amet gubergren duo ipsum sanctus veniam euismod eos blandit nonumy invidunt dolor ipsum no est sit et quis ut. Option ea elitr ad lorem elitr. Nonumy lobortis et consequat. Eirmod tincidunt rebum aliquip duis nonumy clita consectetuer qui magna. Eos sadipscing vero et elitr est labore ipsum. Eleifend sadipscing velit erat.

Sample Output H4

Gubergren invidunt velit amet labore adipiscing sea nisl no te sit. Nonummy eu ea eirmod. Ea ut dolor nonumy rebum justo elit soluta justo vero velit sit amet sed labore kasd. Nulla at no dolore magna amet sit sea sit elit dolor sit eros molestie elitr stet at. Sit dolores diam aliquyam sit diam labore rebum takimata blandit nisl enim justo kasd nisl eleifend. Elitr stet clita eirmod dolor. Ea facilisis takimata lorem ut in. Ut liber accusam vero et lorem et lorem. Qui duis et vero ea est et clita clita nibh. Luptatum lorem amet esse stet consetetur amet dolore sit sadipscing magna dolore et autem ipsum dolor feugait amet nonumy.

Duo et in dolore nonumy et dolor dolor te sit dolor facer praesent sadipscing dolores ullamcorper et. Facilisis amet ut ipsum zzril et et consetetur sed clita takimata consetetur amet magna et sed vel magna. Invidunt at vulputate magna nam at zzril ipsum kasd nonumy lorem invidunt. Tation ut sadipscing sed et et cum gubergren ut consetetur eum nonumy. Labore sit accusam justo at stet ut magna. Invidunt sea et nostrud iriure labore. Ut magna vero. Ut wisi illum eirmod. Sea diam imperdiet ea delenit aliquyam diam sed et sed. Dolore elitr augue sea sit erat amet ea dolore accusam diam eum justo duis dolore aliquyam.

Sample Output H3

Et luptatum kasd et nam duo ut takimata dolores ut aliquyam et clita takimata aliquip rebum praesent kasd. Amet at tempor eirmod qui sanctus et dolor magna diam ipsum consequat te velit consetetur adipiscing takimata elitr. Volutpat gubergren voluptua dolore stet at feugait nulla no vel sit suscipit iriure amet consetetur sed eirmod labore. Voluptua sea sit dolores. Erat commodo dolor at labore qui sea elitr facer consequat facilisis dolores esse eos sea erat at consetetur et. Consequat vulputate takimata eu dolores no est commodo dolore et eirmod nonumy dolor et. Rebum sed magna eum diam at ipsum ea consetetur nonumy sadipscing velit diam takimata enim. Dolores magna augue dolor dolore facilisi lorem aliquyam voluptua rebum at consetetur sea stet. Facer amet dolores consetetur tempor consetetur.

Clita et laoreet autem sed vero ipsum et voluptua delenit. Accusam no dolore accusam. Sea aliquam qui vel gubergren amet gubergren eros rebum. Accusam tation eos ea magna diam dolor in amet duo lorem consetetur. Sanctus placerat duis lorem aliquyam facilisis. Amet nostrud sit. Consequat zzril sadipscing clita sit stet et lorem et consetetur ipsum amet.

Sample Output H4

Duo quis eirmod accusam kasd volutpat et ea diam quis erat tation dolor erat sit et in clita clita. At option dolor possim diam molestie dolore amet no et ipsum dolore. Tempor nonummy ea iusto dolore sadipscing eum labore nisl. Veniam wisi exerci kasd in. Amet vero diam ut. Sit duo rebum ipsum ipsum diam at dolore. Kasd at aliquip et ea et ut amet stet ex duo vel et at. Accusam erat te dolores ipsum stet gubergren autem consetetur stet aliquip diam aliquam. Aliquam sed erat amet sit voluptua lorem. Hendrerit aliquyam vel augue sit exerci tempor dolore dolore eu sed rebum diam vero dolores sea. Facilisis qui clita vero takimata sit dolor elit.

Et justo nisl velit sit imperdiet dolor sea magna iriure justo praesent duis consetetur facilisis magna at erat. Stet commodo feugiat quis in at elitr ut consetetur et ut. Rebum tempor ipsum dolore ipsum nihil nonumy nonumy esse vero lorem molestie sit labore accumsan invidunt justo nostrud at. Justo sed magna. Diam sea stet nulla feugait justo gubergren at aliquyam. Takimata zzril magna feugiat et ipsum justo vel et tincidunt duis consetetur. Sanctus dolor diam. Sit at no labore invidunt nonumy diam consetetur nonumy sit. Enim zzril consequat vero sanctus sit voluptua sadipscing et ullamcorper et est qui sanctus takimata facilisi sit aliquyam. Sanctus duis diam et. Sit adipiscing est et ut accusam ut voluptua justo sed duo.

Sample Output H4

Vulputate eirmod aliquyam aliquyam no dolores lorem et ipsum nibh kasd veniam et consetetur rebum ullamcorper vero wisi voluptua. Justo vero takimata vero erat esse gubergren accumsan lorem tempor consetetur eirmod praesent veniam diam. Dolor voluptua tempor dolore magna facilisi et sanctus sadipscing sea vel sit et in voluptua dolor hendrerit lorem sea. Dolore takimata sed mazim erat sadipscing vel gubergren et. Stet ipsum magna sanctus lobortis commodo kasd magna eirmod aliquyam laoreet. Lorem sed diam et qui ea kasd option eum nihil nam iusto diam amet enim clita ipsum eirmod. Amet aliquip sit. Takimata et zzril labore quod.

Lorem duis at magna laoreet lorem nobis vel et consequat sanctus et sit ut aliquyam sit sanctus feugait. Lorem volutpat sit. Nibh ea commodo labore labore ipsum lorem magna dolore eu quod eos. Eum sit eirmod ipsum eu. Vel tempor vero lorem est eu diam lobortis accusam sadipscing feugait et amet. Justo duo illum sed ea erat ex dignissim est et nonumy labore lorem.

More Sample Output H2

Et est zzril hendrerit erat tempor tempor rebum zzril sadipscing et takimata. Eleifend ullamcorper vero ipsum sadipscing et nam erat magna diam eirmod. Vero clita et hendrerit. Dolores at takimata ut sanctus nonumy. Stet et clita dolor ex. Justo in kasd diam et dolores diam sed amet et adipiscing sadipscing ut sed diam diam takimata euismod lorem. Et et dolore et invidunt doming dolores et ipsum vero et suscipit id erat elitr dolor erat. Sadipscing ipsum amet tempor. Et amet voluptua et iriure labore ut nonummy. Magna consequat dolore sed nonummy sed consectetuer eum amet quis accusam. Eos diam elit takimata tempor veniam gubergren tincidunt diam sanctus sed ut duo diam eirmod ipsum vulputate aliquam.

Kasd ut ut ipsum magna aliquyam esse accusam et duo ipsum. Autem dolor eos et sea rebum nulla. At takimata eos at liber sit consetetur ex invidunt accusam qui dolor ut. Dolor sit ipsum consequat voluptua sea diam dolor elitr ipsum sea dolor velit sit lorem. Tempor at erat ea hendrerit accusam duis et quis. Justo eirmod dolores.

Sample Output H3

Ut ipsum vel sanctus voluptua enim ullamcorper velit consectetuer. Et ipsum eum luptatum ipsum diam elitr dolor ut dolores in gubergren sit quis. Dolor et voluptua sed eirmod nonumy aliquam duis sed eos. Elitr iriure diam at sit tempor rebum est accusam sanctus justo dolores takimata vero diam vero et sed. Ipsum invidunt magna et hendrerit. Amet sed commodo et erat accusam kasd in lorem.

Tempor id eirmod placerat est sea sadipscing invidunt labore cum et illum amet ea at dolores. Est ipsum clita clita soluta commodo. Laoreet rebum commodo ipsum ut. Ut hendrerit eirmod iriure erat accusam vulputate lorem consectetuer quis iusto magna sadipscing elitr. Ipsum eirmod takimata sed ipsum labore eirmod dolor at ipsum cum. At justo diam euismod justo amet sed diam sanctus duis ea clita aliquam amet autem eos accumsan facilisi. No takimata duo vero doming sed eros eleifend sea in nibh adipiscing. Justo et luptatum.

Sample Output H4

Nonumy duo zzril ut rebum invidunt justo velit amet ut no tation lorem dolor. Accusam amet lobortis laoreet augue nostrud. Nihil elit soluta sea luptatum et ullamcorper sadipscing gubergren facilisis ea option velit vero feugiat laoreet. Dolore est et et ut iriure amet nonumy nonumy at volutpat facilisi dolor diam praesent. Sed molestie dolores lorem vulputate aliquip et sit. Magna rebum elitr duis est sed feugait qui ipsum. Nostrud est ipsum ad elitr blandit ea diam accusam ut. Feugait eirmod vel invidunt id magna zzril in nisl. Labore facer clita ipsum erat nibh vero labore labore clita eirmod.

Sadipscing eos consetetur sadipscing at dolore in sanctus eu ea labore eos euismod. Stet eu no no diam. Dolor accumsan duo invidunt. Stet voluptua amet no eirmod accumsan vel et dolor diam stet ex sanctus diam. Rebum ut ipsum at sed erat odio ad quis velit. Invidunt kasd hendrerit ea consequat exerci no dolore duis sanctus id justo ad facilisi est sit. Esse amet sed feugiat justo dolor dolore clita et voluptua sed aliquyam quis diam ipsum lorem aliquyam ullamcorper molestie.

Sample Output H4

Molestie et iriure aliquyam sed assum vulputate et lobortis sit dolor sed lorem sed eros gubergren. Gubergren eros no sanctus ea eos sit magna invidunt duis elitr elit. Invidunt blandit accusam clita dolor clita suscipit justo in stet stet vel. Sea duis soluta eos ex tincidunt. Qui nonumy kasd lorem duis et et lorem no. Sadipscing amet amet. Dolore velit takimata dolore diam congue invidunt no euismod facilisis ea ullamcorper ut tincidunt ipsum duo. Amet consequat sed rebum sit facilisi esse stet nihil et rebum nostrud duis et duo. Accumsan dolore gubergren dolor gubergren vero erat lorem veniam sed kasd nonumy at. Sit dolor sed facilisis ipsum clita gubergren consetetur invidunt et in dolore consequat euismod nostrud praesent hendrerit sea dolor.

Stet elitr elitr aliquyam possim est. Et eirmod gubergren duis eirmod quis et. Blandit accusam et diam est no at diam est ipsum diam justo consetetur sadipscing sanctus takimata tation erat. Eirmod duis praesent duis nibh nibh vulputate et tempor vulputate consetetur et invidunt feugait lorem. Odio ut sea. Wisi nam ea lorem takimata duis invidunt at eu voluptua ipsum ut gubergren ut magna. Sit voluptua dolore augue dolore elitr in sanctus kasd dolores diam no rebum. Ut eirmod cum laoreet. Sit diam rebum nostrud rebum vulputate nulla.

Sample Output H3

Lorem no rebum consequat sed dolores lorem molestie lorem sed. Vero duo tincidunt sadipscing. Iusto diam dolore dolor sea rebum sit ut in ea consectetuer liber vel dolor sea ea aliquyam. Duo dolor erat eirmod. Ipsum consetetur vel ut at nulla liber lorem est et. Gubergren delenit ea voluptua accusam iusto sed sea no rebum amet stet sit consequat. Takimata diam sea vero sed lobortis duo vel dolore in takimata aliquyam elitr voluptua ut. Nonummy ut rebum sed minim.

Facilisi aliquyam gubergren erat eos. Lorem ex et dolore eirmod est erat diam aliquyam feugiat sit sed et tempor ipsum. Sea amet dolore. Dolor ex sed vero amet sea sed laoreet qui nibh dolore et consetetur. Et elitr vero et lorem dolor facilisi at nobis laoreet praesent lorem elitr magna magna hendrerit. Consetetur sit augue at stet et no lorem aliquyam rebum dolore diam. Imperdiet diam luptatum dolor ipsum diam nulla gubergren nonummy erat erat dolore. Molestie magna sit ut gubergren ipsum diam vero nisl eu aliquyam erat possim justo zzril erat at ut. Nisl dolore erat clita dolor autem kasd sadipscing labore dolor congue dolores elitr et gubergren cum et in at.

Sample Output H4

Stet clita nonumy gubergren sit illum delenit sed. Dolore ut est. Justo et exerci sit duis nonumy ipsum tincidunt. Diam no stet eirmod. Erat ut autem vero. Esse stet sed et nonumy soluta eleifend kasd ipsum ipsum sed illum sadipscing sit. Lorem nonumy amet sea erat nonumy iusto amet aliquam labore magna et clita dolore aliquam.

Vero no dolor et diam sit ea in stet erat amet. Ipsum te et dolores commodo accumsan eos accusam amet. Dolor magna dolores facer invidunt elitr tempor sit accusam vel aliquyam mazim kasd soluta kasd erat. Nonumy no ea dolores gubergren accusam nonumy ad elitr consequat lorem aliquyam sit. Sit erat erat dolores lorem sea sanctus. Diam in sadipscing sea eirmod erat nonumy amet feugiat sanctus aliquam dolore ipsum elit aliquam sed diam gubergren sed.

Sample Output H4

In odio iriure et sit nonummy at illum adipiscing diam. Et at dolore elitr facilisi sit et gubergren accusam sadipscing justo quod mazim dolor tempor lorem elitr sit accusam. Aliquyam consectetuer et invidunt ut amet esse tempor sed nobis amet dolor ea commodo. Sed autem no lobortis iriure sed duo magna lorem iusto stet amet dolor hendrerit ut. Nibh ad luptatum sed takimata lorem eum ullamcorper takimata.

Amet et facer et vero diam te lorem vero. Magna gubergren dolore clita clita. Dolor et amet suscipit duis takimata aliquyam takimata dolor duo dolore lorem vero duo sea vel zzril wisi. Luptatum stet vel tempor gubergren ut sed diam accumsan. Lorem labore erat amet tempor dolores duis takimata tincidunt justo aliquyam diam amet. Sadipscing ipsum odio elitr suscipit lorem ea consetetur. Eirmod et diam clita lorem diam erat ut. Diam eros ipsum labore consectetuer nulla clita aliquam. Lorem eirmod duis diam voluptua lorem sit amet nonummy et invidunt magna ut eum sadipscing sed ullamcorper et aliquam. Nulla dolores stet et consequat blandit sanctus vero takimata ea.