www.cloudformatter.com

cloudformatter format requests: 6,324,423    pages delivered: 14,379,982

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

Sit justo laoreet diam et ipsum erat magna accusam sadipscing vero lorem nonummy. Eirmod nibh et stet dolor nonumy dolor elitr in dolore. Accusam ex iriure molestie sea eirmod sit molestie. Et erat et gubergren dolor sit tempor rebum. Sea mazim lobortis clita amet delenit dolor et sit vulputate dolor sit iusto id kasd. Dolor invidunt dolore. Magna suscipit eos amet. Adipiscing dolor tation rebum lorem labore dolor vulputate eirmod consectetuer justo sed elitr sanctus dolor lorem dolore esse erat.

Dolores ut amet stet rebum ea diam dolores eos. Justo at vel feugiat et est hendrerit ut diam amet vero esse. Elitr et kasd delenit invidunt. Delenit dolore diam sed ea ea gubergren dolor amet ut ea autem magna duis ipsum wisi. Vel accumsan diam et id dolor eirmod. Elitr magna voluptua dolor sadipscing ipsum ut aliquip vero no sit elitr amet amet ut gubergren sea gubergren sit. Imperdiet sea amet. Sadipscing labore adipiscing diam sea lorem accusam magna eirmod. Eos et et.

Sample Output H3

Eleifend labore kasd sea nonumy doming sed eirmod amet elitr dolores clita. Dolor duo velit ut no dolore gubergren in soluta amet in et velit et ipsum eos. Labore dolore stet dolor. Tempor magna eirmod duis labore dolore sit facer autem in kasd invidunt. Accusam quis lorem dolor.

Veniam ipsum exerci lobortis ut. Aliquam sanctus et sit elitr tincidunt amet magna ut aliquyam accusam dignissim soluta ipsum diam dolor. Eum dolores nulla dolor sadipscing vel clita sea adipiscing quis sea vero justo nihil hendrerit commodo autem aliquyam diam. Invidunt sanctus invidunt kasd possim amet. Aliquyam dolores ea. Feugait eu invidunt clita. Diam eos euismod sadipscing ipsum elitr. Rebum diam no et dolor nihil eos takimata dolor sit dolores iusto lorem duis. Dolore praesent iriure mazim sed dolor nam soluta euismod. Adipiscing dolor takimata stet consectetuer blandit exerci magna iriure eirmod accusam adipiscing. Nam hendrerit amet sed dolor nulla duis lorem sanctus sed esse amet clita amet.

Sample Output H4

Et facilisis ullamcorper ut blandit praesent te ipsum consetetur sit gubergren. No amet kasd vel sit nonumy ut ea imperdiet ut lorem no. Labore sed duis aliquip. Accumsan dolores et kasd duis eum molestie aliquyam in lorem dolore sit et dolor gubergren. Nonumy clita augue diam amet sanctus et erat vero ipsum eos vel eros labore eos ipsum. Ad autem ex sed commodo ex minim rebum et autem dolore dolore option sit ipsum dolores. Sed dolores lorem quis stet dolore dolor tempor.

Et tempor accusam diam minim labore justo vel accumsan gubergren. Gubergren facilisis dolore diam sanctus erat. Dolor consetetur magna. Aliquyam sadipscing takimata vulputate lorem consectetuer nisl vero. Lorem duis invidunt sea gubergren justo duo.

Sample Output H4

Eum amet at ullamcorper erat duo eirmod dolores. Ut et duo takimata veniam. Et hendrerit nonummy stet sed ut est et clita magna duis ipsum feugait. Velit elitr sanctus blandit aliquyam autem dolor at facilisi ea eirmod sit dolore nonummy praesent vero amet dolor. Lorem nonumy blandit elitr aliquyam iriure duis nostrud duo ea sed ipsum accusam erat consetetur ut sadipscing kasd. Gubergren clita stet consetetur amet minim amet nonumy lorem feugait amet tation dolores ea vel takimata. Dolore amet illum voluptua feugiat nonumy erat kasd ea amet duo eos tempor et accumsan rebum. Tempor nonumy amet amet dolores ipsum feugiat. Eum amet nisl diam at nulla ut et dolor commodo consetetur.

Aliquyam accumsan elitr dolore nisl at dolore dolores et no sea consetetur et ea mazim diam eos ea. Zzril vulputate justo nonumy id blandit in. Sadipscing sit dolore nostrud nonummy duis consequat sea ea no clita eirmod dignissim lorem dolore sit ut. Lorem et et zzril dolore voluptua consectetuer no ipsum velit. Aliquam sed lorem stet. Eirmod amet nonumy vel dolor duis invidunt vero consetetur dolore. Commodo amet ea aliquyam vero nobis ipsum cum et tempor erat.

Sample Output H3

Voluptua laoreet luptatum amet dolore erat amet feugiat clita clita gubergren invidunt in et. Tempor labore sadipscing ut lorem iriure ut gubergren et ipsum erat duo elit nonummy. Odio gubergren elit et. Et clita invidunt at ea nam sed ea. Est dolor consequat consectetuer consectetuer ipsum dignissim amet placerat ut id elitr minim enim dolor id clita. Sit diam no sit at et erat facilisi nulla.

Placerat dolore dolores sit accusam. Aliquyam et lorem ipsum diam eos nonummy tempor vero sea eu magna erat labore ea lorem gubergren voluptua eirmod. Lorem voluptua elitr ipsum sed invidunt sea. Lorem amet tincidunt nonumy in velit et laoreet et vel eirmod et magna dolor eleifend labore. Kasd enim at eirmod in consequat diam zzril sea. Ipsum aliquyam dolor accusam sed et sit eirmod aliquyam minim nonummy et facilisi vel voluptua duis eos et. Magna takimata consetetur nibh ut amet. Stet et elit clita dolor exerci.

Sample Output H4

Dolor elitr takimata hendrerit sit est option at consequat qui accusam. Takimata ea kasd sed ipsum duo sit. Dolores at iusto facilisis accusam feugiat dignissim sed facilisi tempor sed justo diam sed. Cum diam possim voluptua autem sit consequat nulla eos ipsum stet ipsum lorem. Possim gubergren qui dolore eos ea suscipit et vero ut labore soluta accusam. Duo sed dolor feugiat. Qui sea sit stet et. Gubergren assum et ea amet sea dolor voluptua lorem ipsum tempor tempor facilisis duo te.

Elit labore exerci sit aliquyam feugait. Magna sit lorem tempor facilisis laoreet sit erat sed sed rebum gubergren esse sanctus gubergren congue. Erat accusam vel sed consectetuer dolor delenit invidunt dolor gubergren accusam erat. Eirmod stet sed erat et sadipscing tincidunt takimata tation. Consequat sit ipsum ipsum lorem duis duo hendrerit ipsum. Et autem no diam sit duo facilisi labore diam feugiat clita dolore sit veniam.

Sample Output H4

Magna at eos justo accusam sed aliquip amet clita consetetur amet duis dolore ullamcorper aliquyam dolor elitr. Facilisis eos ut nonumy nostrud et stet sea gubergren erat. Dolor augue ipsum elitr ipsum enim et tempor at consequat tation erat ea possim takimata ut. Elitr et praesent kasd accusam sea eirmod commodo iriure sadipscing dolor vero dolor stet iusto et. Labore commodo aliquyam est et sed iusto autem dolores gubergren duo amet no blandit liber commodo elitr illum nonumy. Vero eum odio magna sea sadipscing diam sit iriure eos et ut dolore eirmod. Vero ipsum vero aliquam magna aliquyam dolor nonumy duis ipsum accusam tempor consetetur feugait. No dolor sit no ipsum et in amet sit enim dolor nulla ipsum sadipscing. Labore eos accusam ipsum sed sea dolor et. Dolore gubergren placerat et kasd justo takimata delenit tempor justo rebum vero justo elitr labore dolore lorem velit sed. Sed erat amet dolor voluptua invidunt volutpat lorem sit feugiat ipsum ut eos nibh lorem sadipscing magna accusam eirmod.

Liber et nobis aliquyam illum sed eleifend eirmod ea aliquyam ipsum. Kasd aliquyam diam molestie autem sit tation dignissim takimata blandit eos et. Eros elitr no diam dolor erat dolor lorem enim at rebum in dolores quis. Et nulla duis aliquip et tempor tempor dolor assum ut est. Imperdiet tempor dolor.

More Sample Output H2

Enim takimata eos sanctus. Dolor rebum dolor vel tincidunt delenit et facilisis facilisi nonummy est diam ex. Justo in aliquam justo ut rebum velit eos delenit lorem. In stet est ea kasd. Consequat minim quod dolores ea amet autem duis vulputate et vero ut diam esse sanctus lobortis takimata.

Lorem magna duo kasd ipsum rebum duis ipsum sed dolore dolor esse. Nulla duo blandit iriure kasd. Wisi sed accusam diam et eirmod aliquyam dolor amet consequat duo labore diam diam est clita. Dolor nonumy est ipsum aliquam dolor vel erat nonumy diam gubergren. Diam ut rebum imperdiet augue dolores eirmod sea gubergren esse iusto et consequat. Amet eu ipsum clita lorem nulla wisi stet molestie eirmod aliquyam no lorem nisl tempor dolore nibh sed. Eos no nihil lobortis sanctus. Et duo ut nonumy dolores consequat. Dolores et duo invidunt magna diam. Aliquip ipsum minim. Te sed et labore feugiat sed ipsum sanctus diam ipsum nostrud eirmod.

Sample Output H3

Veniam invidunt sed. Lorem suscipit enim iusto ullamcorper elitr te lorem sit nonummy nisl facilisi. Ipsum minim sed gubergren ea takimata consequat stet diam volutpat kasd eros nulla. Sit et lorem eirmod sed stet sed lorem takimata dolor et illum sed exerci voluptua sed gubergren. Et adipiscing consetetur consetetur takimata ea sit erat facilisis nonumy hendrerit elitr nisl clita hendrerit.

Et ut et veniam sadipscing sit nihil ullamcorper gubergren aliquam ea sed sit consetetur labore tation et. Magna at sed voluptua amet sadipscing clita est dolor ut rebum. Consetetur elitr vero ipsum takimata clita blandit gubergren invidunt et dolor tempor ut veniam magna dolor aliquyam. Nonumy ex lorem lorem duis voluptua. Amet dolores labore zzril nam consetetur sit hendrerit aliquyam stet et eirmod ipsum eirmod et lorem stet tempor tincidunt. Tempor nonummy lobortis kasd.

Sample Output H4

Vero amet aliquyam aliquyam diam no lorem sed amet rebum nisl amet praesent diam magna no clita. Nulla autem kasd nulla dolores rebum invidunt dolores et erat et diam feugait nonumy lorem ea clita amet. Et ut no eirmod esse sadipscing sea clita duo aliquam zzril erat eos. Feugait blandit stet no amet erat et consetetur eos consetetur esse minim sea dignissim ea. Stet laoreet et dolores lorem quod et sed exerci zzril no duis justo zzril aliquyam amet elitr. Ut est sed liber consequat eirmod magna et zzril ipsum amet diam invidunt labore est at et vero.

Invidunt et duo ex et duo ipsum ipsum voluptua sadipscing est lorem ut clita qui gubergren et zzril. Dolore tempor vel sadipscing. Vero dolor elit ullamcorper et vero dolores magna ullamcorper molestie no et invidunt. Eos duo qui sanctus diam tation sadipscing sit at eos amet iriure enim volutpat justo. Ipsum ut et lorem voluptua minim takimata sit magna vel no suscipit erat ipsum ipsum ex vero. Kasd tempor dolor. Sit est diam feugiat kasd takimata justo diam gubergren lorem. Wisi ut tempor dolor eirmod magna facilisi aliquyam et dolore kasd vel ipsum dolores nibh ipsum tempor. Lorem takimata magna magna te esse sit ipsum stet liber. Sed ipsum at gubergren duis eu ea labore soluta justo nulla ex in tincidunt sit nonumy facilisi vero.

Sample Output H4

Ipsum praesent diam at tincidunt magna adipiscing sea magna dolor. Duo tempor et nibh amet tempor esse sanctus lorem clita invidunt ea tempor eos laoreet sed et. Ipsum consetetur minim sed lorem dolor diam nonummy soluta sit kasd dolor lobortis. Ullamcorper invidunt clita ut eu amet dolores ipsum lorem duo autem in blandit. Justo erat est. Consetetur consetetur et.

Et et amet sit consequat ut stet nulla sanctus eos et sit. Kasd sanctus eum. Dolore sit sed commodo tempor consectetuer stet duis veniam ut clita tempor. Dolor nisl tempor amet elitr labore et euismod blandit ea dolores. Nonumy dolores labore et ut lobortis amet consetetur rebum.

Sample Output H3

Kasd tempor et qui odio facilisi accusam. At kasd ut diam lorem feugait ut justo vulputate molestie sit consequat. Ut et ipsum wisi diam. Tempor sit stet lorem nam ut. Nulla stet no rebum feugait et vel. Ut amet diam diam tempor. Lorem esse nonummy in rebum zzril diam iusto duo ut est diam rebum nostrud eos clita. Dolor sadipscing praesent dolores est gubergren elitr at veniam luptatum gubergren zzril quod dolor dolore eos. Tempor takimata lobortis aliquyam sadipscing ipsum ipsum et nibh at. Dolore elitr justo sed zzril sed sed.

Kasd augue diam. Duo erat ipsum duo sea mazim sed lorem. Labore justo lorem et sed lorem eos facilisis vel et ut et minim sanctus feugiat. Sit ea sit sed invidunt eirmod delenit ipsum justo accusam vero lorem ut stet eirmod labore. Amet no illum nihil nonumy labore tempor at elitr augue ipsum quod soluta at. Invidunt erat takimata diam et takimata sit stet aliquip dolor et at erat vulputate dolor wisi iusto. Tempor dolores ipsum stet.

Sample Output H4

Dolore aliquip dolores facilisis hendrerit kasd dolor invidunt dolor augue duo eos sanctus kasd nonummy et diam sit rebum. Duo sea sed sanctus consequat amet lorem in nulla sea. Laoreet accusam sit amet. Accusam laoreet eirmod sea erat. Erat sit aliquam illum augue dolore diam ea in duo. Sanctus sadipscing takimata amet nibh amet. Feugiat ipsum suscipit diam ea rebum sanctus.

At nobis vero ut accusam lorem nulla ipsum nonumy invidunt dolores amet erat ut ea dolor facilisis velit. Ipsum ullamcorper dolor. Vero laoreet clita labore amet aliquyam velit est justo. Duis ea dolore dolores quis feugiat sed magna gubergren est sea. Magna no nonummy lorem laoreet invidunt laoreet dolor takimata at et takimata dolores sit consetetur ea. No laoreet dolore ipsum dolor voluptua et sit justo eirmod. Vero est consequat eos sit vero nonumy invidunt lorem sed dolores amet dolor est. Duo lorem at lorem quis duo voluptua adipiscing amet eu. Ut amet dolore. Justo lorem dolore aliquyam diam dolor magna. Sanctus sadipscing ipsum elitr autem ipsum.

Sample Output H4

Ipsum elitr clita elitr lorem at justo vero amet erat diam imperdiet vulputate at lobortis iriure ut diam. Augue blandit duo duis doming molestie et et sanctus et elitr lorem consectetuer in iriure placerat elitr ipsum. Et ipsum ea est labore sadipscing eum cum accusam magna lorem gubergren. Enim ipsum duis laoreet invidunt kasd et liber dolor accumsan ad takimata. Magna facilisi ipsum amet dolor amet ut sadipscing takimata. Sit enim commodo iusto ea duo dolor. Dolore gubergren et ad esse magna eos est magna laoreet est dolor accumsan diam dolor kasd kasd. Consequat at clita lorem clita ea at at volutpat no vel velit gubergren tempor sit justo sed ipsum. Duo sed et eos stet ut sadipscing eirmod sanctus.

Dolores est gubergren eros. Sadipscing tempor dolores et consequat sanctus consetetur consectetuer ea lorem. Duis velit sit invidunt ipsum amet takimata eum magna in dolore elit. Duo consetetur et. Dolore ullamcorper erat consetetur labore amet takimata elitr in duis ipsum nonummy stet no sea. No lorem vel eirmod vero sea gubergren. Lorem consetetur no in vero ipsum dolor iriure. Lorem accusam eos tincidunt. Erat vel consetetur ipsum ut duo est justo qui dolor. Sanctus gubergren et sadipscing consequat imperdiet duo voluptua dolore nibh justo. Dolores amet erat commodo diam in elitr tempor ipsum eirmod erat accusam labore consetetur augue lorem ipsum diam.