cloudformatter format requests: 2,791,011    pages delivered: 7,284,848

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

Invidunt diam ea. Vero tation dolor placerat et doming sanctus labore sanctus justo possim dolores sed velit gubergren ea. Congue nulla et eirmod ipsum dolore nulla lorem eum et et eirmod gubergren aliquam sit vero invidunt aliquyam. Tempor ipsum illum facilisi gubergren eos. Et eirmod et sit dolore. Magna clita suscipit duis et sea id sea nam in et vero iusto erat. Ea consetetur diam. Sed aliquip nulla invidunt erat sit. Lorem erat et sed magna autem ut ut amet lorem dolores nonummy.

Ut et lorem et no amet molestie augue eos esse sanctus exerci no amet ad sea iriure. Duis takimata hendrerit et elitr erat facilisi lorem. Takimata amet dolor rebum consectetuer lobortis minim liber eirmod amet dolor accusam sanctus dolor consequat suscipit. Et eirmod tempor et lorem elitr accusam quis dolore sit invidunt lobortis. Justo voluptua dolor illum minim erat voluptua feugait mazim sea tincidunt exerci feugiat nonummy sea. Eum lorem sanctus nibh diam. Ipsum sed takimata sed ipsum vel aliquam ex tempor no sit dolor magna diam sed possim eos. Sed justo eum dolor feugiat stet diam sed quis velit nam rebum aliquyam vero vero sed. Commodo elitr sea minim ex tempor elitr lorem ipsum takimata elit. Eu sadipscing lorem magna ipsum amet sed ea vero enim consetetur amet est magna et consetetur diam. Sea aliquyam in cum.

Sample Output H3

Eu liber aliquyam dolore tempor elitr magna. No lorem sit clita ea et vero suscipit rebum kasd ut. Ipsum facilisi quis. Lorem ipsum rebum wisi dolor elitr dolore rebum. Elitr et et accusam sit consetetur magna molestie diam sed consequat ut. Sea sanctus et consequat tincidunt aliquyam duo kasd delenit at sit erat sed takimata sanctus. Sed ea stet dolore rebum gubergren consectetuer amet assum duo. Lorem rebum euismod luptatum vero autem qui accusam sea diam sed. Dolor erat sanctus veniam sed tempor et blandit.

Lorem no sea esse ipsum. Amet diam aliquyam ipsum. Adipiscing no dolor et nulla accusam feugiat nonummy ipsum ipsum. Lorem et tempor ipsum no ipsum sed ut sed labore clita ut sea illum. Invidunt nulla nibh accusam sit consetetur illum magna rebum amet sea iriure rebum et erat. Justo erat in kasd sed magna et option sit kasd in lorem est aliquam aliquyam et. Ut invidunt sit ipsum wisi consequat lorem invidunt invidunt diam eirmod amet at rebum at. At elitr luptatum volutpat suscipit sit illum magna.

Sample Output H4

In sit diam no duis lobortis nonumy eos nulla magna erat clita eos dolores dolor feugait liber magna. Amet autem luptatum duo liber. Feugiat dolor stet iriure dolores justo esse blandit sit at et at sed doming. Sanctus ipsum dolore gubergren. Nonummy molestie lorem velit rebum no tempor ipsum aliquyam hendrerit. Eirmod vulputate duis ut sea sit doming magna dolore nostrud in diam elitr vel erat diam ut. Et elitr dolore eos. Vel diam commodo. Diam lorem et dolor esse lorem luptatum elitr cum option. Eros gubergren facilisi tempor aliquyam dolor tempor te sanctus et ea vel. Accumsan sea amet diam wisi vulputate kasd sed euismod diam rebum tempor dolor.

Vero sea facer rebum sed. Ut dolore erat facilisis sadipscing ipsum congue ipsum in sed amet dolor ea. Veniam et ut amet clita dolor labore et et sadipscing no. Suscipit dolores diam augue vel ex takimata. Diam eum magna illum iusto sit erat aliquyam tempor ipsum eu at vel kasd diam labore esse amet ipsum. Sed ipsum no laoreet et voluptua no magna gubergren erat ullamcorper duis doming takimata sanctus. Dolor elitr eos consetetur sed lorem sit vero erat labore ipsum duis voluptua ipsum sed accumsan commodo ut eu. Stet sed exerci sit takimata amet et no te ipsum ipsum dolore est et clita. Est hendrerit dolores eos takimata dolores dolore ut.

Sample Output H4

Est euismod tempor magna clita erat voluptua dolor feugiat amet. Sit invidunt dolor labore eirmod vel aliquyam tempor augue takimata est sed sit. Odio duis id dolor invidunt dolor elitr hendrerit sanctus ad duis accusam euismod nihil et. Ipsum vero clita kasd no est consetetur eirmod duo. Amet amet clita feugait consequat.

Vel congue ipsum ea sanctus iriure ullamcorper nam sanctus aliquyam sed diam dolores ipsum et ut stet lorem. Erat stet consetetur ea nonumy sanctus sed et nibh dolore diam dolor clita erat. Dolore lorem accusam sit magna euismod dolore. Ipsum at et magna dolor amet amet. Lorem est dolores odio sed diam autem no sadipscing diam eum voluptua amet aliquyam et et clita et iusto. Dolor stet hendrerit aliquip nonumy ipsum. Diam et euismod diam labore stet elit duis et imperdiet at ipsum at ut. Sea lorem et rebum zzril eos.

Sample Output H3

Vulputate eleifend kasd et dolores consequat magna minim praesent voluptua sit sea accusam consequat. Augue dolore consequat. Euismod assum accusam et consetetur praesent esse sanctus labore iusto ut et ut diam in eirmod sit lorem. Facilisis kasd amet. Accumsan veniam feugiat tempor. Nonumy lorem in ex amet est vel stet et ad dolores ipsum. Sit no sadipscing sadipscing odio kasd amet aliquyam congue aliquam et ut dignissim takimata. Lobortis erat sed dolor et at ut duo ut sea eos aliquyam. Tincidunt vulputate quis takimata lorem sit lorem invidunt eirmod amet diam et dolore sed sed minim zzril ea. Ipsum est diam invidunt sed accusam placerat et eu diam. Dolor lorem dolore et.

Gubergren amet tempor elitr. Amet ut aliquyam ex diam consetetur ad. Stet lorem tincidunt exerci magna diam lorem lobortis eirmod tempor. Et justo amet erat ea quis eirmod ea elitr. Nisl dolore clita eirmod. Consetetur aliquyam nonumy no vero eos stet invidunt dolor nonumy sea molestie amet takimata. Et vulputate erat eum nonumy et et est. Diam aliquyam sed et tation duis ullamcorper aliquyam vero tation dolor et amet at nostrud sed at et at. Sea esse eirmod accumsan lobortis eu dolores vel ut ipsum dolores. Et nonumy justo takimata ipsum et consetetur nonumy.

Sample Output H4

Eos at erat et eos clita accusam dolor magna diam et ea no invidunt dolores ipsum amet dolore dolore. Delenit at tempor dolor lorem diam at. At luptatum lobortis tempor et erat vero rebum sit tempor voluptua est stet dolore duo tempor ipsum duo. Nobis accusam amet sadipscing erat vero dolor illum takimata magna gubergren dignissim dolor tempor qui diam. Sit takimata diam aliquyam clita lorem voluptua sit no at eos diam takimata sit ea magna.

Eum sed suscipit at clita eu ut praesent et consequat vel voluptua duo erat lorem. Voluptua zzril erat sit. Tempor sea nulla et amet sea. Erat aliquyam nonumy ipsum duo sed. Consequat nibh eos. Erat adipiscing erat et velit dolore et voluptua duis in est vero labore.

Sample Output H4

Vulputate nonummy dolores sadipscing exerci duo accusam dolore. Invidunt at amet at diam voluptua justo consetetur lorem et dolore esse te gubergren justo et clita et. Takimata stet takimata amet dolor esse nostrud. Diam eu eirmod et takimata rebum magna qui dolores ea no ut. Feugait clita accusam augue accusam elitr diam amet lorem eos nonumy ipsum gubergren eros. Eu sit sadipscing.

Sed rebum clita lorem erat eum diam dolore congue qui eirmod sanctus labore eos. Dolor consequat sed dolore imperdiet feugiat et eirmod accumsan kasd erat lorem. Amet ut dolore et invidunt aliquip ea te et sit labore doming invidunt et diam erat aliquip gubergren rebum. Sed labore nulla et. Dolor blandit nisl voluptua eirmod euismod ut id dolor dolore invidunt lorem et facilisis ipsum eos iusto dolor. Rebum est consetetur et tation gubergren est amet magna stet in. Option justo te diam sit sadipscing dolore clita nam amet dolor consequat magna sed nulla. Nisl dolore clita nam et nonumy duo in duo lorem lorem dolores et diam in adipiscing. Elitr accumsan gubergren iusto amet consequat magna eirmod laoreet dolor zzril ipsum gubergren ut et stet dolores minim zzril. Et sed kasd lorem justo voluptua dolore euismod et erat erat nibh in at nonumy enim justo ex.

More Sample Output H2

Dolore praesent voluptua et ex sanctus vero ut et laoreet et stet eos illum invidunt rebum dolore. Dolor eos ea et et. Duo et rebum lorem sit dolores sadipscing invidunt kasd feugiat dolor. Invidunt invidunt ea adipiscing accusam aliquyam eum stet stet. Accusam takimata esse at clita rebum augue rebum et magna autem erat takimata illum placerat et. Illum aliquyam delenit et stet aliquyam dolore erat dolor nam nonumy. Ut vero in labore. Et takimata et et dolor et aliquam imperdiet. Accusam sed sanctus eum ut diam sit elitr clita et et facilisis. Diam diam dolor eos euismod iriure clita invidunt nam blandit enim dignissim ut.

Adipiscing vulputate et voluptua eos takimata sadipscing accusam et adipiscing tempor lorem aliquam diam clita. Sit eos sanctus magna consetetur tation vero est aliquyam illum. Eirmod sadipscing kasd elitr et et rebum nulla mazim. Takimata sanctus et nisl ea at vero molestie consetetur kasd gubergren no vero. Eum diam ex sadipscing at rebum erat amet vero lorem gubergren. Euismod sea esse vero sanctus justo nonumy. Nostrud dolores suscipit imperdiet at vel sit dolor invidunt vero dolore ut invidunt ipsum sit velit ut.

Sample Output H3

Rebum accusam veniam praesent ea eum nulla rebum. Lorem lorem est sed possim amet amet quis eos sea blandit. Clita diam no amet elitr lobortis quis eum eum rebum diam dolor. At hendrerit dolor erat facer ipsum dolor est et dolor praesent justo. Et sed ipsum aliquip praesent congue consequat sit. Eum ea erat vero. Ipsum blandit ipsum. Dolores ipsum dolor delenit diam elit sit aliquip est dolores dolor elitr et elitr aliquyam sanctus magna. Elit amet ipsum esse labore eos vero gubergren volutpat sit et rebum in.

Dolores amet et aliquyam eirmod tempor dolore sanctus labore. Justo gubergren gubergren illum quis lorem dolores velit duis labore. Tempor erat sit et facer accusam et sit. Diam augue ea consetetur feugait voluptua ea voluptua et consectetuer dolores eos dolor erat ea rebum ea amet sea. Ea eum hendrerit dolor vero erat liber dolor amet dolor dolores dolore. Ea ex iusto at adipiscing at labore iusto diam lorem rebum blandit ut sed sit esse. Nibh suscipit no sed tempor rebum et duis justo veniam accusam consequat dolore ea feugiat justo.

Sample Output H4

Quod sadipscing nisl lorem exerci eos no. Et duis justo eirmod eirmod tempor feugait et accusam et vero. At at sit dolore lorem erat sit ut no ut dolores. Labore at facilisis sed consectetuer diam dolor ea eirmod dolor invidunt. Diam dolore ut invidunt diam at erat justo sit et nonumy justo at. Sit aliquyam doming eos option elitr sit sit consectetuer. Erat magna vero aliquyam eirmod esse magna consectetuer.

Eos duo amet kasd sea molestie sanctus ipsum lorem justo duo ut lorem. Diam duo accumsan ea wisi facilisis magna diam iriure kasd eos sit gubergren amet invidunt at rebum et. Et dolore kasd kasd molestie rebum. Ipsum ipsum gubergren. Consequat est voluptua sea ipsum ea ea accumsan dolores ullamcorper stet. Eos ut eirmod clita lorem nonumy clita stet esse dolore. Et et consetetur at ut sit cum te lorem placerat dolor. Dolor accusam no dolor ipsum tempor lorem nulla diam justo. Consetetur illum duis ipsum eros dolor clita accusam.

Sample Output H4

Aliquyam est elitr no. In accumsan illum. Rebum sed no amet dignissim sed consetetur elitr takimata et et lorem lorem dolor duo blandit lorem kasd. Diam quis stet. Nisl iriure et et gubergren aliquam zzril ipsum magna diam sed sanctus nulla. Accumsan hendrerit kasd feugiat ut erat labore duis dolore voluptua ipsum vero.

Erat vero lobortis lorem duo velit et erat ipsum voluptua duis dignissim facilisis dolor sit. No aliquyam eum ut. Et invidunt rebum diam ut invidunt sanctus at sit sit elitr rebum et nam nonumy in ut in. No takimata consetetur ea ut justo erat et eum takimata eum elitr lorem vero dolores gubergren diam sed. Duis ea erat est dolor commodo aliquyam vulputate gubergren nonummy amet lorem hendrerit nonumy diam. Kasd voluptua vel. Est dolor lorem amet iusto amet lorem elitr lobortis amet eum ipsum.

Sample Output H3

Sed justo suscipit dolore elitr et zzril stet nostrud et et consequat eirmod. Gubergren ea sanctus ut nonumy nonummy no commodo rebum vero et. Id sit dolore in. Ea ipsum dolor lorem accusam dolores feugait et magna rebum sea lorem dolor clita ut clita et et no. Voluptua at et et vero ut ea ipsum diam amet ipsum aliquyam labore invidunt et et et lorem. Ea illum consequat elitr dolore sit eos aliquyam stet dolor nonumy vero stet vero enim elitr diam dolore. At duo et vero sadipscing. Facilisis diam justo et sed ipsum elitr et consetetur consetetur.

Dolores eirmod veniam at takimata vero et sit tempor diam diam invidunt amet aliquyam sit ut. Esse lorem takimata consetetur tempor tempor vero clita rebum accusam. Ipsum sea duo aliquyam et labore eos consetetur sanctus lorem voluptua in ipsum elitr duo dolor nam labore. Clita ipsum sea suscipit takimata. In rebum aliquyam sit sanctus. Consetetur tempor sed ipsum erat dolor te dolore clita laoreet sanctus sed elit duis nonumy esse duo tempor volutpat. Nostrud eum no sadipscing diam odio sea et sit ipsum eum consetetur duo ut dolore euismod.

Sample Output H4

Diam dolore sit dolor gubergren accusam sit erat vero eu at justo nulla dolore ipsum esse et. Amet ut clita facilisis aliquyam eros justo elitr et clita augue doming. Stet feugiat erat dolor ea diam tation elit tempor dolor. Eum dolore nibh nonummy lobortis magna. Nibh illum nonummy. Sanctus diam stet duo eirmod dolore duo tempor labore amet ipsum stet. Vero nobis delenit et dolore feugait consequat takimata eirmod et. Dolore amet sea justo dolore tempor. Gubergren ut sit euismod. Labore sit dolor feugiat feugiat sit clita dolor dolore justo rebum lorem sanctus dolore diam eos sed no. Duo duis ut aliquip diam est duis volutpat aliquyam duis in diam clita.

Elit praesent elit lorem sanctus takimata diam tempor zzril stet invidunt. Rebum lorem dolor dignissim et voluptua voluptua sea tation lorem feugiat consectetuer ut magna ipsum ex eu dolor sed. Laoreet accumsan sanctus ut sit tation. Ea diam facilisis lorem. Justo ipsum volutpat volutpat amet aliquyam duo dolor invidunt elitr sadipscing feugiat et dolor et vero. Dolor ut invidunt accusam et ut exerci.

Sample Output H4

Labore diam eos in dolores magna aliquyam nonumy stet accumsan. Nostrud et soluta amet nonumy ea aliquyam nulla no est lorem amet erat nonummy. Ipsum luptatum lorem tempor rebum stet nulla voluptua erat sed sed sed at. Ut zzril ex. Vero ea tincidunt et quis vel delenit labore diam ut ipsum magna facilisis consetetur et lorem diam. Vel nibh kasd labore ut diam sea lorem. Ut aliquyam enim sea eos ut et dolor clita volutpat et sed at eos elitr ea elitr mazim rebum. Ut sit et ut nam rebum sed vero at. Sit nulla diam accusam. Et consetetur diam erat amet tation sed et sit consetetur eos sed.

Lorem diam et kasd nisl voluptua erat volutpat ipsum accusam no sea sed mazim amet et et ut justo. No elitr magna augue dolor accusam consetetur no. Ut et et nulla sanctus dolor dolor est et blandit sit dolor molestie. Vulputate esse eirmod ut dolores est duo sanctus vulputate sea consequat no takimata. Ipsum elitr adipiscing ea ipsum sed sanctus eirmod possim eirmod. Stet vel duis dolor. Hendrerit lorem feugait nibh euismod vero rebum invidunt amet lorem accusam invidunt veniam. Et ipsum invidunt possim sit nonummy et aliquyam quod sanctus diam dolore lorem. Sit ex eos odio lorem dolor et amet sit.