www.cloudformatter.com

cloudformatter format requests: 6,320,806    pages delivered: 14,373,397

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

Adipiscing dolor et odio duis sanctus consetetur ipsum nam sanctus et et kasd. Illum et magna nam ea sit. Feugiat gubergren voluptua nonumy. Kasd iriure invidunt. Diam ea ea vero ipsum dolor ipsum. Consetetur sit et takimata at magna sed ullamcorper accusam ex takimata accusam ut. Lorem sed velit sed iriure accusam amet suscipit dolores consequat sed invidunt.

Lobortis tempor est vel dolor tation clita erat labore wisi nisl commodo ex ipsum. Nibh aliquam aliquyam sit facilisi dolor molestie ut hendrerit erat illum gubergren consequat wisi illum ipsum nonumy nobis. Est et stet consetetur. Stet elitr et consetetur duo molestie consetetur erat ut assum nulla gubergren eos vel eos kasd eu amet stet. Et eum no lorem consequat odio rebum sit consequat sadipscing tempor nostrud stet. Eirmod molestie sed in ipsum.

Sample Output H3

Gubergren et et kasd eos amet eirmod eu et takimata nobis sit takimata. Sit dolore et sed dolore elitr ipsum amet at sit sit et hendrerit dolor nisl. Eirmod consequat no dolor kasd tempor sadipscing velit quis invidunt. Velit et invidunt. Diam est feugait et ea vero et nisl feugiat. Gubergren lorem ea rebum euismod nonumy facer et invidunt duo lorem sadipscing sanctus sed. Et ea et erat et nulla labore diam sed. Clita erat vel est erat vulputate sed amet sed amet eirmod kasd feugait labore nibh lorem veniam ipsum. Option labore ea ipsum accumsan erat hendrerit aliquyam sanctus ea facilisi eros gubergren. Sit enim lorem dolor dolores sea euismod dolor et elitr takimata te dolor sanctus ut dolor. Ea dignissim aliquam et ut adipiscing doming consequat voluptua molestie doming congue magna sed sea sanctus no enim in.

Clita sed nulla diam lorem sed sit lorem et ut amet no dolor in. Eos invidunt gubergren et lorem amet sed eirmod labore sed ut sit ad eos lorem kasd delenit eros magna. Ipsum erat erat luptatum invidunt eirmod odio gubergren praesent amet diam sit labore dolor sanctus vero cum suscipit. Stet et ipsum feugait esse dolor diam delenit amet augue quod congue elit duis aliquam. Sadipscing diam stet tincidunt facer et minim erat. Quod diam dolores lorem sadipscing erat takimata. In exerci et amet nonumy voluptua ipsum duo qui molestie illum no dolor at praesent imperdiet et rebum. Sed sed luptatum invidunt vero. Takimata sit erat vero lorem facilisi dolore sit hendrerit erat ut vulputate et molestie. Et diam tempor ut labore minim ea justo facer hendrerit ut aliquyam clita nobis magna esse et ut consetetur. Aliquyam ut gubergren eirmod magna delenit sed magna aliquyam autem.

Sample Output H4

Sed tempor voluptua justo erat diam takimata tempor elitr voluptua nisl nisl voluptua. Nisl labore vero dolor illum stet accusam nonumy amet magna. Dolores est lobortis accusam ut et sea amet sit ipsum ut facilisis sit no ut magna takimata facer lorem. Sanctus duis vulputate sadipscing eos vero esse dolores elitr takimata eirmod tempor amet. Dolore dolore volutpat praesent exerci lorem rebum et veniam accumsan dolore hendrerit clita.

Clita magna enim vel ea kasd est vulputate clita dolor nonumy labore iriure. Diam et et magna stet ipsum volutpat lorem vero dolore. Consectetuer ut dolor facilisis euismod ea sit sed tempor congue at eirmod sed kasd diam accumsan amet sadipscing. Aliquyam et diam ipsum euismod takimata. Erat ipsum ut vero duis vulputate consequat sed et sed sea et illum aliquip consequat sadipscing liber elitr ipsum. Aliquyam et eos eos vulputate et ut dolor aliquyam sadipscing ullamcorper sed et. Tempor dolor sanctus gubergren ut invidunt sit nulla.

Sample Output H4

Minim eos nostrud. Nulla voluptua ut sanctus sed diam dolores sea eros amet invidunt tempor et amet. Voluptua ipsum ipsum sit ipsum rebum dolor tempor amet takimata. Iriure dolor eum elitr elitr soluta et ipsum et ipsum at sit erat sanctus rebum. Et sed vero ipsum et dolor vero ea sed. Est takimata et aliquyam nonumy no lorem lorem et ea clita erat ipsum ipsum et amet quis. Aliquip sit takimata suscipit eirmod dolores rebum nibh eirmod no sit dolor sed. Ea clita eos tincidunt dolore elitr dolor dolore ut no erat amet amet erat sea. Diam et sanctus iriure dolore exerci.

Invidunt sanctus lorem dolore eirmod sed odio vero tempor. Lobortis sed et aliquyam diam molestie lorem molestie justo sadipscing no. Et ut amet dolores magna dolor labore lorem tempor tincidunt nonumy adipiscing iriure. Sadipscing rebum nibh sanctus tincidunt et augue lorem duo et enim sit clita. Aliquyam eos in zzril dolor dolor nonumy takimata et. Nostrud at ut praesent gubergren erat.

Sample Output H3

Iusto clita euismod justo sadipscing vulputate labore sea suscipit nulla exerci aliquyam. Labore et amet ea nulla ut. Dolores dolor tempor ut feugiat diam dolor invidunt tempor sit consetetur. Dolores dolor at lorem sed et magna zzril amet gubergren vero nibh enim invidunt sanctus tincidunt. Gubergren consequat ipsum consetetur consequat nonumy stet feugait sea placerat ipsum eirmod ipsum et exerci tempor clita. Magna gubergren justo kasd amet zzril lorem at eos et dolore tempor consetetur labore sit sit. Erat dolor sed assum at. Diam et iriure facilisis vero duo nonumy adipiscing accusam magna nulla lobortis nulla et ullamcorper lorem dolore feugait. Ea tation ipsum facer augue ipsum eros dolor duo kasd sed elitr suscipit sit diam. Quis et invidunt eros takimata ut eirmod diam sanctus tempor lorem wisi ut et elitr illum blandit. Sadipscing accusam elitr dolore iriure autem sit et accusam amet ea nonumy labore sea labore.

Kasd vel et kasd magna. Vero adipiscing te lorem erat sed ut. Tincidunt ut elitr ipsum amet ipsum ipsum amet nostrud et diam stet. Sed esse lorem sed vel feugiat tincidunt aliquyam. Vel labore minim elit eu diam. In sanctus labore invidunt voluptua ullamcorper dolore ullamcorper sanctus eos et vulputate et eirmod voluptua at. Ea invidunt et tation feugiat vel dolore.

Sample Output H4

Sea laoreet takimata nostrud imperdiet aliquyam voluptua tation duo ut. Diam dolor blandit lorem clita sit suscipit eos duis. Diam sed vero no blandit magna. Diam gubergren no sanctus diam dolor autem vero. Minim sit dolor option vero ipsum facer esse in dolor wisi sed amet elit eos elitr. In kasd amet aliquyam zzril diam no adipiscing erat no. Adipiscing tempor augue est vero voluptua. Dolor in labore no stet eirmod lorem justo sit nihil duis consequat. Invidunt autem sed exerci vulputate consequat sanctus et et sadipscing justo.

Facilisis elitr esse aliquam delenit dolor duo diam te dolor dolor ipsum eu. At nonummy iriure elit vel clita magna diam duis sadipscing sanctus vel rebum ipsum. Erat dolor et rebum et no vel ipsum quis et eu dolore. Voluptua sit aliquyam sanctus odio sadipscing illum lorem lobortis stet est et stet. Nulla gubergren luptatum sed eos. Nisl zzril ipsum ipsum assum augue dolore sit gubergren magna nihil lorem at gubergren delenit dolor stet sit. Tempor at ut hendrerit. Consetetur feugiat takimata est et molestie dolor est et ea zzril facilisis elitr.

Sample Output H4

Sea consetetur ut tempor ut ut et ut lorem at. Dolor luptatum lorem molestie sea accusam diam est eirmod. Facilisi diam elitr quis ut mazim. At nonumy et iriure magna consequat et elitr et dolore stet et. Elitr ipsum sit delenit lorem commodo. Eirmod gubergren sanctus ut.

Vero duo dolores sadipscing elitr sanctus ut sed nihil nulla. Sed et labore voluptua sed odio diam dolor nonumy ea zzril dolor magna imperdiet eos sanctus consequat et et. Vel in velit odio facilisi ut erat nonumy sea at at quis sed elitr vel nonumy ea facilisis nulla. Eirmod est ad ipsum dolor facilisis tempor ea justo justo diam sit illum laoreet tempor. Lorem sit molestie est elitr dolores accusam vel at sit consetetur magna kasd labore sed eos.

More Sample Output H2

Erat dolore gubergren diam feugait. Eirmod vel assum. Ut clita dolore molestie esse ipsum sea justo. Et ea molestie lorem labore sed erat invidunt illum lobortis ut sed dolores ipsum esse duis sanctus sed. Invidunt tation labore iriure eum enim magna feugiat dignissim takimata amet consectetuer te et vel accusam diam elitr.

Consequat rebum hendrerit dolore sanctus diam stet labore vero dolore diam magna clita dolor et molestie. Eirmod sed et dolore magna nostrud clita elit et euismod et lorem vel tation lobortis consetetur sit eu. Labore nulla duo facilisis aliquyam stet sit sadipscing dolores justo sit. Nonumy erat eu accumsan labore et aliquam dolores est ipsum amet aliquyam stet. Rebum amet amet lorem ullamcorper duo zzril tation option facilisis et amet kasd sea sed et id. Te consetetur et eos luptatum dolor lorem diam dolor wisi vel tempor. Erat quis ipsum et lorem elitr illum feugiat diam minim dolor feugiat eirmod ipsum.

Sample Output H3

Lorem liber tation lorem praesent at ex vero laoreet stet. Amet at et. At consetetur et elitr et augue at nonumy sed stet aliquyam et consequat justo at duis. Cum at ipsum gubergren erat et luptatum duo kasd vero nulla sea consetetur eos ipsum sanctus illum justo. Sed clita aliquyam takimata eos eu dolores. Invidunt kasd sanctus est duo sit lorem delenit. Eos takimata sit erat delenit elitr gubergren tincidunt dolor imperdiet sit ea sed diam dolores.

Molestie eirmod velit molestie id erat iriure voluptua nibh. Lorem et elitr gubergren nonumy praesent zzril blandit. Diam mazim diam molestie et dolor et et et at no illum diam exerci nibh rebum. Sed tempor eum dolor sit. Et vel sanctus est no tempor consequat lorem rebum nulla sadipscing eirmod dolor dolor duo duo et et. Consetetur ut dignissim eirmod zzril facilisis augue sit dolores at diam accusam diam elitr hendrerit sea duo ea sit. Et et voluptua amet et et clita dolore in kasd eos ipsum vero eirmod sed.

Sample Output H4

Sit et at sit vero et eos invidunt ullamcorper praesent sit et. Eleifend ipsum invidunt diam voluptua quis sea et eu ipsum. Ea sea sanctus dolor eos vel nonumy ut molestie ullamcorper eos ullamcorper et et. Vel molestie no justo duis invidunt sea sit kasd et nisl dolor clita lorem stet. Et accusam ex dolore ea. Lorem stet et nostrud nulla eirmod diam diam erat ea kasd praesent clita et magna erat diam.

Takimata consetetur enim dolor duis diam invidunt vero et vero ipsum velit ut tempor consequat gubergren eum amet. Euismod et at dolor. Nonumy tempor sed. Hendrerit gubergren lorem magna dolore vero no et erat sadipscing at consectetuer. Rebum consetetur qui no eum voluptua sea dolor dolore ut. Diam gubergren eirmod et voluptua ut duo. Blandit luptatum eleifend vero nonumy. Gubergren kasd ea stet nulla et justo. Et nonumy aliquyam eu eleifend amet clita justo diam accusam vero ut diam et invidunt voluptua. Consetetur gubergren rebum dolores sed et lorem lorem amet duo ea diam et sed feugiat consequat. Sadipscing et dolor sed diam eirmod lorem autem.

Sample Output H4

Lorem qui praesent diam at no invidunt consequat clita est et est. Dolore gubergren stet facilisis sit erat sanctus aliquyam clita justo vel voluptua ipsum vero et dolores vulputate ea vulputate. Lorem est facilisis et amet in magna autem invidunt et iriure id. Sed elitr consetetur ipsum sea ipsum labore accusam lorem ullamcorper consectetuer ut stet et ut et illum et diam. Dignissim ut et aliquam dolor justo sanctus ipsum. Diam no elitr eirmod nonumy takimata magna et esse dolor clita ea dolor ut. Consetetur labore lorem ex. Duis possim magna.

Dolor dolore sit sed. Sea sit invidunt aliquyam no dolor tempor magna sea dolor lorem. Magna at sed kasd iusto duis voluptua in no stet dolore dolor facilisis justo kasd erat no suscipit. Magna rebum ut takimata ea ad duo rebum. Consequat esse accumsan et elitr enim no sanctus elitr. Facilisis rebum id commodo te.

Sample Output H3

Labore labore diam ipsum vulputate nonumy dolor amet eos ut sit ipsum rebum. Lorem consectetuer est elitr et imperdiet delenit gubergren labore gubergren vero consetetur nonumy at. Lobortis labore sea stet dolor consectetuer. Vero ut amet sit accusam nisl justo nonumy stet justo erat. In sit lorem takimata magna nulla nonummy ut sit aliquyam clita. Amet diam sit vulputate labore nam. Gubergren aliquyam accusam sea odio sit suscipit dolore elitr sed lorem ut lobortis et eu. Ex luptatum sed illum duis no takimata sit amet et labore esse consetetur accusam option autem sanctus. Justo te eirmod elitr et diam justo labore esse. Aliquyam consectetuer laoreet amet esse elitr sit molestie sanctus eirmod assum sit. Et aliquyam lorem clita accusam eum consequat sed nulla tation.

Tempor nulla tation enim sit. Sed nonumy elitr accusam nulla magna nonumy lorem dolor in. Ipsum duo sit duo est duo. Labore ipsum ipsum eirmod duo sanctus. Et at lorem nihil stet clita.

Sample Output H4

Voluptua et nonummy augue. Praesent ea accumsan et. Kasd vel esse hendrerit ea sed dolore aliquyam. Consequat odio dolor dolore magna erat dolor. Diam diam et nonumy diam accumsan amet. No eos at justo aliquyam eleifend tincidunt. Feugiat dignissim nulla ea ipsum gubergren accusam aliquyam luptatum ea esse sit ipsum invidunt gubergren diam zzril no. Wisi dignissim ipsum sanctus et eirmod clita at est et kasd wisi et ipsum et. Amet sed diam vel magna justo vulputate ut iriure accusam dolores elitr justo rebum lorem lorem. Aliquyam sanctus euismod velit ea labore voluptua invidunt soluta lorem laoreet est eirmod odio. Imperdiet diam consetetur ipsum sea et ea rebum erat et diam molestie facer justo dolor.

Sea kasd augue elitr. Dolor nisl sadipscing rebum sea sed. Duo ut est et stet ea consequat ipsum dolor dolore et vero. Doming elitr illum et lobortis dolores sit lobortis iriure sed voluptua sadipscing erat gubergren dolores vulputate lorem ipsum. Tempor amet clita stet gubergren eirmod diam et sit eirmod id enim diam diam. Sed amet vel eum no ullamcorper sit magna dolor et sed sed labore tempor et stet ipsum.

Sample Output H4

Tempor nulla elit erat elitr erat diam sadipscing. Ut sit duo molestie ipsum sed tempor. Sanctus facilisis diam consequat ullamcorper enim nonumy sadipscing magna sit sadipscing justo odio at et sit. Consequat ipsum euismod lorem kasd volutpat ad dolore sed dolor. Molestie in eirmod diam sit dolore sea et eos rebum at ut sed. Gubergren dolore duo at diam feugait lorem sit diam sit vel erat stet nostrud sea placerat. Voluptua dolores ipsum ut sea in.

Ipsum duo exerci imperdiet adipiscing no duo dolore ipsum amet invidunt rebum takimata nam accusam vel accusam ea tempor. Accusam vulputate stet stet magna erat dolor. Et augue ipsum eos rebum. Est in magna ipsum quis sadipscing. Magna voluptua at facer in diam nonumy sit magna ipsum sadipscing est elitr dolor. Accumsan dolor nulla ipsum sed duo dolor nonumy ipsum rebum lorem labore sit nonummy est ad. Facilisis in sed te vel elitr. Ut magna accusam ipsum id gubergren praesent in te justo dolor aliquip vero amet ipsum sed erat eirmod. Nonummy consetetur duis nonumy. Voluptua suscipit sed diam ipsum est tation nonumy diam ut dolores no clita lorem rebum magna. Tempor ut magna sed consectetuer facilisi facilisis vero consequat sit ut odio.