cloudformatter format requests: 1,684,250    pages delivered: 4,413,443

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

Sit at et iriure erat dolor dolore. Diam facilisis dolor dolor at velit aliquyam vero facer diam duis elitr. Sit rebum diam delenit at et tempor clita facilisis eos lorem justo. Erat elit sit et eos at et ut magna erat ut vero no sadipscing. Duis sit lorem magna diam et lorem rebum dolore dolore et congue.

Rebum ipsum sadipscing labore sadipscing et magna sed rebum eirmod elitr gubergren sea. Invidunt nonumy vulputate amet. Et dolor dolore ipsum sed erat invidunt augue magna stet id vel diam est tempor kasd. No et et eirmod nonumy. Dolore ut sed magna quis sanctus. Tempor et sanctus justo.

Sample Output H3

Ut sit ipsum et takimata nibh dolor ea nonumy dolor zzril lorem ea commodo diam nulla et et elitr. Euismod ipsum duo adipiscing dolor. Nulla nulla aliquip ipsum aliquyam nulla consetetur ipsum stet sea. Assum at facilisis sed sanctus tation eu. Diam kasd et cum imperdiet sed et tempor sit laoreet. Et vel at clita dolores et erat invidunt facilisi eirmod nibh invidunt ipsum erat invidunt duis nonumy illum.

Molestie lorem lorem accusam sit tempor sanctus. Sadipscing et sit consetetur eros feugait voluptua dolore stet dolore nostrud vero sit euismod voluptua sadipscing et no. Invidunt te rebum labore sit amet ipsum sit duis vel est. Nulla ea stet sadipscing dolore tempor et quis consetetur facilisi lorem et sed duo sea. Magna nonumy dolor aliquam in sit et wisi erat sed aliquyam te et diam. Nisl no tempor dolor gubergren at dolore sadipscing sanctus amet gubergren vero clita iusto eu elitr sed vero. Et dolor zzril amet suscipit sed erat sanctus rebum in enim eros. Sit at et facilisi tempor accusam sit et lorem invidunt.

Sample Output H4

Iriure dolor eros no illum et sea. Nibh ut nonummy sanctus no lorem justo ea ipsum duo dolores esse. Nulla et illum ut at est sanctus sanctus dolore est et diam lobortis rebum delenit consequat. Aliquip nonummy diam. Clita veniam dolor sea autem velit ipsum velit aliquyam lorem amet qui facilisi at accumsan. Lorem sanctus consetetur et ea. Lorem enim congue clita invidunt sanctus rebum sanctus et sea et aliquyam qui clita. Dolor sed amet lorem assum. Est lorem takimata amet clita nonumy in eros sit consequat ea sea consectetuer exerci.

Duis dolor sit justo quod consequat sadipscing. Ut gubergren vel et sea dolor exerci duo diam no ipsum amet sanctus tempor duis. Lorem facilisis accusam sadipscing ipsum eos justo iusto ipsum sit stet duis at amet in sed. Possim sed sea kasd iusto qui ipsum et amet aliquyam ut gubergren dolor sanctus sed lorem minim justo. Duis et sanctus. Diam at molestie iriure dolores ea iriure eum amet. Consetetur invidunt erat tation eirmod sed voluptua. Dolore feugiat elitr. Sit sit vero laoreet sea ullamcorper magna erat erat justo et molestie clita dolore.

Sample Output H4

Eleifend takimata ipsum ipsum gubergren qui no ipsum dolore ea sadipscing et eirmod velit et. Duis duis stet et rebum amet takimata invidunt amet accusam clita lorem. Sadipscing eirmod magna augue duis. Veniam diam iusto amet exerci elitr tempor elitr kasd dolore at in vero. Vero no ut. Eu aliquyam dignissim adipiscing blandit lorem nonumy nisl est ipsum eirmod. At eros takimata et consequat dolore est delenit tempor erat voluptua ipsum aliquyam lorem sed nibh. Kasd sed et eleifend dolor sit ipsum. Aliquyam elitr ea gubergren est ipsum ut aliquam. Nostrud luptatum ipsum vero kasd te diam sanctus invidunt esse ipsum dolores et option rebum nonumy et. At lobortis exerci sadipscing eum est nihil volutpat sed tempor lorem et voluptua sed.

Nostrud iriure kasd rebum aliquam dolore delenit dolor. Elitr lorem qui kasd in velit consequat accusam gubergren. Duo in dolores invidunt ea sit dolore magna dolores dolor lorem augue veniam sit vero invidunt facer dolores. Takimata lobortis diam duo augue possim aliquyam sadipscing te eos luptatum nonumy clita lorem dolore dolor sed duis. Stet invidunt consetetur et commodo iriure gubergren vel. Dolores invidunt sanctus lorem sed dolor ipsum accusam sea eos vulputate kasd no cum. Nonumy erat rebum elitr ipsum nibh ipsum dolore sea labore est blandit clita takimata kasd quod et sed. Voluptua magna at. Vero kasd dolor erat ut dolor no at diam et nulla. Erat feugiat justo duo tation stet lorem et ea sadipscing. Sed augue amet erat et vero voluptua eros gubergren vel sit nulla dolore sit dolores.

Sample Output H3

Amet diam velit labore et no vel ea ipsum eros at stet illum no ipsum adipiscing. Et et accusam et sadipscing sit kasd. Diam aliquyam sed et et et gubergren veniam et dolores aliquip at et takimata eirmod invidunt. Sit autem cum augue ut esse. Sed lobortis erat erat duis at ullamcorper nonummy. Tincidunt sed molestie nisl consetetur et diam aliquyam et no elitr elit sanctus stet lorem aliquip ipsum sea dolor. Takimata iriure eum elitr eos sadipscing ut lorem elitr justo ipsum diam diam amet ipsum erat. Et liber vel nonumy iusto. Enim eum dolore accusam elitr congue dolores consetetur et no et duo dolore amet sadipscing et. Dolor vero nonumy rebum accumsan vel nam magna lobortis justo ea aliquam dolore.

Ipsum ipsum erat nonumy lorem. Consetetur est at voluptua et. Invidunt et lobortis augue vero dolore et molestie et molestie labore sadipscing eirmod amet gubergren nisl aliquyam dolore. Duis voluptua feugiat ipsum commodo clita rebum takimata ad esse. Ipsum nonumy est clita consequat at lorem ut erat eos sit lorem ea justo ea. Amet ipsum et in. Kasd nobis dolor tempor voluptua duo sanctus clita gubergren lorem.

Sample Output H4

Rebum invidunt amet nisl et ullamcorper sed. Mazim et illum aliquyam nostrud sed aliquyam stet et justo ipsum. Dolor ut invidunt suscipit. Invidunt sed elitr. Consetetur dolor justo. Accusam invidunt enim et lorem at rebum vel. Duo elitr dolore clita duis ipsum et qui erat elitr sit amet delenit sanctus et.

Ut magna adipiscing nostrud ipsum dolor ea qui. Dolore dolore sit labore amet ullamcorper sadipscing et suscipit quis aliquam sit est aliquyam accusam takimata. Facilisis duo voluptua iusto erat justo clita facer nonumy dolor ipsum vel dolor nonumy duo diam. Invidunt accumsan duo consetetur rebum sea in eirmod vel cum ut takimata. Dolores at labore lorem et vel sadipscing nisl feugiat clita nonumy. Est exerci amet sed et vulputate ut iriure dolor consetetur. Dolor voluptua et in ipsum dolore dolore ea sed elit suscipit diam ipsum adipiscing possim dolores. Sit lorem diam augue facilisis sit elitr dolore nihil gubergren diam erat rebum et ut.

Sample Output H4

In diam et takimata feugait consequat lorem sit clita sed magna. Et et lorem. Ut sea sadipscing lorem aliquam at est vero sadipscing lorem. Nonumy tempor stet duo takimata ut eirmod. Nostrud at ipsum vero justo vero. Praesent et diam ea tempor duis sit sed clita vero. Tempor sit ea et duo stet justo stet gubergren gubergren lorem augue. At tempor nostrud molestie diam eirmod labore vero magna dolores kasd aliquip magna exerci duo sit sadipscing erat. No eu stet sed velit lorem sea labore sanctus sanctus rebum dolor cum no ipsum sed lorem amet. Quod ullamcorper in sit eos erat est hendrerit.

Sit dolores et no ipsum qui voluptua est sit nonumy magna nonumy molestie. Blandit amet vel facilisis. Diam erat justo erat lorem est no eirmod dolore. Stet illum invidunt invidunt gubergren sanctus justo autem sed suscipit diam autem vero ipsum clita vero ex. Duis dolore sanctus soluta.

More Sample Output H2

Minim consetetur magna nisl nonummy. Nisl amet kasd diam gubergren est erat lorem vero et rebum soluta gubergren et ut dolore ut et labore. Vel dolore at labore elitr erat et. Elitr et at consequat dolor duo ipsum vero dolores et liber sanctus rebum. Kasd est invidunt nonumy clita eros clita nulla et. Eos et elitr. Tincidunt gubergren praesent nonumy dolore no facilisis kasd autem stet ex ea et euismod zzril sed sed. Kasd labore kasd accusam dolor justo sea delenit diam kasd sit no sed magna.

Et tincidunt molestie volutpat vero eos accusam. Takimata iusto et accusam lobortis wisi et delenit est clita no sea sea. Clita ipsum aliquyam tempor dolore labore duis magna dignissim justo aliquyam. Amet sed vulputate clita vulputate nam stet diam rebum sadipscing dolore molestie gubergren. Eum eleifend aliquam et eos accusam est stet vero tempor tempor suscipit diam. Illum dolor ipsum et et clita vero vero nonumy sadipscing hendrerit accusam vel aliquyam dolor eirmod.

Sample Output H3

Sed sanctus eirmod lorem dolor lobortis dolor duo in feugiat dolor dolor in. Zzril eros consetetur. Sed sea accusam dolor et et eros rebum. Volutpat voluptua at accusam sea duo clita diam ut amet ut. Ut voluptua ipsum hendrerit tation iriure invidunt amet tation est dolore odio clita sit.

Et invidunt amet takimata iusto stet dolore elitr stet et nonumy. Eu est nulla dolore mazim stet vero magna eos. Nulla kasd et ad magna magna consetetur dolore diam clita sed euismod magna. Et dolor facilisis lobortis amet sanctus rebum justo nisl amet ipsum accusam sadipscing sanctus aliquyam dolores eos erat. Est nulla sanctus feugiat sadipscing magna eum ipsum elitr vel.

Sample Output H4

Takimata vero consectetuer tincidunt aliquyam illum eirmod dolores dolores clita no ut elitr kasd. Nam tempor iriure clita. Kasd sadipscing at velit sed luptatum invidunt justo ipsum sea et iusto kasd et sit. Te consequat et. Blandit illum ea consetetur justo eleifend magna et. Vero gubergren duo ut sed ipsum rebum ipsum elitr rebum autem et et quis no. Suscipit minim accusam kasd stet kasd nostrud suscipit.

Aliquyam imperdiet dolore est sit elitr magna justo augue dolor dolor. Esse duo magna lorem. Eu et sit consequat dolores vero. Stet nonumy duo qui at sit et te ut justo et dolor dolores ut consequat odio. Ipsum sit kasd facilisi cum. Sit duo rebum consetetur. In sit labore stet. Kasd elitr vero at sit dolore dolor imperdiet voluptua quis illum dolor rebum kasd dolor. Consequat suscipit possim.

Sample Output H4

Nulla nonumy rebum ea ea facilisis dolor quod diam erat ut no sit est ipsum clita feugiat consetetur. Et eu magna diam diam in justo praesent dolor aliquyam sanctus nulla stet. Erat lorem stet gubergren gubergren consequat ipsum lorem ipsum invidunt molestie duis eirmod. Kasd dolore soluta sit te et labore consequat amet nonumy at dolor lorem no est quis. Esse vulputate vel et tincidunt dolor ipsum odio sanctus dolores et nulla sit vero vero tempor. Takimata ea dolor est dolor gubergren duis zzril.

Ut lorem invidunt consetetur nostrud takimata ut sit. No invidunt invidunt feugiat lorem ipsum eos ipsum sit dolores lorem ea wisi tempor delenit amet at. Dolor vulputate illum sit dolor accumsan nulla dolores ut diam facilisi est vero kasd. Magna amet option lorem gubergren rebum diam adipiscing takimata. Ipsum delenit hendrerit dolores consequat laoreet facilisi sanctus takimata nonumy diam diam ut.

Sample Output H3

Labore luptatum aliquyam voluptua aliquyam amet at gubergren sanctus accusam hendrerit lorem dolores vero. Sanctus sanctus vero velit lobortis kasd consectetuer dolore ipsum ut sit dolore amet sanctus tempor sit accusam. Eos consetetur vel dolore clita dolore. Eirmod lorem est rebum eos eos takimata eirmod ipsum enim et. Erat eirmod stet odio blandit kasd dolore erat rebum clita eirmod duo tempor accusam. Eum erat ipsum eu minim nostrud ut amet accumsan no dolor sed amet.

Sit aliquam et consetetur accusam consequat erat elitr rebum amet nibh. Tempor at luptatum velit voluptua ipsum tempor ea est lorem nonumy est nostrud amet. Nonummy elitr amet amet praesent ex augue et amet lorem euismod erat dolor et ut diam sed et dolor. At no sed et nonummy. Gubergren dolor ipsum molestie ipsum option diam sit diam sit amet wisi clita diam eos no et. Gubergren ut ut elitr illum elitr tincidunt et amet.

Sample Output H4

Aliquam ad at et sanctus nulla sit amet. Magna erat elitr magna magna liber et gubergren. Duis lorem et dolore diam no at. Duo vel est sanctus at labore esse et diam liber nostrud kasd dolore eirmod dolor sed feugiat. Est kasd consectetuer kasd aliquyam et et invidunt adipiscing invidunt consetetur kasd diam et sed nonumy vulputate sit. Sadipscing sit sed ex kasd ad lorem. Ipsum magna exerci eros at amet. Lorem stet augue takimata blandit nonumy eos nonumy amet vel ex elitr ipsum eum dolor aliquyam dolore ipsum. Eirmod justo sed facilisis molestie ad aliquyam et labore et eos.

Amet elitr clita vel luptatum et et takimata et sea rebum et et stet nulla sadipscing ut wisi stet. Delenit sea elitr duis ullamcorper. At assum laoreet nonumy dolores. Amet ea voluptua sed eos minim veniam lorem enim molestie dolores. Sit lorem facilisis. Eirmod nonumy et dolore at no lorem sadipscing amet praesent dolor vero sea. Et magna sed ipsum sanctus rebum amet sit clita sea.

Sample Output H4

Sanctus clita diam aliquyam ad invidunt et facilisis nonumy dolor nonumy rebum dolore sed clita praesent diam. Lorem est sed duo et ut accusam. Ipsum duis invidunt nulla sed elitr ut rebum sit sadipscing justo et sit clita nostrud aliquyam amet ipsum. Dolor et wisi ipsum vero eros eos elitr et takimata eirmod suscipit est elitr iusto tempor accusam tincidunt. Eos autem dolor velit eirmod dolor eu takimata clita. No sea takimata at sadipscing amet eos dolor vero facilisis et zzril lorem gubergren lobortis. Qui rebum nihil dolor hendrerit dolor et amet tincidunt. Duis nisl tempor amet consetetur ex aliquam magna justo enim magna illum amet dolor. Invidunt sit invidunt velit et illum duis erat liber dolor wisi. Consequat facilisis te sed est erat illum amet esse at. Illum ut dolor eum.

Justo ut dolor ex dolor facilisi facilisi labore stet dolore tincidunt ipsum magna odio ad amet at. Consetetur diam magna voluptua et iriure consectetuer kasd kasd eos est laoreet aliquyam sed dolores volutpat tempor gubergren aliquyam. Consequat eos justo in elitr clita sanctus esse rebum diam elitr tempor diam kasd lorem accusam in no justo. Dolores ut imperdiet blandit stet no dolor lorem vel lorem aliquam labore ea dolor duo et tation dolore. Aliquyam dolor dolor sit facilisi magna ea sit invidunt et stet dolore sed ipsum tempor kasd consequat autem clita. Luptatum et eirmod dolor gubergren duo elitr sanctus magna dolore sed consequat sanctus at diam eos. Nonumy lorem sit gubergren rebum. Diam dolor et iriure ut nulla. Dolores doming eirmod.