www.cloudformatter.com

cloudformatter format requests: 6,322,855    pages delivered: 14,376,910

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

Et sit diam doming odio ea diam autem praesent ea et dolor et dolores accusam sit rebum. Vulputate voluptua eirmod tincidunt aliquyam. Eos sea sed nisl vero sit justo duis sit et dolor clita duo stet accusam magna vero ipsum. Eos consequat ut diam ut lorem. Consectetuer vel nulla consetetur tempor ut est magna ipsum augue takimata justo et. Stet esse clita exerci consetetur takimata praesent dignissim autem te dolor labore. In nulla dolor duis blandit. Duis eleifend tation ea vero sadipscing ea in tempor et eros eos est euismod. Gubergren sea vulputate duo erat sed at et ipsum accusam elitr ipsum et. Erat sit stet diam kasd gubergren labore sit.

Et sed volutpat elit lobortis et vulputate sit sed exerci eu molestie in vel ut. Nonumy esse exerci amet dolore at magna stet ipsum ea nostrud dolore consetetur blandit molestie. Accusam invidunt ipsum wisi placerat rebum facilisis voluptua nobis dolor clita consetetur dolor eum. Dolores consectetuer facilisis est dolores voluptua elitr vero sea congue est consetetur diam. Liber ipsum facer vero no commodo nonumy consetetur est te id sanctus consectetuer. Ut erat ut ea est odio duis magna consequat ipsum dolores kasd sed sed consetetur.

Sample Output H3

Ea diam praesent amet consetetur diam stet ullamcorper aliquyam nonumy eos sit ut te dolore sea autem. Dolor sadipscing diam nonumy ut magna vero assum elitr takimata consetetur eos diam lorem vel nulla. Commodo duo gubergren sed eirmod justo ut tation luptatum invidunt justo nihil molestie vero takimata. Nonumy zzril diam erat dolor possim amet vulputate tincidunt rebum. Stet dolore clita eos kasd amet justo gubergren sed et erat no mazim congue nihil. Et est diam et nobis tempor at eirmod dolor mazim nibh erat clita amet tation ut vero est. Ut lobortis duo ut tempor justo ad adipiscing et ut takimata ea amet erat. Kasd vel sit feugait duis sadipscing rebum at lorem ipsum consequat diam. Sed ipsum sit illum vulputate. Dolore luptatum exerci nulla molestie lorem nonumy magna tincidunt erat sit nonumy stet nibh dolor aliquyam. Amet labore voluptua accusam accusam eu dolor iusto odio clita veniam no minim eum facer et et sanctus justo.

Stet est suscipit in et. Nibh eum stet id nonumy dolore quis dolor. Kasd aliquyam diam eirmod kasd no amet dolor elitr tation et dolore ipsum. Dolor esse vulputate blandit est tempor amet. Congue amet ea et gubergren duo tempor. Takimata ipsum elit sanctus est tempor dolor eu gubergren clita vel sed. Aliquyam sanctus dolore tempor tempor vero accusam vel duo exerci gubergren at diam ex accusam.

Sample Output H4

Lorem lorem est ea diam sit lorem amet aliquip diam eirmod no tempor. Sea magna velit praesent consetetur dolore et et sea zzril sadipscing assum sea magna. Dolore liber aliquyam consetetur ut. Stet vero dolores. Et dolore labore dolor sit blandit vero quis. Dignissim gubergren sed dolore stet iusto sed vero facilisi exerci accusam duis elitr amet adipiscing no. Elitr eu elitr ea dolor ipsum sit sanctus assum. Nibh lorem rebum dolor assum erat sadipscing ipsum nonumy. Aliquam et et nostrud ut sed.

Diam nulla accusam odio elitr sed eros elitr dolor sit voluptua takimata vulputate voluptua. Invidunt dolore eos sadipscing quis dolor odio amet sea. Diam duo no voluptua delenit sit. Wisi et erat takimata nulla sea nulla diam diam duis gubergren et. Eu aliquyam dolore sea ut et sit ipsum vero gubergren takimata eum delenit voluptua justo vero ad. Aliquam ipsum placerat tation dolores dolor consectetuer sed molestie diam ipsum accusam ipsum gubergren mazim magna erat gubergren sed. Diam autem dolore sanctus sed kasd et clita et kasd clita. Et nonummy eos. Cum consetetur stet rebum et augue dolor ut consetetur. Diam magna eirmod enim autem gubergren dolores dolor voluptua at accusam. Et sanctus voluptua tincidunt sed sanctus duis tempor dolore gubergren tempor et autem duo dolor facilisis.

Sample Output H4

Dolores amet erat soluta vulputate ullamcorper eos et volutpat dolor amet dolore ut. Autem justo sed takimata esse et et diam et takimata at aliquyam sadipscing amet eos erat stet nulla. Vel et takimata takimata stet molestie labore eleifend sea eirmod ea eirmod et. Esse elitr diam diam diam dolor augue vero consetetur rebum et feugiat consetetur. Facilisi gubergren assum diam gubergren sadipscing no gubergren elitr clita ea placerat et commodo enim. Est et diam takimata ut sea sit nonumy et et lorem et dolor consetetur labore lorem diam.

Sed ea voluptua dolore duis. Dolor et autem voluptua duo amet clita diam sea gubergren dolor diam lorem. Autem rebum option labore in eos ipsum clita dolore. Sed aliquip nonumy takimata dolore duo sed elitr eros minim elitr sadipscing eos. Erat assum sed. Nonumy labore dolore magna dolore laoreet kasd blandit qui elitr diam nonumy kasd molestie labore nonumy enim dolores. Sanctus dolore invidunt magna diam dolor voluptua et est et vel dolore sit feugiat takimata nulla ad sit. Aliquyam luptatum diam dolore lorem consequat ipsum odio eleifend takimata in elitr duo dignissim nulla. Duo rebum justo dolore dolores duis sit est. Justo facilisis diam nibh iusto hendrerit. Consetetur lorem invidunt erat iriure commodo elitr diam voluptua at.

Sample Output H3

Erat vero duo eros iriure kasd eirmod in augue vero. Nisl eleifend nibh rebum aliquyam sed ipsum sit diam et no lorem justo. Lorem sed et eos no sit sadipscing. Tempor sea sadipscing sit justo sit delenit illum lorem eirmod ipsum duo ut erat et labore clita eirmod nonummy. Wisi option nonumy voluptua ipsum sed consetetur. Justo justo justo nostrud diam ex sit. Dolore erat voluptua ipsum ea clita dolores lorem. Duo sit ipsum sit invidunt dolore et molestie ipsum ullamcorper.

Duo dolor diam et sit wisi aliquyam amet et. Dolor et kasd adipiscing et et tincidunt ipsum ipsum consectetuer. Eu sed et. Tation gubergren sadipscing dolor voluptua diam consetetur sed rebum ex voluptua sed eleifend ex dolor tempor dignissim. Consequat lorem et. Invidunt vero nonumy. Amet ipsum dolor amet takimata eirmod ipsum et sea et et kasd eleifend facilisi takimata elitr dolor diam. Esse eos facilisis accusam doming dolore. Clita vel dolor nonummy elitr wisi stet kasd sed tation aliquam. Aliquyam accusam sed est nonumy dolore dolores eos takimata stet elitr at dolore sit. Sit diam in.

Sample Output H4

Hendrerit et et ut. Aliquyam diam justo ipsum esse ad ea elitr sanctus. Tempor consectetuer sit dolores facilisi sed sea labore. Invidunt kasd dolore delenit imperdiet sed. Accusam vel et takimata no quis. Veniam commodo diam sed aliquam justo wisi diam stet est. Et consequat accusam lorem aliquyam dolor nonummy. Nibh vero wisi ipsum. Eros et magna erat praesent blandit lorem invidunt. Ipsum vero invidunt lorem ex ut ipsum ipsum no eos sed amet rebum te et gubergren elitr. Clita aliquyam eirmod no lorem ex praesent dolor no tempor clita gubergren soluta lorem clita vero esse ipsum dolor.

Sanctus ex vero ea facilisi et at erat amet dolore clita sadipscing minim tempor takimata et nonumy vero lorem. Ipsum commodo sea et ea nonumy sanctus ullamcorper hendrerit. Et rebum dolor. Velit eros rebum consetetur facilisis elit sed est dolor nibh sea sit tempor justo sanctus est delenit ut ipsum. Odio sea diam invidunt amet vulputate dolore diam sed sed exerci dolor elitr.

Sample Output H4

No sanctus amet dolores eos ipsum eum lorem vel dolor ipsum sit ipsum amet sit elitr dolores. Vero no magna. Nulla consetetur nonumy dolor iusto rebum et justo gubergren te sadipscing nisl sadipscing. Duo takimata at erat dolor lorem. Veniam dolore invidunt dolor lorem et et sed magna. Et amet sit luptatum dolor feugiat voluptua duo dolore takimata luptatum et sit no aliquyam sea sit vero. Hendrerit stet duo vero eros consetetur placerat ipsum amet duo iusto autem diam et.

Accusam sit duo et vel. Tempor et minim sed aliquyam et diam et dolor euismod wisi zzril labore aliquyam. Et accusam erat nonumy accumsan diam wisi et kasd velit eirmod kasd et. Kasd praesent tation duis eu luptatum ut dolor labore consectetuer. Voluptua wisi et dolore aliquyam dolor sea. Ad praesent at enim ut vero. Invidunt consetetur dignissim dolor elitr iusto sed et ut takimata sea ipsum sadipscing rebum aliquyam.

More Sample Output H2

Diam liber stet voluptua et nibh aliquyam veniam aliquyam eirmod qui sea ut. Dolor aliquam vero aliquyam sea kasd ad diam dolor ipsum consetetur tempor takimata eos consetetur rebum sed et. Accumsan vero amet amet erat accumsan dolor velit ullamcorper clita takimata gubergren dolore lorem lorem sanctus. Aliquip et accusam et sit sit tempor ea eirmod consetetur dolor takimata dolor et. Lorem enim aliquyam augue dolor clita sed sed vulputate. Sea duis duis nonumy amet lorem lorem duo amet. Ipsum kasd gubergren invidunt vero enim dolore delenit adipiscing et eu. Iriure et velit amet ipsum sed tempor invidunt kasd sadipscing amet duis nonummy.

Voluptua eirmod nonumy. Nonumy takimata vero tempor elitr. Eum takimata voluptua dolore augue euismod takimata lorem. Dolor sanctus amet amet duo no lorem no dolores. Clita ea diam dolor ut cum eros placerat accusam diam invidunt et qui sit. Sed duo magna ipsum vel et sadipscing accumsan dolor eirmod ut eros. Magna soluta eos ipsum takimata ea magna. Lorem voluptua dolore dolor et eirmod ut amet congue augue et diam invidunt takimata autem et. Assum et justo facilisi sadipscing rebum aliquyam sadipscing rebum dolores justo dignissim odio magna dignissim et magna at.

Sample Output H3

Tincidunt nibh sit sea dolor ut exerci rebum sanctus sed enim takimata ut. Lorem elitr duis dolore diam sed clita tempor sed lorem dolores et elitr et esse. Velit magna rebum invidunt option clita dolore clita sed dolor at et est eos ut. Magna consequat at diam diam euismod. Diam et et clita. Elitr et magna. Imperdiet labore clita amet elitr molestie euismod euismod magna adipiscing sadipscing ex dolores tempor amet gubergren ut eirmod. Rebum sit suscipit ut gubergren et at et at et qui et ullamcorper.

Facilisis stet aliquam volutpat ut duis justo eirmod nulla consequat velit dolores eos et. Lorem sanctus tempor sit consetetur et. Lorem no ex amet. Amet ea duis nulla dignissim sed praesent elitr. Facilisis ipsum luptatum dolore doming.

Sample Output H4

Dolores eum illum sit et eos iusto clita et gubergren iriure kasd sed nonumy dolor stet aliquyam diam qui. Ut et feugiat tempor nonumy gubergren no elitr nonumy nonumy augue duis. Gubergren ea et justo vel. Sea consetetur elit feugiat dolor labore sanctus eleifend et kasd. Sea elitr sed amet elitr autem at duis. Facilisi stet ipsum elitr diam wisi kasd diam aliquyam sea illum amet ut accusam. Stet et takimata accusam lorem dolore no invidunt voluptua luptatum sed erat. Diam dolores aliquyam eirmod.

Sit dolor facilisis et dignissim aliquyam eos luptatum qui labore ut sadipscing qui possim. Luptatum dolor invidunt in nulla sed ipsum nostrud nonumy ut lorem sadipscing ipsum. Rebum justo sadipscing ut kasd tincidunt aliquyam illum amet possim diam magna et ut invidunt. Et diam et id kasd vel justo wisi eu commodo dolor vel tincidunt dolore et. Justo vulputate nam ea veniam aliquyam sadipscing et ipsum dolores dolor minim consequat vero ea. Sed dolor justo facer te sed ipsum lorem lorem diam. Feugait nibh nonumy gubergren. Illum sit clita rebum amet in rebum soluta ut dolores. Consetetur dolor et rebum accusam dolor takimata consetetur vero aliquyam lorem te et dolores justo ea.

Sample Output H4

Amet tation at takimata duo dolor clita rebum justo eos justo labore ut. Vero ipsum sea diam duis stet et takimata et labore ex delenit. Sed tempor aliquyam enim at ea est dignissim at dolores tempor. Euismod sit takimata aliquip sit quod eum delenit sadipscing dolore facilisi sadipscing vel justo. Sed laoreet eirmod suscipit tincidunt est clita. Vero diam sed consetetur justo. Ut lorem ut et sed et clita rebum at cum sed takimata ut tation amet congue invidunt et.

Gubergren consetetur sed nonummy vel takimata rebum dolores rebum amet consetetur labore at volutpat. Et odio eos qui ipsum accumsan ea dolores labore et volutpat justo sit laoreet rebum ipsum accusam nonumy magna. Sed sea nulla iusto ipsum sanctus amet vel aliquyam sadipscing eros eleifend vel ea kasd. Rebum justo takimata. Rebum vero diam feugait rebum aliquyam dolor no ea. Diam consetetur sit. Dolores voluptua consetetur invidunt magna elitr erat facilisis et feugait elitr dolores dolor et wisi tempor. Vel ipsum ut sanctus eos invidunt dolore sea consequat diam lobortis aliquip eirmod et feugiat. Eirmod ipsum ut et kasd molestie. At labore sanctus. Ut sit invidunt aliquyam consetetur sed.

Sample Output H3

Dolor praesent at justo eos consetetur nulla dolores eu sadipscing at labore in. Ipsum stet zzril sed eirmod feugiat et et sadipscing. At liber lorem kasd duis lorem te hendrerit invidunt zzril duis ipsum rebum dolore clita takimata ipsum lorem sit. No eos no vero consetetur eos eu et exerci et voluptua. Iriure ipsum sadipscing invidunt sit ad accusam gubergren dolore. Ad in consetetur sanctus amet ipsum dolores magna voluptua clita et hendrerit stet dolore magna at.

Luptatum diam dolor kasd nulla invidunt et nibh nonumy no sanctus volutpat. Labore dolore tation facilisi blandit aliquyam velit eos amet et nonummy et consetetur. Luptatum takimata diam sanctus lorem delenit. Nobis facer rebum nam eos feugait ex nonumy no takimata sit eos. Dolore no magna aliquyam eum sit erat amet et kasd et.

Sample Output H4

Et eos laoreet duo lorem exerci et ea aliquip sed dolore ut clita lorem vero dolores in eros nonumy. Amet ea nulla aliquip feugait sed facilisis. Dolores illum aliquyam diam exerci lorem sanctus vero luptatum feugait nisl. Aliquip consectetuer amet magna vero nibh gubergren sed est vel at soluta ut duo eirmod sanctus. Duo sea id dolore et lorem et magna ullamcorper iriure et ipsum veniam sit dolores vero.

Dolore illum diam sit aliquyam duo esse delenit ea no diam aliquyam vel diam lorem. Ipsum luptatum sea lorem magna sed consequat lorem diam eirmod aliquyam sadipscing. Erat no eu takimata sea velit et labore eos sed nonummy zzril sanctus magna facilisis. Dolores ipsum amet lorem tempor diam molestie ea autem erat elit sit diam nonummy ut augue dolor aliquyam sanctus. Dolores aliquyam ipsum accusam sed diam voluptua esse amet soluta at ut sea. Tempor diam consetetur. Vero consetetur quod magna.

Sample Output H4

Sed ut amet ad clita aliquyam vero. No voluptua nisl tempor illum mazim et stet quis duis. Sadipscing est dolore consetetur dolore sed. Diam doming kasd kasd sea dolor amet et erat in at eos. Qui feugiat lobortis in magna sea lorem in sit at gubergren nisl. Ut accusam accumsan sea minim.

Et veniam nihil lorem ut duo tempor accusam suscipit amet commodo justo erat consetetur rebum consequat et facilisi. Mazim sed te velit dignissim est sea clita tempor erat ipsum et sed labore voluptua ex no. Tempor diam rebum ipsum. Justo et autem te invidunt odio dolor sanctus diam clita amet et zzril eos at diam lorem. Sanctus lorem quis te et magna ut lorem. Est soluta erat dolore magna lorem rebum et kasd. Iriure soluta sea invidunt et ipsum ipsum vel rebum vel elit ut ipsum in vulputate hendrerit lorem consequat. Duo at at stet sit ipsum ipsum ipsum nonumy duo et.