www.cloudformatter.com

cloudformatter format requests: 1,570,588    pages delivered: 4,134,422

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

Congue exerci sadipscing eos sed elitr vel. Takimata eos nisl justo. Aliquip stet augue est sed elitr ea eirmod dolores no et sadipscing ipsum. Exerci exerci facilisis sadipscing elit sed aliquyam sed vero vero et stet vero est. Dolore et gubergren sanctus tempor eum lorem nibh lorem est sed sanctus sed.

Et aliquyam aliquam magna dolore ipsum stet. Justo amet erat magna sanctus dolor dolore. Volutpat gubergren vel ut dolore stet ullamcorper dolor elit nulla magna magna nonumy ullamcorper et ipsum diam mazim est. Veniam consetetur eos. Invidunt diam vulputate quis lorem eos dolor diam dolores sadipscing euismod amet nulla ipsum at takimata elitr eos. Elitr labore dolore ullamcorper eos placerat autem sed feugiat illum nonumy sit vero tempor kasd ipsum et. Amet ipsum eros exerci diam autem amet sed nulla et illum erat erat. Nonumy kasd ea et eirmod feugiat sadipscing justo vel. Duo at nulla. Nonumy sea dolores et in invidunt dolor vero. Zzril erat labore erat nisl ea tincidunt voluptua rebum diam nonumy sit minim.

Sample Output H3

Facilisis lorem dolor diam adipiscing dolor clita dolore aliquyam lorem nulla. Lorem ut hendrerit amet et ea possim ut dolore. Sit nonumy lorem takimata accumsan invidunt nonumy nonumy elit eros dignissim facilisi esse eirmod aliquyam accusam kasd eum tempor. Erat tation amet enim eirmod diam sanctus sed. Zzril eos eirmod takimata feugait consequat sed et accumsan est elitr doming amet in dolor dolor. Vel assum et labore lorem sadipscing magna nonumy sed takimata consetetur sea justo dolore rebum. Est magna ipsum amet eleifend erat dignissim ipsum. Tempor iriure clita tempor vel justo ipsum ut placerat sadipscing dolores et et dolore aliquyam sanctus. Justo kasd dolor dolor suscipit possim sanctus erat amet at amet consequat zzril qui duo nonummy. Dolores et justo amet veniam sed sit sed imperdiet.

Ea dolor accusam et nulla dolore at consetetur illum sit amet dolor labore elitr tempor sadipscing ipsum labore. Exerci ipsum vero facilisis diam. Invidunt ea takimata accusam aliquip takimata no amet aliquyam. Ipsum ipsum sanctus sanctus dolor at nulla sea diam amet erat invidunt eu takimata rebum sadipscing sea dignissim dolore. Vero at te erat sed dolore erat diam dolor amet sed dolor esse consetetur eirmod laoreet. Erat exerci et diam commodo kasd euismod kasd. Accusam ad takimata lobortis et diam sit magna est voluptua erat consetetur autem justo et cum euismod. Nulla feugiat et. At nostrud stet facilisis aliquyam erat no erat dolores dolore justo takimata clita est et at.

Sample Output H4

Magna lobortis eos vero consetetur et no diam gubergren liber eos justo ut rebum blandit justo. Luptatum autem nisl sadipscing dolore et et vero. Voluptua ut nam dolores dolore sit sed sed erat no kasd dolor et et molestie sanctus. Laoreet est ea ad aliquam et sadipscing eirmod molestie labore. At ipsum amet wisi et rebum sit odio ut. Ut sed placerat vero ut no voluptua lorem aliquip consequat justo. Gubergren justo tempor gubergren option. Diam ad ut tempor clita ea dolor facilisis no sit esse. Consequat clita aliquam sit. Sed sadipscing facilisi assum stet adipiscing eu et dolore feugait accusam vero. Sed diam eu et et eirmod diam dolor lorem voluptua eos ut amet.

Option vero sanctus amet ea magna gubergren adipiscing sea dolore at sed dolore lorem lorem feugait. Lorem vero ipsum lorem diam molestie augue. Amet hendrerit clita eirmod et kasd minim nonumy. Dolor at ipsum tempor minim erat justo ut vulputate in sadipscing gubergren sit consetetur amet imperdiet. Sadipscing at consetetur ut sit magna dolore molestie dolor gubergren dolor vel at et magna nulla dolore. Invidunt et minim est gubergren dolores at nihil. Accusam tincidunt ipsum. Stet nostrud suscipit justo et consetetur sadipscing takimata et elitr.

Sample Output H4

Sea nonumy voluptua luptatum nisl stet qui elitr consetetur doming voluptua veniam ullamcorper magna at gubergren elit nibh. No ipsum ea ut eirmod labore ipsum at lorem tempor ad adipiscing consequat. Diam ipsum sed ipsum dolor takimata sea. In dolores esse eirmod. Adipiscing vero luptatum. Dolor ipsum justo diam amet elitr lorem velit amet cum tempor lorem.

Gubergren eos nonumy amet erat duis kasd. Justo et sanctus nisl option. Et diam facer ut enim et et molestie. Rebum lorem gubergren vero consetetur wisi ipsum est blandit tempor cum et ea est magna nulla dolore magna velit. Tempor et aliquyam tation. Est no rebum odio erat luptatum feugait sed no at augue duo. Amet est amet sed. Dolor amet sadipscing vulputate dolore takimata suscipit sit ipsum sit et diam. Exerci labore in nonumy nam vulputate illum dolor eirmod gubergren duo ut aliquyam soluta et takimata labore. Consequat elitr invidunt diam minim clita tempor hendrerit esse dolores ut ad tempor ut dolore.

Sample Output H3

Duo est erat duis tation consetetur tation rebum invidunt nulla magna eos facilisi at consetetur dolor. Dolor nisl vulputate elit vulputate diam ipsum rebum dolor ea clita eum nobis dolor magna et stet. Magna laoreet aliquam. Ea sed rebum elit ex. Et magna sed sed sit gubergren lorem commodo consetetur tincidunt. Sed nonumy ut suscipit quis.

Soluta sanctus elitr voluptua stet erat elitr nulla eu. Aliquyam clita ad takimata dolor ea minim accusam eros accusam dolore elitr. Voluptua tempor volutpat amet sadipscing sadipscing adipiscing stet aliquam. Consetetur diam stet stet quod amet augue volutpat ut doming sadipscing. Magna clita nonumy invidunt stet at sit duis sed sed kasd ut et suscipit tincidunt aliquyam et. Ipsum dolor consequat erat sanctus erat euismod dolor justo ipsum rebum. Luptatum sit velit dolores et suscipit consetetur diam. Diam vel eirmod sea ipsum dolores tincidunt consequat ut gubergren wisi dolor consetetur. Zzril nonummy invidunt et no sadipscing clita et duo.

Sample Output H4

Laoreet lorem aliquam amet consequat justo justo no sea possim. Vero duo soluta stet est ut. Consetetur rebum ipsum odio et no tation ut ut duo dolor ut sanctus voluptua ipsum et stet vulputate est. Gubergren diam rebum mazim tempor sea diam et qui et. Tempor takimata diam vero sed ut justo. Gubergren clita dolor et nisl elit dolore sit at nulla erat diam te amet diam sit lorem.

Et voluptua ea lorem ex rebum. Sed amet consectetuer sit eum ut sadipscing est quis ut. Takimata erat clita ipsum placerat. Elitr no duis tempor eirmod aliquyam lorem lorem sed sea tempor sanctus consetetur odio dolor justo ea est. Lorem voluptua sed est rebum eos suscipit elitr invidunt dolor. Duis vel soluta gubergren ea sed et aliquip accusam duis lorem sit est et sanctus amet wisi ipsum. Eirmod rebum vulputate. Nulla eos ipsum nisl velit diam sit lorem consequat.

Sample Output H4

Suscipit dolores et duis diam kasd. Vel labore eum adipiscing aliquyam eos vulputate sea vero tempor. Eos at dolore no et gubergren gubergren dolor nisl sit et et. Ut eirmod labore at est sed accusam sea dolor ex magna sanctus sanctus no sadipscing vero. Eu suscipit enim vero tincidunt aliquip dolore. Duo duis molestie est nonumy suscipit nostrud delenit sit. Eros nonumy duo ipsum sit ea voluptua accusam feugait nulla dolor sed sit dolores iriure sadipscing.

Et eos nonumy consequat dolor vero erat duo ipsum ipsum stet sed diam sadipscing at diam ex. Stet et minim autem sit accusam sea takimata congue elitr. Vel diam aliquyam eos ut at kasd. Nonumy tempor nostrud ea amet adipiscing lorem no dolores eirmod no justo clita invidunt. Commodo gubergren ea at voluptua dolores sed ad consetetur iriure nulla praesent iriure et ex et duo aliquyam. Quis nihil lorem diam enim duo zzril stet diam justo ipsum. Zzril duo duo. Stet rebum amet sanctus amet clita eum.

More Sample Output H2

Est stet clita elitr et luptatum hendrerit. Amet at consectetuer quod dolores ut sea dolore est eirmod vel possim et no labore at ut in. Duo accumsan dolor ea. Magna takimata sit lorem justo accusam ut et stet labore et iriure invidunt eos quis sed et ex. Eos lorem te ipsum sit augue esse takimata et suscipit. Ipsum vel amet feugiat et sed. Dolor et illum aliquyam vero eros tempor euismod hendrerit nonumy. Diam aliquyam tation sadipscing elit. Est sed no lorem vero dolore stet sit clita nonumy tempor. Ipsum facilisis diam tempor accusam odio facilisis.

At justo kasd blandit accusam illum sit autem facilisis ipsum. Dolor justo vero sed duo nulla lorem nonumy nam nonumy sit vulputate dolor voluptua euismod nonummy quod nulla. Diam autem et clita erat gubergren lorem. Nisl et duo accusam dolores sed ea ea sed dolor amet clita feugiat sanctus sanctus. Et delenit consequat tincidunt in sea ipsum magna diam accusam sea at diam takimata sit magna. Et eum sed.

Sample Output H3

Amet autem dolor kasd aliquip. Lorem justo elitr praesent takimata veniam nostrud ipsum erat. Tincidunt elitr ad zzril dolore nonumy et at et est diam rebum. Vero te et dolor kasd ex est diam zzril gubergren elitr et sit erat. Blandit adipiscing rebum dolor invidunt commodo dolor assum sed et eum amet dolore. Nam aliquyam est duo accusam ipsum. Iriure eu invidunt iriure sed duis sea ea accusam consetetur feugiat lorem diam vero nonumy sed elitr. Ipsum aliquam et suscipit et dolores justo dolore stet gubergren congue.

Erat clita et voluptua duo diam ipsum eum ipsum sadipscing. Nulla quis clita justo labore et ad eirmod clita ut duo rebum et tempor no ea at consequat. Lorem dolores commodo suscipit dolores eirmod nonumy ipsum et. Diam autem est. Ipsum clita sadipscing est aliquam. Suscipit kasd amet vulputate nonumy dolore consequat aliquyam nonumy no hendrerit. Et magna sadipscing diam elitr est amet erat esse vero dolore justo et quis rebum et. At commodo aliquyam at duo diam nam facer voluptua stet sanctus feugait et voluptua clita eos.

Sample Output H4

Sea sit ut odio eirmod gubergren eirmod est vel duis et. Justo eu nulla sea stet. Imperdiet invidunt lorem ipsum est adipiscing ea tation nonumy iusto facilisi ipsum. Et gubergren clita aliquyam justo. In stet accusam ipsum rebum kasd takimata aliquam no id iriure. Sed sit est iriure diam amet tincidunt delenit elitr facer imperdiet accusam ex dolore ipsum et est. Takimata sed no ea vel stet voluptua enim.

Ipsum ea takimata et. Accumsan sit dignissim clita hendrerit gubergren clita ea laoreet aliquam ipsum. Amet erat magna nulla elitr. Duo ipsum rebum sanctus voluptua dolor sadipscing ipsum erat lorem. Et sed et dolore ut at ea dolores et. Gubergren amet minim invidunt amet imperdiet amet elitr amet et dolor vero. Takimata dolor sit labore tincidunt et et invidunt nonumy. Dolores takimata facilisi amet est. Kasd et sed ipsum sed eos sea volutpat justo. Sed ipsum sed et.

Sample Output H4

Sadipscing elitr euismod labore et elitr gubergren duo dolor amet et et sit commodo nonumy. Accumsan luptatum ut lorem gubergren nisl iriure labore hendrerit minim rebum in vero sanctus no nonumy et invidunt stet. No labore et qui vulputate vero et clita aliquam at no. Ut sed tincidunt eu rebum vero lorem no illum placerat quis euismod. Luptatum vulputate imperdiet takimata consectetuer lorem no invidunt et est et consetetur ea dolor tempor labore. Consequat quis at elitr dolores lorem sit augue voluptua.

Est feugiat velit hendrerit dolor euismod at gubergren vero est. Voluptua lorem est. Vero lorem dolores. Ipsum dolores at nonumy sea sit labore et autem gubergren. Sed iusto tincidunt sea magna elitr ipsum diam magna eos labore velit no diam. Dolor elitr tempor ipsum sed rebum sit sea sed labore vel. Sed hendrerit augue odio sed sanctus augue sit lorem. Sed vero at ut sed est feugait diam diam et eirmod nulla ipsum voluptua dolore amet invidunt. Magna eu sit et sit ut no et volutpat invidunt stet sed delenit clita magna qui sit.

Sample Output H3

Cum eirmod elitr consectetuer ea accusam ea sed autem autem tempor nonumy quis accusam illum ea et et amet. Feugait consequat sanctus. Takimata ea aliquyam consequat et labore stet vel ut vero. Consetetur suscipit in ut ipsum invidunt takimata consetetur feugait facilisis. Magna diam et dolor kasd et sit suscipit vel sanctus dolore vel stet consectetuer. Sed takimata et et clita dolor autem nonumy eirmod sanctus diam aliquyam dolor invidunt ut ipsum. Voluptua kasd duis tempor nisl eos eos sed eum id no vel sit.

Ea sadipscing sea wisi clita exerci duo in molestie nisl erat sed ut. Lorem aliquam erat. Justo sea dolor vero vero consetetur amet gubergren sed duo consetetur nisl iriure sed dolores iriure clita dolor sed. Sed dignissim no invidunt diam delenit. Enim facilisi lorem nonumy et duo dolor diam magna.

Sample Output H4

Ipsum ipsum ut dignissim ut et ea ipsum voluptua nonumy takimata velit aliquyam et no amet clita. Lorem et et sed dignissim et ipsum. Nihil voluptua justo justo. Molestie congue amet et aliquyam. Hendrerit invidunt id invidunt nam dolor dolor consetetur. Justo takimata stet sanctus diam dolor. Magna diam at sed dolor dolore in volutpat consetetur amet iusto at qui voluptua erat stet erat. Iriure quis eos magna duis magna justo facer et et placerat sadipscing. Dolor vel vulputate dolores vero doming ipsum et odio et vero ut ullamcorper et kasd et in diam sadipscing. Te tempor blandit ut sit ea invidunt sea dolore augue et erat ut invidunt consetetur facilisi erat. Est tempor diam rebum consequat accusam option.

Nulla elitr magna dolor erat commodo voluptua diam facilisi dolores rebum dolores no no consetetur dignissim. Vero iriure facilisi accusam voluptua ipsum iriure rebum et dolore sea diam dolores dolore diam duis at iriure dolores. Dolores aliquam autem no. Eirmod placerat ea amet dolor sed dolore. At rebum et minim ipsum diam diam invidunt amet ut vero duo vulputate diam. Eirmod aliquip et delenit sed diam. Esse magna dolor dolor labore magna feugiat in. Vel at eirmod facilisi labore at dolore et sadipscing diam consetetur dolor ea diam elitr diam. Molestie diam vulputate stet ipsum diam vulputate.

Sample Output H4

Magna et lorem justo elitr aliquyam amet rebum kasd elitr invidunt et volutpat wisi. Duis nonumy sit amet est vulputate invidunt sanctus duis. Vel assum augue at duo nisl sit ipsum takimata commodo et vero sed. Ut facilisi voluptua veniam amet vero dolor sit nibh dolor esse sea lorem iriure et eos. Diam suscipit ea dolores sit et eirmod gubergren lorem dolores magna erat stet. Et lorem eleifend in dolore dolore dolor diam sit hendrerit sadipscing sea doming. At et nulla accusam labore ipsum est consequat no sit. No et justo rebum facilisi consequat et. Clita clita euismod invidunt dolor dolores. Velit nam duo consetetur vero elitr accusam ipsum. Dolores takimata consetetur amet facilisis justo invidunt nonumy delenit blandit eos.

At aliquyam eirmod tempor diam. Duis diam et facilisis tempor sadipscing. Ipsum et ea diam sit assum justo duo aliquyam luptatum et. Tempor elitr at lorem voluptua et consetetur hendrerit dolor diam aliquam suscipit molestie ea et amet. Duo lorem takimata dolor et accusam.