cloudformatter format requests: 1,158,028    pages delivered: 2,986,019

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

Nisl sit sed ea ut rebum lorem ipsum sanctus vero dolore dolore no vulputate lorem justo. Hendrerit et veniam takimata est dolor sadipscing accusam dolor nonumy amet eirmod nulla dolore erat consetetur. Dolores voluptua ut. Consequat accusam erat sit nisl diam ipsum dolores et autem magna velit doming diam sit. Rebum invidunt ipsum autem amet eirmod et et euismod adipiscing. Eos nonumy erat volutpat nonumy et magna no rebum sadipscing clita eu. Amet ipsum tation invidunt enim dolor. Lorem erat sea justo amet dolore tempor sed no sit sit velit voluptua ut duis erat. Stet ut ut veniam sed liber nulla ipsum ipsum et ipsum hendrerit vero ipsum. Sed clita odio rebum. Clita lorem minim dolor laoreet accusam.

Quod tation sed aliquyam. Dolores diam tempor et tincidunt sanctus stet amet et vel eos gubergren vel ea. Tempor id vel ipsum ut duo et sadipscing ea liber sadipscing minim stet tation nulla magna consequat. Ipsum erat at et in eirmod et sit no amet. Nonumy autem tempor nonumy sed kasd lorem et sadipscing. Accusam amet duo nisl augue dolore exerci tation voluptua exerci dolores suscipit et dolore invidunt. Et dolor no consequat labore sea possim tempor no sanctus nonumy aliquam sit ea. Possim diam erat rebum sed facilisis consequat consetetur at lorem at labore. Takimata feugiat nonumy ipsum. Eos iriure dolor et kasd.

Sample Output H3

Kasd ipsum stet takimata sadipscing nonumy wisi gubergren aliquyam diam dolor stet justo. At nobis no nisl kasd sea at ea clita sed dolores sit ut sanctus et dolore velit erat et. Duo nonumy qui tempor eirmod ea euismod. Sea illum commodo autem odio. Ipsum erat eirmod erat option. Ullamcorper sadipscing ut ut vulputate eros lorem no diam ad nonumy justo sadipscing invidunt nonumy delenit. Et et dolor. Ipsum gubergren ea congue facer clita nonumy sea sed consetetur facilisis ipsum sit erat vero. Amet aliquyam lorem iriure magna et diam elitr voluptua invidunt ut est ipsum dolore et sed nisl est. Dolores dignissim est labore quis ea vel lorem sanctus feugiat vero. Sea et lobortis magna quis commodo justo at justo blandit sea eos aliquyam at ut.

Amet lorem amet amet et at vero ad. Diam illum amet wisi lorem kasd dolores elitr sed diam ipsum dolores dolore vel labore sed dolores. Vel dolore erat sit aliquyam. Hendrerit diam kasd erat rebum et nulla aliquyam. Ipsum accusam eirmod diam erat facilisis et eirmod. Adipiscing consetetur sed exerci hendrerit consectetuer kasd dolores sea et vero feugiat gubergren voluptua. Accusam aliquyam exerci ad sanctus erat facilisis amet qui ipsum gubergren diam sit labore. Accusam sit consetetur nobis invidunt ut. Diam iusto zzril duo et no dolore invidunt est magna sit nisl. Aliquyam dolor et zzril volutpat. Sed dolore dolor erat nostrud et ea in suscipit amet dolor zzril eos ea nonummy invidunt est ipsum.

Sample Output H4

Odio dolores sit sadipscing et ea sea diam autem et sit. Ut ipsum sea invidunt commodo at takimata dolore nostrud ut duis sed diam amet et et kasd. Dolor duo autem sit. Eu accusam lorem et dolor diam takimata dolor velit gubergren suscipit. Eros eos no tempor amet elitr dolor lorem. Accusam no sanctus erat kasd et dolore mazim et ad commodo ut veniam augue zzril consetetur. Illum sea eirmod nonumy kasd dolore. Ut dolore duo invidunt et ut diam mazim. Magna facilisi sit ipsum ipsum et consetetur consetetur iusto augue erat takimata nulla dolor vel consetetur veniam. Aliquyam consetetur esse magna kasd sadipscing sanctus nonumy luptatum ea.

Tempor vulputate no tempor et diam justo dolor takimata ipsum sed. Consequat ea ipsum nisl nonumy autem hendrerit elitr laoreet clita minim congue nibh eirmod. Molestie justo quod aliquip aliquyam dolor amet. Facilisi dolor nulla sed lorem at lorem eros dolore et sed. Rebum invidunt vulputate diam dolor diam tation est sit at diam sadipscing amet clita. Diam et vel vulputate ipsum nam eirmod ea accumsan rebum et justo et ut euismod.

Sample Output H4

Possim et kasd ipsum ipsum diam lorem nonumy vulputate sed in eu tempor ex eu. No accusam sadipscing duo. Sadipscing in nibh no magna. Ut duo vero feugiat. Gubergren sed erat et dolor dolor aliquyam sit et autem elitr wisi dolor dolore sanctus stet dolor magna. Invidunt esse ea gubergren consequat sed vulputate eirmod dolores kasd no odio labore sadipscing ut et. Erat volutpat iriure takimata hendrerit ipsum dolor erat illum dolor erat diam id stet dolores odio dolores. Vulputate amet lorem vero at sed consectetuer vel ea ipsum elitr sea eos.

Consetetur ut ut vel dolores dolor diam rebum dolore at. Erat sed eos. Consequat sit et erat erat kasd sanctus velit in eos eum amet ad. Clita voluptua diam dolore. Amet sed magna et sit qui diam ipsum vel. Dolor clita est eos eirmod et elitr et consetetur duo illum ea. Sed sit facilisi duis vero ipsum kasd sit eirmod duis nihil dolor. Ut aliquyam dolore consetetur eros rebum exerci gubergren te clita nonumy et.

Sample Output H3

Sed sit sit consequat et labore amet lorem sea tempor est minim et dolore. Gubergren amet sea ex dolores sea stet diam et facilisi consequat. Lorem aliquip labore cum at sit ipsum soluta amet elitr rebum adipiscing sea tempor vero. Eirmod est et magna invidunt duis consectetuer sed rebum possim iriure eirmod et placerat clita in no kasd no. Eos et autem sed aliquyam eos tincidunt dolores magna amet sadipscing aliquyam rebum nonumy velit. Eum ipsum dolore esse et takimata. Nonumy sadipscing elit invidunt sed erat voluptua dolor sit hendrerit vero lorem et euismod lorem sit. Accusam dolore et et sit. Eos voluptua dolor labore gubergren nulla sea ullamcorper suscipit dolores. Sanctus ut magna invidunt labore esse lorem elitr sit voluptua nonumy.

Ut nonumy possim accusam ad et rebum et sadipscing ea voluptua consetetur. Sit eirmod euismod nonumy dolore justo dolore minim voluptua justo justo sed nam. Sed diam illum. Labore esse consequat ipsum consetetur et est sadipscing eos ipsum lorem ad est nonumy. No vero sed eirmod vero invidunt et feugait sea stet lorem qui eum kasd eirmod molestie elitr no.

Sample Output H4

Sed sed magna amet suscipit. Nonumy wisi aliquyam sit in. Option tempor nihil. Sit sed id et rebum in dolor invidunt nonumy justo clita dolore ut. Sanctus lorem sit nihil sed magna magna ea suscipit at duo vero augue nibh. Sed et nam adipiscing ut invidunt ea eu consetetur sed consequat vero kasd lorem diam est takimata aliquyam. Amet takimata consectetuer dolor nonumy dolores. Est lorem eirmod zzril nulla clita stet ea eos lorem et et zzril stet elitr odio justo vel dolor. Tempor suscipit justo dolore. Consetetur ea diam diam diam duo dolores ea minim eleifend kasd erat clita eirmod vero clita.

Vero augue odio ipsum et iusto amet praesent sit sadipscing quis duo vel. Sit ullamcorper ipsum magna ex ipsum sea. Takimata est ut stet magna kasd dolore wisi vulputate amet sed lorem iriure. Ullamcorper sit stet no consetetur vulputate amet sed iusto. Duo et nulla est nonumy. Elit voluptua dolore kasd sanctus molestie stet lobortis at no elitr consequat magna zzril diam ut no dolor. Dolor justo sed. Esse feugiat praesent enim eos consetetur est labore illum euismod congue et ea stet labore. Eos nobis lorem blandit aliquip augue. Ipsum takimata ut clita et aliquyam sanctus ut at nonumy amet amet aliquyam nonumy dolores takimata nostrud et at.

Sample Output H4

Accusam dolore clita cum vero wisi diam sit sit magna esse molestie luptatum stet tation eirmod. Iusto est sed et tincidunt amet dolor stet. Dolor diam amet sed gubergren erat possim et dolore at voluptua praesent sadipscing. Erat et duis molestie lorem stet dolore diam sed. Et augue volutpat rebum no et accusam molestie in suscipit consequat iusto at et diam no et kasd rebum. Ea sed ipsum sanctus lorem. Diam gubergren lorem. Sanctus blandit ea voluptua sea cum nonummy at dolore dolores ipsum et amet eirmod clita sed ad clita consetetur. Aliquyam accusam vel invidunt ipsum erat duo enim. No velit kasd invidunt in lorem justo hendrerit lorem diam tempor.

Amet sed dolor consetetur nulla te sed eros suscipit et praesent et accusam qui et vero nonumy sed lorem. Euismod accusam nonummy tincidunt dignissim est tation sadipscing dolore enim invidunt sed in eos accusam justo tempor gubergren et. Invidunt eirmod ipsum sed feugiat at justo. Ipsum et gubergren lorem nobis duo dolor erat gubergren. Dolor at ipsum molestie elitr diam ipsum vel lorem dolore eu dolor ut aliquyam.

More Sample Output H2

Diam est sit vero labore elitr lorem diam iriure ea. Ipsum magna eos id at dolore eirmod. Ut ut consequat amet stet gubergren et iriure eirmod. Sit dolore veniam. Eos sed placerat diam sadipscing est ea possim voluptua dolor diam est consetetur et voluptua erat.

Diam minim velit vero elitr no eirmod rebum amet. Kasd erat lorem commodo sed et commodo et ipsum ipsum tincidunt et eirmod blandit dolore dolore. Eros ea stet duo esse takimata kasd. Dolor congue lorem lorem sed nulla. Nonumy dolor ut et est augue aliquyam clita lorem sadipscing ut. Accusam dolor at tempor clita gubergren.

Sample Output H3

Amet ipsum stet magna velit soluta. Eirmod ipsum nisl labore aliquyam no magna amet. Eu amet diam sanctus sit. Gubergren tation ea molestie consetetur ipsum kasd exerci dignissim nonumy placerat kasd dolore consequat nonumy facilisis laoreet stet. Et eros ut sadipscing rebum molestie vulputate eleifend suscipit facilisis rebum dolore invidunt labore clita consetetur ipsum et est. Mazim sed hendrerit duis consetetur vel nihil et elitr magna lorem iriure diam dolor accusam. No sit et lorem cum luptatum invidunt ut at takimata sanctus. Invidunt ut invidunt gubergren dolore erat molestie rebum amet ut commodo luptatum tempor. Elitr vero eos accusam elitr eirmod. Adipiscing qui et delenit sanctus aliquam voluptua tempor placerat elitr aliquam gubergren sit ipsum consequat. Dolore accusam kasd.

Iriure eos dolor ipsum. Clita sea amet eum aliquip ipsum et labore justo et illum amet et vero exerci gubergren tempor duis. Sed molestie sea eros eu kasd. Dolore accumsan sanctus diam magna. Vero consetetur voluptua consequat tempor kasd aliquam sea sadipscing. Nihil tincidunt erat feugiat accumsan suscipit at zzril ipsum kasd diam nulla no lorem eu nonumy labore et et. Clita et laoreet dolores justo labore commodo accusam. Wisi nonumy invidunt ea dignissim nonumy ipsum amet magna consetetur id eleifend vulputate.

Sample Output H4

Placerat magna blandit accusam et luptatum diam duo elitr dolore nonumy dolor. Stet vel dolore takimata ipsum elitr tempor accusam ullamcorper et esse in et aliquyam ipsum id nisl erat et. Voluptua eum eirmod cum nibh dolor takimata molestie accusam gubergren. Ea diam sit odio ut sea. Dolor amet et consequat dolore sed ea dolor tempor sea. Sadipscing tempor lorem labore euismod nulla justo suscipit eu commodo sit justo labore amet ea consequat diam luptatum.

Clita consequat justo zzril tation dolore eos dolore invidunt. Aliquyam rebum enim enim duis et adipiscing magna dolores dolores sit sadipscing. Nonumy dolor rebum adipiscing consectetuer sit et vero nulla amet tincidunt eirmod facilisi velit assum dolore. Takimata tempor justo sea ea invidunt est dolor nonumy at justo sea labore dignissim eu nulla gubergren aliquyam vulputate. Diam sed gubergren elitr enim molestie ea tempor ut sanctus eirmod elitr tempor.

Sample Output H4

Quod eum lorem lorem diam sea amet sadipscing nibh stet dolores enim rebum gubergren erat. Sanctus dolor dolore stet ad labore diam eum labore est justo stet labore esse diam. Et vel eos et quis takimata gubergren ut consetetur et commodo sed ipsum justo justo. Erat accumsan zzril sed. Sit duis gubergren et ipsum justo velit diam et voluptua lorem tempor sed dolor justo. Amet est ipsum ullamcorper dolor duo zzril. Et dolores ea invidunt sadipscing zzril eum eos ut accusam lorem. Vel consequat sea accusam. Clita clita diam stet dolor qui.

Nonumy ut justo soluta sit dolores eirmod clita no amet justo est tempor. Dolor commodo eu consequat takimata. Tempor diam no ea sed lorem nonumy takimata vero consequat gubergren autem facer aliquip lorem aliquyam tincidunt in. Lorem eirmod et. Ipsum assum invidunt ut ipsum. Vero dolore est diam invidunt stet lorem. Laoreet eros sit sea tempor tempor at vero et consectetuer lorem dolor et diam sanctus enim ipsum dolor. Ipsum lorem voluptua accumsan molestie te ipsum consectetuer suscipit lobortis et diam et est dolor dolor vero placerat duis. Dolore wisi erat.

Sample Output H3

Dolore tempor accusam dolor ipsum eos vero et. Sit lorem iriure tempor no adipiscing aliquyam stet invidunt sit dolor consetetur in eirmod. Voluptua dolor diam gubergren sed ut ut. Sed tempor dolores takimata takimata esse. Eos dolor lorem aliquyam no ea vero et vel. Dolore iriure euismod diam. Vel nibh feugiat nam accusam diam dolor amet iriure kasd no vero. Et iriure euismod et enim et diam sanctus justo tation erat consequat vel gubergren stet.

Diam diam illum clita clita vulputate takimata et ad lorem ut adipiscing illum esse blandit laoreet eos voluptua invidunt. Kasd clita nostrud et kasd accusam justo dolor vero invidunt voluptua praesent sit molestie tempor magna. Aliquyam accusam sit. Consequat sit lorem est iriure elitr eos nonumy takimata vel cum diam. Magna erat vulputate aliquyam magna sed iusto takimata sit dolore et erat dolore sit ut. Elit dolores tempor et stet voluptua kasd aliquip duis duo stet sit placerat sit facilisi eos. Invidunt tempor sea consetetur stet justo option ipsum. Exerci assum dolore.

Sample Output H4

Amet assum sea no amet ipsum vel esse accusam justo et ea nobis diam et ea consetetur eos lorem. Dolor in autem tempor magna. Est at et. Facer molestie consetetur takimata volutpat facilisis consequat sadipscing at at. Justo et nonumy clita ipsum invidunt erat nisl magna augue minim dolore ea invidunt dolor consetetur rebum nam dolor. Gubergren ut ex. Sit et dolor sed amet sit volutpat sit sea sed takimata.

Dolore laoreet eum sit ipsum ut et vero est erat possim. Et wisi volutpat magna magna vel adipiscing dolor veniam dolores sed et. Tation delenit sadipscing magna consetetur tempor diam at nam praesent ut sit tation vero. Diam odio elitr. Est stet amet. Lorem lorem nonummy diam feugait eirmod sadipscing. Feugait sanctus at aliquyam accusam aliquyam eos at elitr stet sed voluptua dolor vel aliquyam est.

Sample Output H4

Zzril diam at eirmod magna rebum iusto dolore. Est dolores kasd dolor. Augue dolor gubergren amet consequat consetetur sed ea dolore illum duis tation et vero minim dolore duo et. Vero blandit lorem sed accusam ex euismod elitr nonumy invidunt justo eros. Diam ipsum dolore wisi sed ut ipsum et lobortis dolor ut minim. Gubergren iriure vel dolores sed tempor ad sit exerci iriure nostrud sed hendrerit sea sea dolore nonumy ut.

Ipsum autem eos vero dolor eos consectetuer. Nobis ut dolore sit duis. Sea tempor id aliquam et magna. Justo ut euismod iusto dolor accusam in at aliquyam blandit congue imperdiet takimata qui clita blandit. Diam sanctus justo tincidunt iriure gubergren accusam stet ea nisl ut odio voluptua ut sed lorem tation ut consectetuer. Est euismod dolores nonumy elitr accusam commodo et amet est rebum nonummy consequat. Duo justo elitr assum sea vero tempor dolor sed amet elitr. Ipsum et lobortis augue et. Nihil invidunt dolores stet accusam labore esse nulla no ipsum dolor. Mazim accusam et accusam dolores iusto sanctus justo voluptua accumsan. Erat amet dolor vel lorem sit.