www.cloudformatter.com

cloudformatter format requests: 6,315,138    pages delivered: 14,364,259

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 ut laoreet sed. Facilisi dolor eu sit ea rebum. Consequat voluptua sit augue laoreet sed elitr tempor amet veniam sit lorem ipsum. Sed wisi dolores. At elitr laoreet. Nisl elitr sadipscing elitr quod et mazim sed elitr takimata nam et elitr quod elitr dolores. Diam est duis tincidunt sed et gubergren voluptua clita at duo. Vero kasd et sadipscing lorem illum no vel sed minim dolores rebum soluta justo.

Stet eos ipsum ut amet consequat magna tempor. Euismod amet voluptua dolor dolores. Nihil vero lorem dolores sit illum aliquyam vero. Et kasd dolore dolore. Et at labore accusam dolore nulla nonumy. Quis rebum sed no ut et clita duo labore dolor duis labore lorem nonumy.

Sample Output H3

Lorem consetetur amet enim eum sea duo ex et erat dolore amet sed et ut est takimata. Rebum sed voluptua nobis delenit no clita te adipiscing stet nonumy eros tempor illum voluptua. Dolore magna ipsum takimata lorem commodo autem nostrud gubergren iusto duo facilisis nonumy sed enim elitr sed. At sea at et rebum et aliquyam et no lorem clita sed kasd diam. Elitr dolor amet vero consectetuer nonumy magna augue velit elitr voluptua. Dolore et sanctus magna ipsum dolore eirmod sanctus blandit kasd est. Eum sit et eum in ipsum ea minim erat sanctus imperdiet nulla erat ut. Consetetur diam duis et vero nonumy rebum nam dolore ipsum facilisi rebum. Et commodo accusam magna sit volutpat rebum. Et esse et eirmod eros.

Exerci in duis vero clita et consetetur facilisis diam eirmod magna sanctus aliquyam rebum nonumy in labore. Accusam accusam vero et veniam elit dolor accusam dolore in diam vulputate. Et in magna consetetur ipsum et erat dolor. Sed eos minim euismod zzril zzril dolor liber et kasd. Et nam et eirmod. Sed dolores eros sed facilisis laoreet possim erat ipsum lorem vel ipsum justo. Et lorem diam illum erat ipsum consequat invidunt aliquyam lorem dolor takimata vero sea luptatum dolor gubergren.

Sample Output H4

Dolor vero at accusam kasd sed magna ut ipsum elitr. Et est tempor magna dolores. Sed at stet elit in. Et eos nonumy. Lorem vel dolores hendrerit diam et ut et aliquyam. Luptatum invidunt nisl eos eirmod hendrerit consetetur rebum stet autem et sadipscing laoreet magna sanctus ut ipsum sed. Dolore esse ea facilisi vero no. Rebum erat voluptua sit justo tempor dolor. Justo sanctus velit accumsan duis clita ipsum est ut vero duo eos sanctus invidunt duo eirmod erat takimata at.

Ipsum ipsum aliquyam ea aliquip at sea eirmod stet augue dolor elitr consequat clita. Magna clita sit tation et dolor rebum et liber invidunt duis nulla accusam takimata accusam sit clita. Iusto nobis ut quis te consetetur kasd diam et dolore kasd ut magna eos at amet sea ipsum. Dolor rebum ut vero magna mazim eum dolor ad et zzril. Sit diam eirmod consetetur erat iriure assum praesent takimata sit sadipscing labore veniam voluptua accusam.

Sample Output H4

Ipsum eirmod lorem nisl iusto diam nonumy molestie nonumy autem duo lorem sadipscing ad et soluta. Diam sit tincidunt sed erat ut justo labore dolores nonumy accusam sit eros. Et sed tation dolor. Consequat vel facilisis sit lorem takimata amet sit dignissim. Magna et eos ex eos vero sea sed veniam. Sed rebum wisi velit et duo invidunt amet ipsum zzril sea ex. Odio sit qui ipsum amet tincidunt eos sed nibh labore et invidunt diam lorem justo nonumy. Ad stet sit eos eirmod et rebum nonumy lobortis dolore est et eu sanctus iriure rebum.

Congue duis erat no ut et autem amet sit nisl justo et justo ut elitr lorem. Amet nisl tempor sit congue ullamcorper no kasd kasd duo nulla ut erat assum et velit stet accusam. Tempor dignissim diam ipsum dolor eirmod tempor facilisis accusam vero. Et diam at ipsum ea nonumy. Volutpat sit sed justo dolores sea ut nulla dolore et rebum vel feugiat sanctus. At dolores et duo rebum aliquyam dolor voluptua diam esse invidunt. Ipsum nonumy voluptua takimata velit eros amet sea accusam voluptua volutpat accusam esse ea ad iusto gubergren veniam.

Sample Output H3

Facilisi at et. Liber dolor wisi feugiat takimata at dolor dolore aliquyam takimata voluptua sed tation eros voluptua accusam erat. Hendrerit dolores duo consetetur ipsum duo. Accumsan sit magna lorem diam at in vero duo sit sed aliquyam accusam lorem sadipscing erat. Diam stet nonumy sed ea labore hendrerit tempor dolores sed dolore luptatum et. Enim dolor aliquyam eu dolore dolores et diam labore cum. Possim eirmod duo. Takimata vero ex eirmod et lorem. Erat diam dolor stet.

Eos duis vero et. Sed sea lorem eros accusam amet clita qui qui eu volutpat vero id amet accusam augue. Est sit sed dolore nam. Justo diam eirmod et no est. Sanctus iriure ullamcorper sadipscing kasd voluptua et ea cum nonumy facilisis vel ipsum. Nulla wisi sit dolores ut dolores clita iriure dolor rebum facer possim.

Sample Output H4

Ut sit at iusto facilisis invidunt vero sed labore ut ut consetetur ipsum enim justo clita consequat elitr lorem. Te sadipscing tempor ipsum dolor tation et stet labore doming ipsum sed et nibh. Invidunt rebum lorem blandit duo sit ipsum kasd amet magna eros ad. Vero aliquyam clita ipsum ut ipsum hendrerit dolore. Odio et sed aliquyam gubergren molestie aliquam illum sed erat no invidunt. Magna dolore tation ut diam vero diam eirmod et sed sadipscing tincidunt diam sed labore vero. Delenit sed dolores et sanctus. Duis nonumy elitr. At tempor lorem feugiat.

Diam lorem eu diam amet clita ea dolor voluptua. Est ipsum ut justo duis in. Vero lorem dolores duo consetetur justo clita clita dolor luptatum voluptua et wisi qui ea nisl consetetur sit hendrerit. Dolore vero ipsum no sit ea consequat. Et dolore diam tempor sed aliquyam aliquyam et tempor stet ea aliquyam volutpat erat soluta augue aliquyam justo facilisi. Feugait et facilisis justo justo zzril elitr blandit clita no amet erat in dolor clita et nulla nonumy. Justo magna ipsum ipsum ea ex nihil diam et accusam eos in dolore et. Vero in est accusam sit gubergren tempor dolore est erat duis velit et. Dolores lorem invidunt amet voluptua dolor sed clita takimata.

Sample Output H4

Diam eum iusto duis nonumy dolor consequat diam sed iriure sanctus consetetur. Nisl et dolore consetetur voluptua vero tempor duo nonumy aliquip lorem dolor. Nonumy sanctus accusam gubergren clita. At nam gubergren et labore dolore et euismod at aliquyam enim sed gubergren voluptua augue. No dolores rebum vel eirmod elitr magna. Eirmod et clita ipsum consequat magna amet magna dolore accusam. Sit kasd lorem dolor autem erat volutpat kasd accusam takimata nonummy sadipscing no vero. Duis nonumy amet amet ut enim et sed erat eleifend nam rebum vero dolor. Consequat minim nonumy takimata clita dolore gubergren ea sit diam ea no sadipscing amet. Diam consequat sed sanctus blandit dolore invidunt invidunt ut volutpat id ut accusam et. Et hendrerit duo tation.

Lorem ea amet sit vulputate. Sadipscing est et tempor magna et et tation invidunt ut lorem diam qui sit nulla lorem et dolore ea. Sed rebum diam takimata stet enim sanctus duo invidunt duo praesent gubergren amet volutpat consetetur aliquyam. Gubergren augue blandit tempor te ipsum duis. Sed elitr eirmod lorem amet adipiscing no dolor ipsum aliquyam clita ea stet invidunt eos diam labore dolore. Enim diam gubergren ipsum sea luptatum et. Et aliquyam ut justo dolore. Dolor et eros qui justo invidunt tempor sea stet dolor.

More Sample Output H2

Ea sit sadipscing magna mazim iusto et. Magna imperdiet ea consetetur rebum amet duis feugait tempor et rebum diam commodo. Kasd dolor lorem at magna assum ipsum at et sea dolor hendrerit sit. Consetetur facilisis sanctus eum amet kasd vero tincidunt. Vel est ex lobortis kasd nam aliquyam eirmod ipsum. Feugait hendrerit ullamcorper feugait invidunt sed ea tempor takimata aliquyam nam volutpat sanctus autem diam rebum iriure facilisis. Sed invidunt eum est eros sadipscing ut imperdiet magna stet diam invidunt justo. Id diam sadipscing justo et accusam diam blandit diam dolore consetetur justo kasd amet accusam sit sit.

Odio clita sea sed est lorem sit amet amet. Amet lorem amet dolor nonummy facilisis nam labore nonummy. Exerci sit feugiat sit. Kasd nulla illum illum dolore invidunt invidunt quis magna et sea dolor dolore nam lorem. Lorem consetetur sit diam dolore amet amet ipsum est duo. Dolores lorem diam.

Sample Output H3

In soluta amet elitr et. Sanctus consectetuer dolor rebum mazim tempor ut sadipscing vero sit gubergren clita nonumy vel feugiat gubergren. Consetetur facilisis sed eu vero vero nonumy te consetetur vulputate dolores. Erat sit erat veniam et nonumy velit delenit hendrerit facilisi nibh blandit sit diam illum vero liber. Lorem dolore nonummy elitr amet. Ut est ea no aliquip amet. Aliquyam ex sed sed sit dolore sed invidunt wisi elitr ea eos eirmod eum vero labore ipsum. Et sanctus laoreet ut ea vel esse sit rebum tempor lorem.

No dolor mazim ea ea autem eu dolore quis et volutpat at diam amet justo rebum lorem amet ut. Sit assum nonummy iriure iriure sit labore vulputate est justo. Et elitr ea sanctus lorem augue aliquyam. Lobortis ut vero et labore sit no dolor. Qui ea sed tempor vero eirmod voluptua nonumy takimata dolor et ea ipsum voluptua sed elitr kasd. Labore vero sadipscing duis elit eos sanctus. Et sed ea nihil no invidunt molestie duo tempor accusam elitr eos clita lorem diam dolores rebum. Kasd augue sanctus diam stet dolore et invidunt.

Sample Output H4

Nonumy et duo lorem ex at. Ipsum vero diam eirmod labore. Et nonumy no option accusam et aliquyam dolore voluptua qui duo amet nulla sit vel sed. Accumsan lobortis kasd rebum sed et ut. At invidunt ea hendrerit dolore aliquip diam dolore. Gubergren duo lorem commodo qui autem iriure vero sit justo amet.

Erat diam et lorem ipsum commodo. Dolor dolor voluptua accumsan voluptua magna esse nonummy sanctus duo ea tation illum vero clita eu clita dolores est. Lorem in eleifend luptatum. Sit amet nibh erat diam et luptatum magna lorem vero. Sit veniam in possim erat amet sit stet lorem clita no blandit no. Accusam accumsan lorem iusto in suscipit.

Sample Output H4

Eos aliquyam wisi no commodo consequat stet et. Magna amet sadipscing amet autem gubergren consequat duis lorem no lorem clita. Esse ea dolores ipsum sanctus magna dolores facilisis consetetur sit euismod diam in dolore at et dolores. Blandit accusam labore diam wisi. Amet eos ipsum molestie kasd sed dolor eos minim et et eleifend quis dolore elitr ipsum. Dolor clita lorem tempor tempor elitr duis no diam dolore liber justo.

Gubergren magna dolor sea labore duo sit et illum ipsum sadipscing vero et lorem eum kasd ut. Et esse et et aliquam clita. Dolore dolore voluptua. Sit nostrud clita dolore at ea. Sadipscing at sed magna et tempor ut feugiat gubergren eleifend dolor erat et clita ipsum.

Sample Output H3

Tempor et ipsum eum hendrerit diam justo dolor et iriure nonumy. Ea sed amet eirmod vero molestie euismod et accusam lobortis ipsum sanctus elitr molestie invidunt vel. Gubergren facilisis congue luptatum amet ea placerat clita laoreet lorem dolores lobortis duis. Sea illum ipsum nonumy no takimata. Hendrerit et lorem eirmod sed delenit takimata dolor ipsum sit aliquam possim rebum et justo. Commodo accusam sanctus eos voluptua volutpat lorem diam.

Lorem hendrerit eum diam sadipscing diam sed lorem sit. Consetetur sed commodo ipsum duis lorem et. Vel duo elit et. Accusam amet takimata ipsum et stet takimata. Kasd euismod blandit nulla. Ipsum diam nonummy iriure lorem ea ea velit amet dignissim tempor ut dolore diam. Sit nulla aliquyam consetetur elitr. Aliquam sed ut hendrerit sed qui amet. Eu accusam et vero dolore.

Sample Output H4

Sadipscing dolor ipsum et. Labore facer ea accusam duo sed velit. Erat magna amet dolore ullamcorper odio et amet eum lorem no dolor esse iriure commodo. Lorem sea consetetur dolore sit laoreet at kasd kasd ut clita dolore stet stet vero clita. Sea kasd soluta voluptua diam velit no erat sanctus lorem ipsum euismod erat et tation.

Dolor sed sit. At at diam labore delenit diam no labore invidunt erat nihil. Sed feugiat duis amet eos diam vero duo ipsum sed iusto facilisis eu takimata amet dolor consetetur. Iriure consectetuer clita autem. Lorem amet elitr clita duis consectetuer iriure et.

Sample Output H4

Consectetuer sea nostrud voluptua nonumy in nulla dolores luptatum amet ex ipsum. Ipsum takimata augue diam diam nonumy volutpat et et magna. Stet labore dolore et. Enim sed iusto labore sed labore autem invidunt at eirmod est eirmod et dolor. Invidunt nobis ut eirmod velit dolore nonumy est magna dolores lorem lorem. Duis adipiscing sanctus dolore elitr lorem labore sea. Justo rebum duo nonummy tincidunt wisi et.

Praesent tempor sed dolore clita elitr sadipscing id rebum. Velit laoreet duo vero duo ut elitr clita et feugiat quis exerci rebum. Facilisis sed ipsum accusam stet diam stet nisl dolor ipsum invidunt. Aliquyam dolores illum stet ex ipsum sea nibh dolor ipsum sit nonumy lorem placerat et ipsum eirmod. Justo sanctus vero at lorem ea at eos illum sed nulla et.