www.cloudformatter.com

cloudformatter format requests: 2,172,026    pages delivered: 5,781,832

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

Lobortis sit sed invidunt amet sed justo ea feugait doming est invidunt. Gubergren enim diam dolor invidunt vero accusam nihil et dolor takimata at dolore velit esse. Sed eirmod stet aliquam voluptua invidunt invidunt labore. Duo nostrud volutpat kasd aliquyam euismod takimata assum. Ipsum est est vero vel dolore lorem sed euismod. Assum kasd labore eros option justo magna tation hendrerit dolore vero sea kasd. Dolore tempor at iusto. Dolor ea aliquip sanctus sit lorem gubergren in accusam accumsan magna sea ut.

Delenit feugait labore dolor dolores elitr ipsum accusam et accusam consetetur euismod diam rebum tincidunt amet eirmod vero ut. Est tempor velit diam voluptua gubergren kasd amet dolore. Vero eirmod ipsum sit sit sea ipsum ut aliquip amet. Iriure velit et nulla nonumy consetetur at enim elit elitr nulla dolore eos at diam ut accusam voluptua ut. Aliquam justo vulputate ea est adipiscing et. Dolores eros elit takimata sed praesent tation qui. Eirmod liber nonumy dolore nulla accusam tempor.

Sample Output H3

At lobortis duo sanctus. Eleifend labore feugiat. Dolor ipsum blandit odio nulla sanctus sed ipsum justo illum ut ipsum ut duo. Stet et assum nulla. Sea sit dolore ipsum ipsum tation amet et kasd dolor erat et delenit sit et dignissim nonumy commodo. Commodo nam luptatum nobis eos. Magna aliquam ipsum no consetetur lorem clita. Ut elitr possim dolores et magna invidunt vero consetetur eirmod voluptua ut dolor. Voluptua autem sanctus eos ex dolore erat diam. Duo gubergren ipsum sadipscing tempor feugiat vero amet consetetur dolores dolore lorem no autem.

Sed nostrud erat clita eu euismod velit sanctus. Dolor sanctus laoreet stet dolores est sadipscing eirmod dolore accusam at duo rebum dolore sed et accusam magna sit. Accumsan dolor ut sit amet laoreet stet blandit. Magna elitr est sadipscing sadipscing et laoreet magna commodo imperdiet nulla no kasd diam nulla rebum dolore consectetuer. Nobis elitr sea amet sanctus erat consetetur lorem et volutpat accusam amet. Vero et sit stet dolor at accusam tation invidunt blandit eos cum ipsum sadipscing. Dignissim laoreet aliquam te nonumy zzril duo sea eos et amet. Ipsum at zzril amet feugiat luptatum labore sit nonumy exerci ea clita delenit.

Sample Output H4

Sea accumsan ut sed. Stet aliquyam ipsum magna dolor feugiat sanctus vero takimata ea kasd sit ipsum tempor sanctus eu feugait. Stet ipsum consequat no et no te. Kasd eum lobortis in labore et et dolor. Duo iriure blandit dolor sit gubergren id in vero duo justo no amet sanctus consetetur amet nonumy sanctus eirmod. Cum et aliquyam assum sanctus luptatum consetetur lorem dolores magna esse. Est diam eirmod invidunt diam dolore stet elitr takimata dolores duo in elitr praesent. Vulputate dolor nonumy amet et consequat sit. Stet accusam aliquyam enim dolor consequat in vero consetetur imperdiet stet.

Consequat sea dolore sea kasd amet stet lorem sanctus. Dolor velit ea iusto vulputate diam invidunt lorem. Hendrerit tempor at veniam gubergren invidunt clita kasd. Justo vero ipsum sed clita dolores est nonumy kasd. In in et. Takimata dolor et at.

Sample Output H4

Zzril duis sea in gubergren clita congue dolore tincidunt sit ipsum amet ex sed ipsum eos dolore vel ut. Praesent sit illum lorem consequat sit. Et dolores accusam diam veniam iriure. Ut tincidunt dolores vero justo sit ipsum kasd et te kasd sed eirmod est. Dolor clita gubergren et lorem dolore rebum amet. No ea invidunt et autem lobortis accumsan erat takimata est sadipscing accumsan kasd no amet in aliquyam sanctus. Vero praesent elitr sea esse nulla dolor no dolor sed dolor dolor. Vero sea kasd.

Accusam et lobortis sit ipsum gubergren ea sit. Clita dolor duo. Mazim invidunt eum voluptua at amet takimata feugiat nonumy lorem autem aliquyam. Lorem ut et justo. Diam consetetur sadipscing voluptua nonumy dolore eos autem voluptua vero diam veniam erat takimata. Sit sit nihil duis lorem nobis ea. Dolor dolore stet no et duo aliquyam amet justo zzril est at eos labore dolores. Tation dolor eros vero nobis nonumy duis vero iriure eirmod labore sea est vel accusam sanctus dolore nulla. Sadipscing sed vero. Illum sit invidunt est sit at magna dolor velit augue autem invidunt sit sed.

Sample Output H3

Dolor aliquip nonumy sit commodo ut et erat. Autem dolore ad et sadipscing eos. Dolor vel no sed sea sit. Amet sanctus amet zzril sed feugiat suscipit no ea diam. Consetetur sea tempor takimata ut sit vero amet takimata justo voluptua amet sit consetetur takimata ut labore te doming. Lorem nonummy lorem justo vero duo assum. Sit est amet gubergren magna consetetur.

Et dolore ea duo lorem dolore at magna eos feugait eirmod laoreet et sea dolore lorem eirmod clita. Illum lorem dolor ipsum soluta sea sit sed et. At rebum ipsum sed gubergren sit sed. Vero suscipit eirmod accusam et lorem diam. Et no elitr. Molestie sed dolore feugiat dolores consetetur laoreet feugait dolore gubergren sea. Est dolore no doming. Feugait no duis. Diam kasd accusam no tation erat volutpat aliquyam iusto hendrerit eirmod dolore velit aliquyam zzril. Facer clita lorem nonumy dolore magna dolores nobis duo dolores feugait ut.

Sample Output H4

At lorem no. Duo duo diam eos elitr consectetuer no lorem gubergren dolor justo dignissim sit dolor option at. Sed sed elitr esse sanctus clita et at dolor iusto dolore justo. Et labore et takimata erat feugiat erat duo justo. Aliquyam imperdiet odio et diam augue. Elitr tempor clita nobis hendrerit. Et feugiat diam vulputate lorem ipsum ut voluptua gubergren dolor duo dolore zzril. Vero et dolores sed amet sed vero clita nonumy lorem. Eos amet in ipsum diam takimata voluptua diam et amet ut accusam takimata diam. Et sed et vel ipsum et et lorem nonumy justo consequat labore ullamcorper aliquyam exerci. Sed vero kasd dolor erat.

Dolore consetetur elitr est sed ea ut dolor gubergren sit no vero consequat. Stet amet no sea dolor velit diam at. Assum dolor diam. Sit dolor ea erat dolore illum delenit vulputate option sea diam dolor enim lorem duo nonummy. Augue vero sed ut sit eos dolor nonumy sea labore dolores takimata. Iusto sea facilisis.

Sample Output H4

Iusto quis accusam gubergren diam takimata vero rebum lobortis invidunt magna augue dolor tation ad nibh. In lorem est eos et. Diam at aliquip duis nibh at magna dignissim at elitr et no stet dolor lorem. Vel clita consectetuer consequat dolor duo amet praesent elitr voluptua. Vel sit sed voluptua iriure eos aliquyam magna labore takimata feugiat minim. Labore ad delenit et veniam aliquyam justo magna labore sea augue sadipscing sed sed ut. Rebum labore lobortis tempor ea sed et dolor. At dolore ut sed soluta diam et volutpat sanctus ea stet dignissim suscipit dolor sit accusam consectetuer. Nulla consectetuer sanctus ipsum dolor sanctus elitr velit eos vero sea. Sadipscing duis et invidunt facer dolor dolores ipsum qui aliquyam labore autem vel gubergren gubergren lorem ipsum dolore.

Commodo ea vero eirmod sea est quis iriure erat clita esse sit nulla eos sanctus. Qui et aliquyam dolores est eu vulputate imperdiet amet. Sed magna ea nonumy amet in. Euismod et eum illum nobis diam ea tempor dolore amet sanctus sadipscing accusam invidunt. Lorem at duo dolores dignissim sed sadipscing eos dolore et nonumy elitr. Aliquyam aliquyam dolore stet kasd dolores aliquyam illum gubergren et ipsum dolor clita elit lorem erat labore lorem invidunt. Duis voluptua velit dolor.

More Sample Output H2

Gubergren et amet accusam cum. Invidunt eirmod euismod vel dolores in gubergren lorem takimata facilisi consetetur. Dolore sit exerci euismod. Amet lorem iriure duis. Kasd et feugait consetetur erat sit takimata feugiat ut nonumy erat suscipit sea takimata est lorem amet. Quod et vero elitr dolore nonummy ullamcorper magna aliquyam amet euismod et lorem eos facilisis at.

Ut eos option consequat sit imperdiet nonumy aliquyam eum mazim kasd commodo magna sed. Ea invidunt ipsum clita. Eirmod sed sanctus lorem et nibh ipsum magna nulla tation consetetur dolore ut enim duo et. Kasd eos dolor ipsum vero ut rebum dolor. Eros esse eirmod duis iusto lorem magna.

Sample Output H3

Takimata esse aliquip duo hendrerit in sed nulla nonumy vel at feugiat takimata et elit nonumy. Voluptua et et amet consetetur dolor erat clita ea velit gubergren vero ut augue vel ipsum consequat clita. Gubergren exerci et dolor. Sit sit dolore augue ipsum dignissim rebum ut gubergren duis invidunt luptatum aliquyam vero stet sadipscing et ipsum dolore. Ad est tempor labore duis duis placerat gubergren in quis consequat elitr ipsum no ipsum ipsum sanctus. Labore sit et aliquip rebum sea.

Takimata ullamcorper duis sadipscing. Enim consetetur elit rebum sed tincidunt dolor duo lorem stet accusam et magna rebum ipsum illum et consetetur lorem. At no at invidunt ea. Erat dolor option accusam dolore consetetur luptatum eros justo ipsum iusto consetetur takimata nonumy tempor diam dolores dolore. Justo blandit consetetur elitr. Vel lorem aliquam est nulla aliquip dolore autem ea lorem rebum exerci. Dolore magna gubergren amet aliquam amet labore accumsan diam eirmod. Amet dolor sed duis labore nulla iriure ipsum consequat dolores tempor ea at iriure kasd eirmod eirmod amet aliquyam. At dolor amet ipsum consequat sed et amet amet sed accumsan nulla sed nostrud.

Sample Output H4

Nostrud tempor clita duo nibh dolore accusam et nihil vel ut dolor diam eum sit commodo magna augue. Dolore ex et kasd elitr iriure imperdiet lorem te. Stet vero labore dolor in aliquip sit et aliquyam magna consetetur euismod nulla. Eirmod diam lorem justo tempor diam amet duis. Sanctus commodo velit est voluptua et eos erat voluptua clita consetetur. Eos magna dolore invidunt voluptua ut delenit amet magna accumsan amet takimata dolores et molestie aliquyam. Erat dignissim dolore dolores at diam nonumy tempor zzril dignissim consectetuer nam. Lorem rebum autem ullamcorper et. Duo et feugiat esse veniam iriure luptatum. Nisl dolor eirmod dolor dolore duis aliquam sea at clita dolor magna sed elitr lorem consetetur ipsum.

Aliquyam et duis sadipscing sed accusam dolores sed sit diam ipsum esse diam sed dolor. Invidunt voluptua magna ipsum consetetur dolor nibh nonumy amet est cum at gubergren labore ut consectetuer. Duo lorem gubergren takimata dolor sed et luptatum sit. Duo et autem clita ipsum augue diam in blandit eos labore et duis veniam eros at vero consequat. Dolor sanctus sanctus odio ipsum et diam vulputate kasd qui dolores ut sit feugiat consetetur. Praesent sed sadipscing zzril. Tempor exerci molestie nostrud commodo amet sed duo magna ipsum lorem eum sed kasd amet stet esse. Diam rebum diam erat at sit tincidunt dolores nonumy. Illum no labore eos accusam nonumy sed lorem possim magna vero. Lorem justo aliquyam est rebum justo. Stet et rebum sit blandit ipsum amet eos euismod consequat duo labore nonummy amet takimata et voluptua ea lorem.

Sample Output H4

Blandit sed elitr eirmod sit dolor rebum sea lorem sit odio ut iriure exerci justo magna hendrerit. Feugiat dolor et sea aliquyam diam sit euismod doming. Invidunt in at et sanctus dolores duis elitr. Stet sit et magna ea. Eum duis ipsum sit blandit eirmod erat enim dolore sit ut diam kasd. Ipsum elitr facilisi sanctus accusam et ut. Dolor diam diam lorem kasd veniam facilisis eirmod no quis sit ea mazim.

In voluptua takimata eirmod. No duis est diam dolor liber ipsum accusam dolor augue dolore consetetur ipsum labore zzril accusam vero. Nulla commodo amet amet eirmod at nonumy iriure sed no amet. Erat rebum labore consetetur accusam magna. Sit sit diam voluptua feugait possim stet clita takimata kasd no dolor diam. At erat est rebum gubergren sadipscing amet. Tincidunt sed minim voluptua.

Sample Output H3

Accusam gubergren feugiat stet sit praesent eos et. Diam elitr diam vero amet dolore adipiscing et rebum dolores kasd eos labore augue magna. Sea diam stet sed sit eirmod dolore et facilisis diam. Ut erat dolor. Eum dolor eros ea justo amet duo amet sanctus diam sea labore no.

Invidunt aliquyam ipsum et duo velit kasd et sed nibh elitr dolor sit sed ut. Vero sanctus et ipsum dignissim elitr kasd hendrerit amet elitr et takimata eleifend ullamcorper lorem eos. Ut iusto vel est no et velit. Aliquip lorem nonumy. Ipsum eos justo. Hendrerit sit accusam tempor tincidunt ullamcorper amet ea nisl voluptua at et dolor consequat ut.

Sample Output H4

Ea duis erat labore sed ea amet et stet et eirmod diam. Dolor in rebum invidunt takimata et. Molestie dolore elitr feugiat dolore dolores illum sed dolores kasd lorem justo dolore sed et kasd dolore. Wisi blandit diam ipsum clita nulla diam odio gubergren sanctus ullamcorper sea dolores feugait clita amet diam dolores vel. Nonummy nibh dolore tempor dolores dolor stet in dolor amet dolore tincidunt eu amet gubergren et. Blandit invidunt ut nonumy ea facilisi in vel no ipsum nonumy ullamcorper aliquyam ipsum magna voluptua. Vero invidunt tempor. Tempor ea dolor dolor vero at quis erat diam duo gubergren nulla dolores stet magna illum est magna.

Ipsum takimata enim ex magna dolores dolor. Commodo hendrerit consetetur accumsan ut kasd vel accusam vero accusam diam sed diam sanctus. Erat clita ipsum. Vel labore gubergren labore eum delenit nostrud tempor erat et voluptua et sea voluptua sit clita duo facilisi ut. Sanctus autem gubergren consetetur soluta diam consetetur ipsum sit. Et in labore. Ad dolores elitr takimata sit at. Eos lorem ut lorem consequat et ipsum ex dolor dolore accumsan lorem consetetur takimata. Eos et sit cum liber nulla sed eirmod dolor ut molestie tempor nonummy sed et te sanctus dolores. Dolore erat sanctus amet sit sanctus at et ut gubergren iriure labore accumsan diam imperdiet. Voluptua at et aliquyam duis ea et nulla eum erat feugiat.

Sample Output H4

Vero vero et ipsum erat sea eros duo et ex eum magna eos at sed dolores magna rebum. Magna ea consetetur ut sea duis sit invidunt stet sed. Et voluptua magna amet dolore dolore kasd vel nonummy sea ut autem sanctus vero qui vero. Diam eirmod elitr eleifend et voluptua sanctus sed erat eirmod consetetur sed no accusam dolore. Et feugiat accusam amet tempor rebum te eos eu sit dolore dolor eirmod nonumy amet ipsum et takimata. Sed tempor enim sanctus lorem ipsum lorem diam commodo ipsum nibh. Invidunt et sanctus ut ea kasd at tempor voluptua doming dolor accusam amet consetetur. Dolor sed minim ipsum amet sit vel takimata invidunt stet justo accusam magna et duo stet tempor. Sit erat nulla dolore lorem erat. Ipsum aliquyam et veniam ut nihil vulputate sanctus odio ut sanctus invidunt.

Lorem elitr kasd. Eu sadipscing amet sed consetetur sea consequat ea lorem lorem ea takimata et erat eu gubergren. Accusam at quis dolores accumsan ad et nostrud enim amet diam nonumy takimata. Invidunt kasd kasd possim molestie duis magna dignissim dolore magna. Sadipscing lorem diam eirmod rebum justo et option velit eu duo est est vero vel dolor diam eros. Takimata at nihil at rebum sit gubergren dolore kasd dolor.