www.cloudformatter.com

cloudformatter format requests: 2,885,566    pages delivered: 7,610,216

PDF Properties

xportability LLC

PDF Properties

http://www.cloudformatter.com

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).

Options

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.

Note:

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;">
    <metainfo>
        <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>
    </metainfo>
    <pdfpreferences>
        <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"
            value="http://www.cloudformatter.com/Resources/Images/registration.svg"></pref>
        <pref name="printer-mark"
            value="http://www.cloudformatter.com/Resources/Images/colorbar.svg"></pref>
    </pdfpreferences>
</pdfproperties>

Sample Output H2

Lorem sea sea accusam voluptua stet et dolore in autem vero rebum feugait exerci sanctus gubergren minim sanctus. Justo stet ad takimata duo sed no dolor aliquyam amet est sea dolore sit nonummy. Delenit dolore eleifend dolores stet aliquip adipiscing exerci sadipscing vero voluptua consetetur et suscipit adipiscing est augue. Molestie aliquyam no et nonumy diam velit ea tempor dolore et labore dolore. Erat justo voluptua sed kasd eirmod sed amet sit.

Amet duo dolore at et amet sit sed rebum enim zzril augue consetetur sadipscing velit amet ipsum erat nisl. At clita minim ipsum dolore nonumy et sadipscing dolore ullamcorper nonumy cum ipsum sanctus amet in lorem. Amet et et magna gubergren duo ea. Dolore ut eos tation minim et elitr et. Consequat magna duo erat rebum. Vero no laoreet et sit sed accusam duis magna sit lobortis eos et ea magna. Amet amet ea dolor invidunt et dolores consetetur vero tation amet volutpat minim et dolore lorem magna. Dolor veniam et voluptua justo stet. Invidunt elitr kasd est elitr dolor sanctus amet lobortis rebum duo et duo et diam sed diam justo. Dolor eos est gubergren consetetur cum elitr minim dolores clita assum. Dolore dolore tempor sit sed diam nonumy magna et.

Sample Output H3

No ut dolores kasd stet ea at volutpat sadipscing nulla consectetuer blandit iusto. Dolore volutpat stet sit voluptua. Eirmod ea euismod tempor ea ea eos. Dolor quod tempor dolores dolor sanctus dolor ut amet stet sanctus. Tation nostrud dolor voluptua volutpat dolor wisi invidunt amet at sit ad diam ipsum erat sadipscing. Facilisis sit dolor. Duo ut justo et dolore volutpat luptatum consequat lorem eos lorem exerci dolor sit consequat aliquyam duo aliquyam dolores.

Delenit nibh facilisi sadipscing takimata ipsum dolor et lobortis ea invidunt magna. Nonumy diam sed sanctus ea lorem rebum justo wisi labore dolor sanctus dolore erat magna molestie aliquyam. Autem eum facilisi laoreet diam nostrud imperdiet et justo takimata et consetetur at feugait consetetur. Clita lobortis aliquyam clita et clita liber duo lorem autem est. At autem facilisis dolores et nostrud tation ea nobis et amet eu feugiat consetetur. Nulla dolor odio diam sadipscing clita dolor at sadipscing facilisi sit est consectetuer elitr in vero ad et elitr. Vero kasd lorem esse dolore labore feugait ipsum amet eos et ipsum at diam stet ea duis blandit. Nibh kasd ut suscipit et eos eirmod. Te kasd kasd.

Sample Output H4

Invidunt sed kasd ea ipsum et. No tempor consetetur erat justo sed ipsum magna eos erat et sed amet gubergren luptatum est nonumy sanctus. Nulla duis no lorem elitr soluta velit vulputate et dolor praesent ut sit minim ut. Aliquyam vel est invidunt consequat at sea dolor dolore. Consequat gubergren luptatum lobortis et accusam. Nostrud tempor aliquip sit eirmod ut sit et ex ea amet. Nonummy erat molestie diam hendrerit amet assum dolores et at lorem tempor takimata vel et et voluptua diam. Takimata iriure sea praesent sed et esse duo et. Dolor erat gubergren takimata sit amet in ipsum accusam.

Et et dolor ipsum eirmod sit sadipscing dignissim dolore elitr sea facilisis dolore exerci amet aliquam dolore at. Sit tempor est esse qui amet consetetur eum clita lorem magna et est. Possim eirmod takimata diam nulla voluptua voluptua doming. Erat vulputate sadipscing sit quod magna illum rebum et vero volutpat. Ea autem amet labore takimata diam et magna volutpat et accusam ipsum lorem. Sea lorem justo zzril dolore sadipscing invidunt. Illum clita te amet erat et. Ut labore erat ipsum est velit hendrerit at ipsum eos odio sed rebum amet suscipit dolores diam. Clita sanctus zzril quis zzril dolore kasd et est ea option sadipscing clita odio dolor lorem sit dolore et. Sed sea duo sit et elitr quis dolor gubergren.

Sample Output H4

Dolor accusam sadipscing iusto nostrud elit sed eirmod dignissim sed dolor vel at hendrerit gubergren. Sit eirmod sea amet. Feugait esse vero lorem tempor illum vel velit sit gubergren gubergren nonumy amet duis et. Ipsum kasd placerat diam sed lorem euismod exerci vero minim est est aliquyam quis ad enim accusam vero sadipscing. Qui dolores iusto kasd vero duis ex.

Nonummy dolore aliquyam. Elitr dolor duis qui. Autem ipsum gubergren adipiscing ut consetetur quis mazim sea feugait. Quis dolores voluptua tempor justo duo dolore nonumy iriure sit rebum. Clita wisi te tempor voluptua et eirmod exerci dolores stet sanctus commodo accusam.

Sample Output H3

Justo sed dolore ut sanctus consetetur invidunt ex enim rebum vel illum eros et lobortis eos. Eos est lorem clita est nam esse diam justo. Consequat imperdiet amet sit et aliquip sed nulla iriure autem et sed et consetetur justo dolor eos eleifend. Aliquyam assum sed diam iusto et dolores lobortis consetetur ad. Minim ut tempor elitr eirmod lorem wisi ipsum clita. Ea sea stet consetetur eu sed aliquyam esse euismod no dolore nonumy voluptua tation adipiscing et nam.

Dolores sadipscing dolores dolores est invidunt at nisl eirmod ullamcorper ipsum sit est nonumy et magna magna. Veniam nonumy takimata tempor ut consequat aliquip sea vero ea ipsum eu duo. Doming diam amet et sed sed sea at mazim sanctus feugiat amet rebum. Sed amet erat eros sit esse sed labore accusam erat takimata dolor. Dolor nonummy sadipscing est ipsum sit magna amet et diam elitr labore. No in et. Accusam ex invidunt eos erat. Suscipit et sed magna at clita aliquam et dolores. Gubergren gubergren minim labore sit diam imperdiet consectetuer feugiat stet. Tempor sadipscing sed. Justo amet duo suscipit justo ea takimata justo takimata tempor gubergren et lobortis.

Sample Output H4

Enim sed sea erat rebum lorem sed dolore dolore clita takimata erat. Consequat consequat dolor ipsum illum commodo sanctus eros aliquip facilisi. Zzril aliquam sed est dolor ut dolor nonumy sea vero ad clita eu iusto magna lorem dolor lobortis. Magna et sanctus sed ipsum at cum duo sed sanctus justo. Rebum tempor delenit sanctus nostrud exerci placerat justo. Sed dolores delenit invidunt et nonumy eos ut assum cum consectetuer diam. Autem clita diam. Justo aliquyam sadipscing et kasd.

Veniam ex accumsan nulla consequat ipsum nulla amet. Erat et et diam erat soluta invidunt eum. Accusam et tempor vero sed kasd dolor dolor sed invidunt te voluptua stet ea kasd sea. Lorem eu sadipscing voluptua. Amet eu possim takimata euismod sit velit tincidunt odio at ipsum eirmod et consequat vel eirmod eros ipsum diam.

Sample Output H4

Et sea accumsan in est dolore velit. Eirmod molestie sit sit et vero justo labore accusam ut takimata dolor. Ea ipsum erat eirmod voluptua et eos tempor et justo et stet invidunt in. Aliquyam et ut stet et justo aliquip voluptua sed tempor labore gubergren illum ipsum ullamcorper. Accusam luptatum amet eos quis amet nulla commodo amet nobis qui enim.

Eirmod sit dolore rebum lorem lorem sit sadipscing magna dolore dolor. Aliquam autem est eos eros wisi invidunt. Sed dolore erat illum. Ut iusto et stet eirmod erat. Sanctus sanctus lorem. Diam dolores lorem nobis sanctus sed justo aliquyam voluptua ipsum amet dolore sadipscing diam diam amet rebum. Erat nibh sit lorem lorem justo et erat nulla magna sed kasd et nostrud. Stet nulla tempor dignissim wisi quis lorem clita adipiscing. Sit suscipit vulputate clita invidunt. Praesent nulla diam eum at vero erat justo erat justo eos.

More Sample Output H2

Wisi et invidunt enim est dolore enim adipiscing ipsum at enim erat. Nobis sed dolor eu nulla duo euismod tation ea dolore sanctus. Accusam nonumy ut at vulputate duo ea et mazim justo sed gubergren diam ipsum amet possim kasd lorem ea. Eu at at tempor amet. Sed magna assum aliquyam amet congue congue commodo et elitr stet. Facilisi sed dolore stet eos et labore no in vero dolor nonumy. Amet eirmod autem gubergren enim feugiat zzril at eos elitr. Imperdiet duis dolor kasd elit sea eirmod takimata nonummy ut imperdiet et id duo sit sea. Hendrerit magna duo rebum lorem ipsum liber kasd. Duo aliquam tation et dolore qui ut sit invidunt aliquyam nulla et vel magna ex consetetur nulla eos.

Sit lorem quis eos elitr dolores sadipscing tincidunt et ipsum gubergren magna amet. Nonumy justo kasd clita et voluptua labore eum praesent in sit ea. Lorem labore justo justo aliquyam labore gubergren dolor et sanctus dolor ut ea nonummy aliquyam erat est. Lorem iusto accusam elitr amet eum erat nulla at ut facilisis feugiat eos autem sed diam. Invidunt iusto clita stet sadipscing diam invidunt justo rebum stet facilisi quis dolores ut ea vel lorem. Sadipscing sea sea consequat. Ea duis magna clita te sanctus enim. Autem duis ut sanctus tincidunt eros takimata ullamcorper luptatum aliquyam et molestie et. Nonumy eos sadipscing clita. Ipsum option ut.

Sample Output H3

Sed ea sadipscing ipsum clita duis delenit consectetuer rebum eirmod stet ea et. Diam invidunt sit no id erat odio duis ut no amet sea. Dolore et facilisis diam te dolores et lorem ullamcorper enim takimata quod. Dolores suscipit sed sit ipsum. Diam id est lorem takimata diam no sit autem erat kasd blandit molestie lorem sanctus magna. Vel amet magna ipsum duo justo et tempor nam ea magna at clita accusam sed quis et sit. Stet vero nisl erat. Amet dolor tempor eos ea laoreet dolor vero lorem congue est labore sit et eos at. Amet aliquam takimata ut et ut et et sadipscing option iusto invidunt consequat dignissim sed nulla clita lorem.

Duo labore labore kasd dolor sadipscing et sit eum rebum aliquyam feugiat erat ut diam eirmod dolor option clita. Ipsum lorem iusto eos dolores sed praesent sadipscing diam amet diam sadipscing. Sadipscing tempor mazim velit rebum et aliquyam et voluptua exerci erat wisi consetetur duo stet diam sed kasd dignissim. Sit blandit lorem. Kasd consetetur sanctus ut facer et ipsum tempor esse est. Tempor invidunt ut eirmod voluptua magna sit elitr diam euismod justo eos takimata et commodo ut.

Sample Output H4

Sanctus lorem accumsan wisi elitr at et eu laoreet aliquyam amet kasd sed sit. Ut et diam sanctus clita in sanctus. Exerci duis accusam accusam accusam volutpat diam nonumy molestie dolor aliquyam luptatum zzril dignissim. Consetetur sed rebum consetetur nulla et nibh commodo dolor voluptua ut minim dolor. Erat labore nihil sit justo stet accusam et tempor lorem labore ut. Kasd stet clita. Sea sanctus eirmod aliquyam kasd praesent amet nihil diam ut et justo stet justo. Sed duis takimata feugait sit. Rebum lobortis et et accumsan stet consetetur elitr vero feugiat ut laoreet. Sadipscing feugait sea magna duo ipsum ea odio aliquyam sed iusto lorem sed magna magna diam ad lorem aliquip.

Nostrud dolores in sea. Eirmod assum aliquyam dolore eirmod ea kasd invidunt exerci sanctus lorem kasd nonumy est tempor consetetur ut. Te justo praesent eirmod eu. Facilisis voluptua commodo dolor consetetur option elitr amet takimata aliquyam esse vel gubergren dolor no. Te velit eirmod justo sed dolore rebum duis eros. Kasd iusto eum in assum lorem sanctus at dolore veniam illum augue elitr clita invidunt magna no no.

Sample Output H4

Doming tempor lorem lorem tempor consetetur amet. Invidunt magna stet lorem diam est eirmod assum sanctus tempor sea. Assum elitr autem ipsum takimata sit wisi et et ut. Ipsum clita lorem minim at justo. Kasd feugait gubergren clita lobortis diam ea sit. Lorem vero luptatum at et dolore sea nonumy diam hendrerit ullamcorper dolor et dolor. Elit et nulla at esse diam te clita justo. Elitr nobis dolore voluptua qui est dolores diam lobortis clita sit invidunt sed amet eos.

Voluptua et diam nulla rebum magna nonumy dolore ipsum. Sea rebum duo dolore clita magna sed aliquyam lorem lobortis. Blandit est nonumy sed lobortis labore stet consetetur erat eos volutpat wisi iriure ut enim aliquam commodo kasd. Dolore consetetur dolore est takimata sadipscing dolor sit aliquyam est stet et eum blandit consectetuer dolor. In lorem elitr sit duo esse eos hendrerit ullamcorper stet vero diam wisi quod id vulputate consetetur eos duo. Consequat stet dolore justo. Dolore nonumy et ipsum at amet magna sadipscing nisl aliquyam stet invidunt no rebum in sea. Illum stet wisi nulla eos nulla diam ut lorem aliquyam quis liber erat sit est vero sed invidunt autem. Nonumy vel no voluptua gubergren clita ad diam sit justo no dolor sed consequat stet consequat et dolor no. Autem justo feugait lorem nobis sanctus at labore nulla stet zzril sed facilisi. At lorem praesent assum et.

Sample Output H3

Vulputate sit aliquyam et sit diam hendrerit enim ipsum labore soluta diam diam diam assum sed no sadipscing. Tempor et eirmod in. Illum ipsum voluptua minim rebum ipsum. Ipsum magna sea sea. Facilisis et dolores sed et sit invidunt aliquyam rebum sit dolore eum liber no no sit. Vero et commodo diam diam sea imperdiet ipsum lorem lobortis amet amet labore.

Et lorem clita at no et facer eum elit sea vulputate elit tempor praesent takimata est sadipscing. Eirmod tation in vero dolore ipsum id. Eum dolores aliquyam vero erat stet est. Eos ut sit blandit tempor magna dolor at duo vero accusam sed no consequat elitr lorem. Stet sit takimata lobortis amet et dolor magna lorem suscipit eos luptatum tation et voluptua. Aliquyam at lorem no sed consectetuer in sanctus et sanctus ipsum ea minim augue takimata no. Sit et ipsum ipsum sit sed dolor stet tempor.

Sample Output H4

Erat elitr et diam autem dolor sed sea vel diam. Autem lobortis sit. Nulla cum sed labore in et quis dolor at rebum sea gubergren veniam aliquip labore et. Ut duo sed vero aliquyam stet esse diam illum amet no sadipscing. Hendrerit et dolor sadipscing lorem lorem. Odio at sanctus labore sed sit feugiat.

Eirmod euismod dolor duo placerat nostrud dolore. Duo feugiat kasd diam voluptua sed et suscipit. Et vero at eu sanctus stet eos aliquyam. Gubergren sit diam dolores duis. Eleifend labore dolore consetetur amet voluptua dolore erat. Erat elitr gubergren nobis sit lorem ut. At option erat et nonummy. Diam dolore eos eirmod ipsum ex diam dolore labore feugiat eros no nonumy eirmod in ullamcorper commodo. Consetetur dolor gubergren aliquyam lorem. Rebum dolore at liber eos. Amet et justo nonumy no eu accusam accusam nonummy commodo diam eirmod sed clita.

Sample Output H4

Sea sit et ipsum dolor no sed tempor ut dolor et. At duo et ipsum dolore dolor amet tation hendrerit lorem commodo vero dolor amet stet ea et et eirmod. Dolor dolor amet erat eos erat nonumy diam nonumy et ipsum. Gubergren et sit gubergren vero suscipit consequat amet stet eirmod et. Ut elitr et ipsum dolor magna amet sit feugait magna lorem eos takimata stet aliquyam.

Gubergren dolore nisl dolor tempor ea dolore lorem lorem elitr eirmod. Consetetur commodo dolore nulla et nonummy magna amet diam sadipscing in nobis euismod dolores stet et lobortis. Kasd euismod veniam ipsum volutpat kasd labore magna sed nulla consequat ipsum. Diam dolores voluptua consequat dolore hendrerit nulla eos amet amet sit diam et iriure est velit et ipsum. Gubergren qui dolor sea in. Diam tempor rebum dolor sit odio aliquyam labore amet vel illum. Dolor magna sit magna feugiat euismod accumsan dolor sit eirmod dolores et quis gubergren. Duis eros iriure sadipscing no qui vero est commodo stet et amet ipsum. Diam luptatum consetetur in invidunt duo et hendrerit sit sed velit duo nonumy magna facilisi accusam ut kasd at. Ea exerci diam hendrerit facilisis facilisis erat at dolor duo takimata stet sea accusam sanctus nisl. Sed invidunt elitr ipsum sed.