www.cloudformatter.com

cloudformatter format requests: 6,322,901    pages delivered: 14,376,979

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

Lorem gubergren justo vero gubergren in doming lorem wisi sanctus elitr eirmod lorem in duo magna. Justo et nonumy kasd et facer ipsum eirmod minim sit sed nobis vero et ea dolores amet. Amet tempor elitr iusto takimata labore te consetetur sed lorem eos lorem. Et takimata tation dolore suscipit magna kasd takimata nonumy ex ut dolor diam duo. Sed amet dolor tempor iusto eos dolores consequat ipsum ipsum quod nonumy qui amet stet. Rebum amet diam kasd doming accusam kasd takimata lorem ut clita nibh. Sanctus diam ut commodo sed lorem nostrud et tempor diam. Lorem placerat suscipit eos et elitr no sea voluptua stet et minim lorem takimata odio justo et. Dolore eirmod clita vero erat. Et sea odio et amet.

Diam eos tempor sit lorem illum aliquyam laoreet clita at lorem ex placerat duo consequat invidunt iriure nam labore. Qui tempor accumsan sadipscing sed nostrud suscipit sed laoreet diam ut. Gubergren dolor iriure nonumy amet kasd blandit lorem sadipscing clita nisl sit sea esse sanctus consequat odio et at. Nulla sadipscing ea suscipit lorem iriure lorem. At dolor sit lorem sed elitr tempor id et amet ullamcorper dolor lorem magna. Takimata feugiat clita ut accusam accusam clita sed eirmod rebum amet amet et eleifend. Nonumy eleifend sanctus diam sed sed clita et lorem ea sit clita vero consetetur clita no rebum option.

Sample Output H3

Elitr suscipit dolore nobis et rebum sed eum sea gubergren ullamcorper gubergren consetetur aliquip et gubergren aliquyam autem erat. Amet ea sea justo voluptua diam labore dolor facilisis est ipsum sit nonumy mazim erat blandit lorem iusto. Augue nibh lorem magna consetetur invidunt dolor dolores sed nonumy amet aliquyam tempor sed. Vel sed nihil eros nibh quis. Consequat aliquyam voluptua eos vero est accusam justo in nonumy takimata.

Stet amet voluptua rebum sed eos eros magna takimata velit vero amet et molestie gubergren sit est dolor. Dolor lorem magna kasd sit accusam ex magna ea duo ut illum voluptua lorem accusam gubergren sit ipsum. Stet ea amet facilisis euismod option eos accumsan dolor. Tation nonumy eirmod elitr dolore invidunt est et vel nulla sadipscing dolor. Erat stet vero et amet labore dolor vero. Lorem facer consequat clita ipsum. Ipsum sed et magna vel in dolor erat accusam hendrerit doming. Et consetetur dolores. Est esse diam nonumy magna ipsum ut facilisis nonumy adipiscing et duo sed hendrerit. Gubergren sadipscing elit veniam diam iusto dolore elit invidunt dolore labore. Tempor elitr no justo.

Sample Output H4

Lorem amet ipsum et tincidunt tation accusam voluptua. Placerat stet consetetur invidunt velit at kasd sanctus dolore lorem commodo. Ipsum sadipscing sit. Zzril sit dolores accusam in aliquyam amet ut diam et elitr sed amet sit et diam duo rebum. Consequat quis lorem sit.

Stet diam ea ipsum. Lorem facilisis magna dolores diam facilisis lorem. Et tation eu no no tempor. Sit dolores labore labore dolore sea eros lorem et. Gubergren sit elitr doming accumsan dolor ut eirmod sit labore. Eos duis nam sed ut labore sadipscing dolor nonumy ut. In dolore eum. Sadipscing delenit consequat facilisi dolor et dolore lorem dolores sed stet ut. Et magna accusam dolore ea dolor justo et iriure consetetur et vero.

Sample Output H4

Voluptua kasd et sea ut ipsum gubergren dolore magna dolores ipsum magna ad et nulla possim clita. Gubergren eum et. Elit feugiat nostrud iusto vero autem et. Amet dolore takimata ea aliquyam euismod sit et iriure accusam voluptua sit. Aliquip tincidunt et facilisi lorem. Takimata ipsum ea ea tempor et invidunt congue lorem stet stet augue elit stet magna. Et eos vel gubergren rebum in sed sit magna at erat aliquyam voluptua lorem sed et et. Takimata elitr veniam duo accusam ipsum et aliquyam feugiat et ipsum iriure nam dolore aliquyam commodo.

No sadipscing et consequat sanctus at gubergren adipiscing eirmod nonumy erat amet ut. Kasd esse est lobortis quis lorem. Duis accumsan et et illum. Magna duo dolor amet sit labore et sanctus consetetur lorem nisl. Accusam nulla exerci kasd ea facilisis lorem vulputate sit magna. Sed sea ut praesent mazim sed consequat lorem sed sed elitr amet at laoreet sanctus sed gubergren dolor.

Sample Output H3

Velit et et iriure iriure stet hendrerit ullamcorper at sadipscing sadipscing dolor amet nonummy ipsum elitr. Amet no kasd euismod wisi in nonumy clita eos iriure. Gubergren dolores et velit sadipscing dolor ex aliquyam invidunt kasd takimata. Nonumy voluptua vero lobortis ipsum rebum sit dolore takimata dolor sed et dolore aliquyam ut duo. Diam magna dolor praesent ut ea ut gubergren. Est dolor diam et takimata labore consetetur aliquyam et congue no ut magna. Tempor augue sit adipiscing.

Erat minim diam sit nulla elitr magna in nulla ipsum clita illum consetetur at no sadipscing. Ut nonumy vel placerat et takimata sed no lorem eum et gubergren et diam dolor est gubergren amet quis. Voluptua lorem illum lorem. Dolore justo vulputate gubergren aliquyam sanctus tation consetetur nulla iriure. Accusam in diam tempor erat sadipscing tempor autem rebum wisi eros rebum dolor consetetur labore option lorem. Erat invidunt est. Diam eu nonumy suscipit ipsum clita et feugait amet clita amet voluptua. Dolor autem est dolores et accusam diam.

Sample Output H4

Et sanctus feugait amet. Et nulla sit sed dolor et te ea rebum feugiat in consetetur sea justo aliquyam et option. Cum no dolores. Sadipscing magna illum rebum. In no gubergren dolore ea volutpat sed lorem invidunt.

Justo tempor gubergren dolore elit at dolor et rebum lorem volutpat ipsum at tempor sed. Duis dolore delenit dolore et dolore iusto et id lorem dolor ut duis dolores et. Dolore kasd erat feugiat lorem dolor invidunt justo dolores gubergren labore aliquyam duo gubergren lorem feugiat. Sea clita consetetur facer at sit. Et eirmod sanctus. Diam vero voluptua ipsum labore aliquip lorem voluptua consequat. At kasd eos kasd ipsum sanctus aliquyam kasd diam molestie dolor ut augue. Eos doming vel diam ea sed duis clita erat vulputate vero consetetur labore ipsum amet dolores.

Sample Output H4

Consetetur amet justo sit et dolor sadipscing ad in esse illum. Amet voluptua kasd laoreet hendrerit. Lorem ipsum at sea in. Magna et justo accusam nonumy consetetur ea ipsum sadipscing vero diam erat. Et dolore duo dolor sit dolor voluptua sed elitr doming et et nibh diam takimata. Sadipscing et tempor nisl exerci clita eirmod te accusam at elit elitr. Diam et est stet gubergren et amet. Sit tincidunt accusam.

Suscipit voluptua invidunt eirmod feugiat amet vero possim sit diam nisl ullamcorper in invidunt. Et at doming ipsum nisl aliquyam rebum ut aliquyam. Dolores sea sea autem at sed zzril est sea iriure et at wisi dolor amet labore. Diam dolore sit nonumy wisi sit adipiscing euismod elitr dolore tempor dolore accusam nonumy eu takimata. Enim at dolores amet at ipsum tempor justo blandit takimata invidunt dolores euismod dolores dolor ea et ipsum in.

More Sample Output H2

Dolores mazim vel et wisi no clita elitr tempor sit labore justo consequat ipsum feugait dolores et invidunt et. Lorem amet takimata dolore dolore vel lorem dolores stet sit elitr at imperdiet tempor ipsum et facilisi sanctus et. Quod autem dolore sea dolor. Vero assum consetetur ipsum. Sit suscipit stet kasd dolores et autem nonumy et dolor sed nonumy justo at sea vulputate quis et at. Lorem gubergren consetetur hendrerit sea amet amet no quis eros kasd takimata consetetur delenit. Esse et voluptua zzril illum sea diam sadipscing sit ut dolores stet dolore sadipscing tempor aliquyam. Dolor sea et diam enim vero ipsum veniam dolores nonumy id at et.

Dignissim labore iriure tation vulputate esse voluptua ut ea amet lorem et. Velit luptatum et accusam wisi takimata magna invidunt ut. Accusam no eos invidunt ad et ad sit stet imperdiet zzril sadipscing duis et justo hendrerit. Elitr placerat dolor justo. Dolor amet diam justo et vero at id kasd option eirmod illum.

Sample Output H3

No lorem diam kasd clita amet ut amet voluptua elit et nulla nobis velit. Illum stet ea kasd ut takimata clita amet eos magna accusam. Ipsum magna sit est ea lorem in duis ullamcorper sed sed dolore laoreet dolore et erat erat. Elitr vulputate tempor at labore invidunt vero et dolor sea. Est magna labore aliquyam suscipit duo magna et nibh duo aliquyam. Sea rebum autem lorem et sea sadipscing eleifend sanctus amet iriure nonumy elit sed minim dolore ea aliquyam. Dolor erat consetetur ut velit at sit rebum stet vel no ipsum dolore clita diam no. Invidunt et sed et lorem eros diam suscipit esse enim kasd blandit sanctus wisi gubergren iriure te erat et.

Erat duis dolore quod magna sanctus. Dolor stet tempor sanctus magna aliquip consetetur dolore vulputate sadipscing dolor. Lorem nulla dolor kasd duo magna sanctus voluptua. Elitr takimata et. Quis dolore velit est sadipscing nonumy vero. Odio nulla eos eirmod diam diam eos takimata diam et dolore. Clita ad et nonumy amet stet rebum vero no lobortis ipsum est consetetur clita lorem lorem aliquip. Et lorem eos justo labore sanctus nihil suscipit hendrerit diam commodo dolor et. Sea sit duis dolor ea eu tempor erat doming lorem diam ut justo praesent. Sed consectetuer justo.

Sample Output H4

Eos facilisis no sadipscing eu diam eu diam et dolores. At consequat duo ea sadipscing clita sanctus sanctus voluptua sed tempor nulla vero clita. Stet erat nonummy consetetur stet vel. Hendrerit dolore nibh elitr. Lorem labore augue sed eos consetetur eros. Dolor magna ipsum ex invidunt hendrerit rebum stet et invidunt clita. Aliquyam vel accumsan.

Erat accusam sea magna consetetur esse consequat ex sed eirmod dolores. Illum rebum labore wisi justo aliquyam sit diam sed sea erat. Ut facilisis enim sadipscing sanctus in nonumy diam gubergren rebum amet et dolore. Sea ut sit ipsum amet laoreet et et. Laoreet ipsum hendrerit elit praesent nonumy at velit accusam ut exerci ipsum lorem et kasd. Duo ipsum accusam ipsum praesent et amet vel velit.

Sample Output H4

Consetetur at sit lorem nonumy ipsum esse. At ut aliquyam. Takimata labore sit eos lorem consetetur dolores diam rebum diam nonummy elit at voluptua. Nibh blandit sed nulla sanctus sit vero option dolore in invidunt justo kasd. Sed accusam sadipscing lorem takimata dolor. Accusam diam ut dolore sed at consequat est dolores et. Stet nonumy est. Amet tincidunt vero amet illum ipsum ut commodo justo vero liber nulla invidunt justo et. Duo clita amet nostrud accusam option accusam et praesent suscipit erat erat. Kasd liber nisl sea sit.

Autem clita ad lorem justo labore nulla duis invidunt dolor. Dolore lorem sea takimata sit tempor magna eirmod aliquam ullamcorper sed. Dolor at et aliquip sea eirmod ipsum iusto et ipsum qui sed sanctus. Diam diam tempor diam iriure nihil dignissim est elitr dolor lobortis diam. Rebum vero molestie et consetetur nulla dolore amet vero.

Sample Output H3

Eleifend eum tempor sed ut nonumy rebum elit vel ut. Elitr amet diam ea veniam voluptua elitr gubergren eu. Dolor praesent cum amet dolore iriure tation eirmod placerat duo iusto erat ut no ipsum tation amet. Erat dolores vero. Ipsum dolore dignissim labore elitr erat dolor eos. Ut duo dolor kasd voluptua ipsum no ipsum at sit et amet dolores eos eum sadipscing et et sit.

Facilisis nostrud voluptua dolor ea ut sadipscing ipsum qui feugiat sea illum gubergren magna sit. Nihil eos elitr magna dolores. Rebum ad hendrerit sit no diam sed et rebum erat at dignissim dolor nisl tempor gubergren eu volutpat. Lorem vero takimata labore amet. Sadipscing adipiscing magna facer elitr diam et lorem dolor option nonummy sed augue at cum takimata sit. Stet kasd eos et sea suscipit sit exerci vero. Augue justo takimata amet eos te dolores diam dolor amet et adipiscing accusam duo sed sea tincidunt. Et placerat dolores ipsum sed exerci accusam et amet no sea.

Sample Output H4

Lorem dignissim sed facilisi dolores. Consetetur dolor duo no rebum magna veniam duis dolor facer. Et amet aliquyam tempor kasd dolor sea eleifend sed volutpat clita ipsum no takimata clita ipsum dolor. Aliquyam facilisis vero stet amet. Lorem dolor feugiat et amet eos clita sea. Imperdiet est gubergren exerci commodo in velit sit sed elitr voluptua consequat ad no. Soluta sed dolor vulputate kasd gubergren.

Dolores magna et rebum aliquip tempor ea sadipscing suscipit lorem invidunt illum vel sit gubergren. Tempor minim sed velit accusam exerci et. Eirmod consetetur diam sed aliquyam diam tation. Et sit consetetur aliquyam amet magna dolore stet no et possim magna. Dolor duo commodo justo ullamcorper eirmod ipsum eu amet. Tempor et erat tation at ut sadipscing stet ea in ea et accumsan takimata erat. Augue nonummy autem diam. Justo ut sed et diam volutpat.

Sample Output H4

Ipsum eos volutpat et diam amet ipsum et rebum sea. Et justo vero vulputate erat aliquyam clita. Nonumy dolore tincidunt sea et. Dolores sea dolor. Sit ipsum lorem et. Kasd et magna autem elit sanctus dolore eos adipiscing magna est kasd accusam ad. Clita dolor et voluptua duo erat eum ea amet ipsum iriure veniam illum. Clita no dolor dolor. Minim praesent dolor nisl facilisis dolor sed hendrerit diam ipsum sed takimata sit consetetur magna eros takimata dolore vero.

Duo est no eum sed rebum ipsum nonumy iusto veniam consetetur dolor elitr dolor. Ea takimata aliquip eos sadipscing nostrud. Magna accumsan erat duis ad sit. Lorem consetetur liber diam amet erat minim blandit kasd laoreet ullamcorper no sit tempor velit blandit diam. Sadipscing kasd doming dolore sed duo exerci sit veniam. Facer ipsum facilisis autem erat aliquyam enim lorem.