www.cloudformatter.com

cloudformatter format requests: 3,061,926    pages delivered: 8,058,285

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

Diam stet eum diam accusam sadipscing dolor justo et dolor labore. Invidunt feugait tempor sed. Duo facilisi molestie ut erat sea gubergren feugait lorem ullamcorper labore clita nobis. Ea takimata in elitr dolor erat consetetur lorem elitr eos consectetuer dolore sit. Sit in nibh vero delenit sanctus gubergren labore sea elitr sed lorem sit duo amet. Rebum nibh sea labore duo diam tempor et.

Dolor molestie lorem eos et voluptua clita consectetuer illum. Voluptua accusam dolor te lorem dolore ipsum aliquam duis eu kasd elitr praesent odio duo sanctus consetetur. Sed justo amet. Nibh aliquyam no in lobortis ea. Dolores et diam odio accusam consetetur mazim euismod illum stet molestie. Takimata ut odio vero sanctus dolores. Sanctus dignissim eu lorem lorem stet erat. Rebum et sit. Iriure rebum ipsum lorem at vero lobortis consequat in. Sit diam amet vulputate.

Sample Output H3

Duis lorem nulla lorem hendrerit in vel clita soluta diam. Nulla et sit dolor diam nulla ipsum voluptua consequat lorem invidunt magna labore clita eirmod labore aliquyam. Invidunt duis consectetuer sed est lorem gubergren no vel duo et luptatum sed. Rebum eos kasd eos dolor dolore erat. Dolor wisi takimata lorem laoreet lobortis iriure duo et sanctus volutpat nonumy volutpat vero consequat dolore accusam gubergren. Ex ipsum et diam. Congue sed sit kasd exerci dolore eirmod.

Labore sit dolores labore. Facilisis tempor adipiscing erat wisi rebum et invidunt dolor est est. Ipsum ullamcorper dolore ea invidunt delenit takimata sea sed sit at. Nonumy takimata qui aliquam wisi consectetuer sed qui dolor assum nonummy diam justo justo ipsum sadipscing sit. Diam amet sanctus ea aliquyam eleifend sit.

Sample Output H4

Eirmod hendrerit voluptua sed erat aliquyam soluta. Sea sed sed aliquyam zzril ad ut elitr. At dolor amet et gubergren et vero duis lobortis. Diam no diam ipsum illum ullamcorper ea lorem sadipscing sed rebum aliquip et ut. Stet autem sit takimata stet aliquip lorem vulputate et vulputate ut rebum ut sed in sit. Facer tempor euismod nonumy dolore sed. Et amet et. Dolore ipsum elitr illum diam. Ut duo eos diam vel consetetur in lobortis nibh dolor volutpat elitr ipsum tation ut no ex. Aliquyam gubergren aliquyam dolore. Tempor et dolor in duis nostrud stet et ex cum.

Takimata erat et sit et labore feugiat ipsum sed. No magna lorem hendrerit takimata ipsum magna laoreet wisi amet duo voluptua. Molestie dolore ipsum aliquyam lorem praesent aliquyam duo nonumy kasd dolore no eu hendrerit ea lobortis at. Veniam facilisis dolor rebum vero ut et blandit sadipscing invidunt diam labore tempor nonumy consequat dolor ut dolor. Est luptatum duo ipsum dolor dignissim no duo. Sit clita ut duo nulla amet aliquip ipsum. Clita suscipit amet gubergren rebum sea consetetur diam. Vero consequat vel adipiscing. Duo dolor accusam ut dolore aliquyam consetetur duis invidunt ullamcorper voluptua. Ipsum lorem no diam nisl ullamcorper ut dolores tempor kasd sit eum dolor.

Sample Output H4

Sea ad ipsum kasd. Eum eros ea accusam iusto autem no dolores blandit nulla et consequat tempor at voluptua voluptua. At vel clita gubergren praesent wisi laoreet dignissim no amet dolores diam dignissim sit eirmod sed labore. Possim nonumy velit iusto eos luptatum labore. No sed quis sea sed ipsum imperdiet sadipscing ipsum velit accusam. Erat clita eos blandit ipsum dolores elitr diam rebum clita et voluptua lorem no ut diam at. At erat at sit invidunt duo gubergren amet eirmod sed lorem veniam elitr dolor vero lorem luptatum.

Est no vero eos consetetur ea aliquip et labore lorem dolor vel sadipscing sit stet. At tempor diam gubergren vero nostrud dolor. Consetetur vero accusam justo eos justo amet congue diam nonumy tempor ea labore suscipit magna et. Ipsum at dolor at amet takimata tation. Vero dolore consectetuer velit blandit at veniam minim erat nulla et kasd sed consequat rebum diam. Liber accusam duis ipsum et diam sanctus sed voluptua voluptua amet blandit lorem consetetur commodo. Accumsan amet accusam lorem vero vero rebum. Stet sadipscing in dolore sit tempor magna clita sea takimata.

Sample Output H3

Kasd magna erat. Rebum erat eum erat magna sadipscing at magna ipsum liber sea eum consetetur est eum diam sea no. Sed imperdiet dolor sed nonumy sanctus laoreet. Vel stet minim adipiscing consetetur stet eros justo. Ut quis gubergren sed consectetuer diam gubergren delenit erat eos. Ipsum eu invidunt erat dolor. Sed volutpat qui amet lorem exerci vero dolor at nisl accusam. Diam molestie sit et sed. Clita ad sit ut at.

Gubergren dolore ut et amet duis. Autem diam justo consetetur sit nulla delenit dolor. Diam sea praesent justo feugait kasd. Molestie dolor qui mazim consequat est dolor consequat voluptua dolor invidunt amet. Accusam aliquyam eu kasd et eos takimata zzril. Clita lorem aliquyam gubergren ipsum sed blandit accumsan stet est diam quod accusam in rebum ipsum. Minim esse sit duo dolore euismod eirmod at kasd nulla vel sanctus justo odio nostrud sadipscing sed et. Stet sea sanctus kasd justo velit sanctus magna volutpat invidunt.

Sample Output H4

Ea sed accusam facilisis. Ipsum sanctus vulputate in et justo tempor autem et dolore consetetur aliquip diam luptatum consetetur sanctus sea nostrud et. Diam et option vero augue accusam et kasd eirmod eu ea ipsum elitr in ad accusam quis duo. Sadipscing justo molestie ipsum sit clita commodo magna. Sanctus tempor takimata eu eos ut elitr et et eros vulputate lorem. Voluptua nisl sanctus tempor sit.

Eirmod vero ut vulputate accusam. Ut kasd sit lorem zzril et dolore ipsum nonumy dolor. Dolores consectetuer in lorem ipsum ad ipsum kasd lorem sit mazim sed. Rebum et nonumy duo dolore dolore sed. Kasd dolore dolores rebum rebum voluptua kasd euismod rebum consetetur nisl eirmod aliquyam. Erat accusam luptatum eos nonumy esse ipsum accusam. Rebum amet no ut duis consetetur at nam eos vero voluptua ullamcorper dolores dignissim labore molestie diam. Ut volutpat ipsum invidunt.

Sample Output H4

Amet liber duo dolor elitr. Diam ipsum nonumy zzril lorem lorem ut. Amet kasd takimata suscipit consequat ea. Dolore kasd duo dolore sea. Amet duis ea. Diam voluptua delenit sed sed et. Rebum et labore vero ut accusam dolore ut gubergren minim. Assum erat dolor et sadipscing diam erat amet. Tempor labore iriure nonumy no ipsum vel dolore diam no vel.

Dolore elitr stet. Magna elit diam consequat ipsum ipsum. Rebum vero in invidunt velit praesent et kasd labore takimata ut. Laoreet est eu diam accumsan diam amet dolor in dolore option veniam tincidunt no at no rebum. Dolore takimata aliquip kasd magna ut labore gubergren eirmod tation lorem eos lorem dolore sit diam sanctus no. Et consequat aliquyam dolore dolor dignissim option eum sed illum lorem eos rebum wisi sed at. Autem sadipscing vero dolore duis erat dolor takimata minim justo. Dolores gubergren dolor lorem illum at mazim vulputate magna. Elitr imperdiet eleifend elitr est ipsum exerci labore nonumy et et accusam lorem luptatum clita invidunt ut sed. Sed erat feugiat amet ea diam duo labore amet. Hendrerit eos sanctus vero facilisis eirmod dolor sadipscing accusam at ex consetetur et.

More Sample Output H2

Dolore diam diam nulla sed elit diam ipsum. Placerat elitr quis. Illum ea velit magna dolor kasd. Ipsum elit et dolor consequat et diam veniam invidunt lorem ut takimata. Eos et amet. Dolore accusam dolore commodo te et dolore dolores vero invidunt hendrerit tincidunt est.

Clita at sadipscing sed gubergren sadipscing labore voluptua. Amet sea dolore tation invidunt. Magna dolor luptatum nonumy tincidunt sadipscing est et in ipsum labore. Consequat magna et diam dolore duo tempor amet enim stet vel nonumy est eirmod amet duo lorem dolores lorem. Et sed aliquyam erat vero dolores eros ut et et adipiscing congue at magna. Amet amet accusam amet rebum et sed ipsum at dolor eros blandit justo. Ipsum et voluptua kasd vero sit sed wisi vero amet lorem sed stet vulputate erat rebum sit ea. Takimata lorem dolores et justo iusto diam at et lobortis eros ipsum lorem diam facilisis. Tempor nostrud dolor dolor labore dolor amet sed lorem aliquyam aliquam sed iusto placerat clita sanctus duis clita. Ipsum et et tempor eos blandit iusto sea rebum dolore ipsum amet et sanctus dolor.

Sample Output H3

Consetetur clita sanctus est molestie eirmod erat iriure amet. Magna aliquyam nulla. Et ut et nulla molestie consequat iusto. Nobis autem nibh ipsum nonummy dignissim congue luptatum labore voluptua. Vero augue lorem sanctus sed amet. Dolor stet vero illum tempor kasd in eu dolore facilisis amet erat no diam sit congue.

Eum accumsan nibh nonummy sadipscing labore amet amet sit. Vero dolore eirmod consetetur dolore diam et no at et takimata. Laoreet ut sit justo ea est amet nonumy eos lorem assum vero ea ut. Kasd aliquam nonumy esse voluptua gubergren accusam sanctus. Et takimata vel eirmod sea sed sed stet lorem sed lorem et nonumy. Dolor sed amet. Sit vero dolore liber sed doming adipiscing accusam suscipit dolor ex et elitr qui erat elitr lobortis. Sea clita magna ea elitr at. Minim odio lorem sanctus doming ut takimata aliquyam et dolor adipiscing dolor et.

Sample Output H4

Sit eirmod duo eirmod stet et ipsum magna duis ut dolores hendrerit tempor et no aliquyam. Takimata rebum autem. Ea sit stet feugiat sadipscing. Diam gubergren kasd consetetur ipsum aliquyam accusam sadipscing consetetur rebum lorem sit. Rebum euismod ipsum nonumy amet stet et ipsum invidunt quis option velit. Dolore magna dolor laoreet sanctus at possim lorem est accusam.

Invidunt augue amet feugait justo dolores sed dolore eros. Eirmod et te sit qui et est sed rebum praesent justo accusam. Exerci diam accusam sea congue takimata labore gubergren lorem et invidunt no dolores velit tation esse kasd laoreet. Labore congue lorem tempor diam nonumy est dolores dolore rebum laoreet consequat eos ea wisi sed wisi. Te commodo aliquam elitr elitr erat hendrerit iriure elitr ipsum eu dolor vero soluta erat aliquyam lorem. Gubergren lorem ad ipsum sea et amet delenit facilisis amet ipsum. Sit stet eirmod sanctus dolor. Ullamcorper elitr sanctus et clita lorem sit molestie duo justo nonumy eos et justo duis ipsum amet aliquyam illum. Lorem ipsum diam sed amet. Assum lorem ut justo no justo amet sanctus in id kasd sed gubergren.

Sample Output H4

Sanctus takimata dolor accumsan vulputate voluptua illum et ipsum. No odio nonumy dolor no dolor clita et magna ea rebum tempor ea. Et lorem erat imperdiet sit ut gubergren nonumy facilisis sit sit diam et eirmod. Est justo et erat liber sit dolore et tempor et. Lorem tempor aliquyam diam veniam dolor laoreet sed. Lorem ipsum eos ea kasd eirmod esse. Erat dolores erat magna diam nostrud in sit eos sanctus sadipscing gubergren ullamcorper qui et. Consetetur nisl et no lorem velit autem et magna ut facilisis nam nulla et. Dolores magna justo consetetur accusam sed exerci no duis consequat magna erat diam autem duis dolore lorem mazim sadipscing. Dolor amet facilisis magna justo et ea et ut aliquyam eirmod labore clita sed id erat.

Est veniam eleifend clita amet vero amet id sit esse dolores. Magna ea dolor lorem eirmod duo sit eirmod lorem sit ipsum stet nonumy magna elit. Sit vulputate eirmod. Sadipscing et stet rebum aliquip ipsum sanctus takimata. At duo labore et ut illum eos feugiat rebum volutpat nulla. Ex molestie lorem sit eirmod facilisi stet nulla dolor sed eu ipsum wisi kasd iriure vero. Minim facer stet stet sadipscing diam dolore delenit aliquyam. Dolore tation labore vulputate justo. Iriure clita invidunt dolores sit volutpat takimata.

Sample Output H3

Vero duo exerci tempor ipsum eos. Nonumy sea clita magna ea autem takimata dolore eirmod erat in consequat magna dolor aliquyam sed nostrud. Eos amet sanctus dolore tincidunt amet magna magna veniam qui eros. Gubergren consetetur stet diam ea voluptua dolores nonumy ipsum te. No erat consetetur in ut rebum sit nisl eros lorem dolor ad vero dignissim blandit. Invidunt lorem amet duo ullamcorper justo veniam nostrud sit et takimata eleifend clita suscipit. Est dolor sed ipsum dolore duo nonumy hendrerit.

Et lorem mazim sea lorem eirmod. Vel sed diam nonumy cum eros autem diam lorem luptatum consetetur consequat eos clita. Duo lorem sit dolores dolor nisl amet magna ut sea. Justo sed et eos dignissim luptatum et tempor. Ut vel nonummy magna dignissim aliquyam. Dolore dolor consetetur voluptua dolore. Mazim dolore consetetur kasd ipsum elitr sed amet sit elitr magna. Diam voluptua tempor voluptua. Dolor dolore et aliquip ut. Ex vel illum dolores aliquyam duo aliquyam ullamcorper dolore facilisi iriure ipsum eirmod erat sea duo.

Sample Output H4

Accumsan vulputate lorem rebum in sit aliquam ipsum facilisi diam ipsum diam nulla diam tempor gubergren feugait. Consectetuer voluptua dolores voluptua et duo lorem et mazim nonummy amet dolor. Erat in magna hendrerit magna sit lorem ipsum aliquyam clita voluptua sit diam veniam et kasd qui kasd. Diam at eu et voluptua eu suscipit consequat rebum justo no sit vulputate doming invidunt ipsum. Et et takimata at dignissim eu nisl consectetuer hendrerit.

Laoreet amet kasd nonumy luptatum et sadipscing eum dolor tation at amet sed wisi diam dolor accusam et nisl. Ipsum no eirmod duis justo lorem praesent blandit. Kasd nobis enim dolore eu sit assum sea. Congue illum praesent diam voluptua vero sea diam amet stet facilisis magna esse amet vero rebum eos ut sanctus. Eirmod exerci justo sadipscing nonumy invidunt no eu amet in et accusam consetetur.

Sample Output H4

Vel et rebum tempor rebum labore nonumy est lobortis. Veniam in invidunt sed tempor. Nihil dolore at consequat tempor eu eum. Clita et sed facilisis sed exerci tempor eirmod dolores diam laoreet magna gubergren facilisis sadipscing clita gubergren ullamcorper. Nonumy doming kasd takimata nonumy sed. Et nonumy duo aliquam. Invidunt exerci kasd vel dolor sadipscing eleifend. Elitr doming vero sadipscing possim blandit eos rebum dolores et rebum placerat lorem tation lorem tincidunt sea no velit. Sed est eirmod et. Et dolore lorem ipsum sadipscing clita.

Iriure voluptua sadipscing et duo diam lobortis vulputate accusam lorem dolores. Sed amet autem lorem sanctus ut eirmod cum nostrud takimata eirmod exerci est nonummy iusto. Ad ea vero te clita rebum takimata adipiscing amet ipsum diam. Lorem justo tempor amet ipsum ea eirmod illum. Stet veniam dolores vero et rebum consectetuer eirmod lorem. Nostrud delenit lorem et est.