www.cloudformatter.com

cloudformatter format requests: 2,047,283    pages delivered: 5,481,638

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

Quis sed vel sed enim facilisis lorem stet magna amet dolor eos ea. Elitr duo elitr vero duis duis lorem elit eirmod dolore sadipscing qui vel ea dolore no. Illum vero magna esse sea et. Voluptua lorem nulla. Eum et amet ut dolor lorem dolores molestie lorem ipsum magna sed consetetur. Sed eirmod feugiat. Euismod cum duis.

Dolor praesent rebum dolor vel facilisis at justo zzril ea aliquyam eirmod volutpat dolore sea no dolores dolor autem. Et sit labore voluptua suscipit. Ut invidunt clita diam sed accumsan accusam in sit dolores et aliquip et dignissim erat. Minim takimata ipsum elitr nonumy takimata eos est sit sanctus. Labore ipsum esse duo tempor. Hendrerit nibh nonumy sanctus vel tempor takimata vel hendrerit invidunt sed vero duis magna sed. Diam ipsum vero erat. Labore sed dolor facilisi sadipscing et sanctus tempor iusto nibh. Eu magna vero at ullamcorper eum accusam accusam takimata et lorem lorem. Sed illum at nonumy takimata lorem ut sadipscing. Nibh suscipit commodo sed duo nobis.

Sample Output H3

Dolore lorem te facilisi gubergren lorem vulputate ipsum et laoreet dolore dolore et stet. Ut nulla dolore sed dolor dolores diam velit at at volutpat consectetuer. Elitr et rebum esse ullamcorper sanctus sadipscing et amet at amet ea ullamcorper invidunt diam. Invidunt et molestie elitr diam sed clita tempor vero duo et lorem lorem tempor ad feugiat vel. Facilisis esse dolor at et amet sed et erat lorem illum no no aliquyam tempor zzril.

Ipsum sed dolores rebum odio at et in tation tation et ut sed dolore ut sed elitr. Iriure diam sanctus ullamcorper ea takimata et elitr labore lorem eros. Dolores labore dolore enim sed lorem aliquyam luptatum facilisis et dolor doming hendrerit accusam amet dolore autem tempor. Amet eirmod illum ut sed et kasd no kasd ipsum ipsum lorem dolores. Lorem diam amet dolor rebum. Dolores magna in kasd et magna nonumy facilisis sadipscing takimata. Dolor labore diam nulla ea invidunt ipsum lorem. Est sed duo illum amet duo sit adipiscing takimata dolore amet voluptua nonummy dolor tempor ipsum. Volutpat stet ipsum dolor sed tempor tempor et nobis justo diam ipsum aliquyam lorem.

Sample Output H4

Delenit rebum amet clita at dolore lorem ut facilisis diam. Sea dolor sit et diam tincidunt vel dolores invidunt diam dolore facilisi lorem consequat. Autem duis est kasd justo at duis ipsum et nulla. Te in sed elitr stet diam. At aliquyam sit sit tempor et erat tempor dolor ipsum dolore et lorem at. Amet diam sanctus aliquyam ipsum et luptatum. Duo ut eum et stet kasd kasd augue voluptua at magna erat lorem ipsum et. Facer tempor vel voluptua magna dolores praesent dolores nisl. Sadipscing nonummy diam et sadipscing. Consetetur tempor et et.

Ea labore ut ut no facilisi no sed et rebum amet voluptua exerci. Nonumy vulputate iusto sit. Et elit amet nonumy nobis sea quod dolore kasd labore dolores ea lorem ut. Accusam kasd et sit sea amet facilisis et facilisi erat sed gubergren consetetur dolore ea odio. Eleifend et tempor eirmod ea amet voluptua sadipscing labore nonumy lorem sed no lorem sit. Dolore exerci facilisis takimata et sadipscing et amet eirmod veniam gubergren vero amet. Vel dolor erat dolores eu et ipsum duo liber kasd sea nulla facilisi aliquyam sed ipsum.

Sample Output H4

Kasd assum sea. Ea lorem erat elitr sadipscing tempor blandit eos nonumy. Sadipscing sit nonumy vel sit ut invidunt. Iriure duo dolor qui ea clita consequat et est diam stet aliquyam minim. Elitr sadipscing erat dolore accusam vero. Clita duis et accusam sanctus labore facer dolores hendrerit dolor et duis minim sit diam ipsum eleifend. Dolores velit diam dolore clita te gubergren elitr magna no aliquyam facilisi rebum accusam clita sadipscing illum et.

Hendrerit erat sit amet ipsum eirmod in consequat. Luptatum dolor labore. Aliquyam lorem vel stet erat est vulputate amet ea et feugiat. Sit eirmod sit nobis clita. Et labore dolores sadipscing nonumy quod sed labore at. Sea elitr option takimata takimata erat.

Sample Output H3

Sed aliquyam soluta autem ea accusam dolore no consequat erat aliquyam dolores et invidunt delenit duo kasd diam facilisis. Ea voluptua ut amet erat accusam ipsum takimata. Diam stet facilisi est labore et diam magna et et. Feugiat erat kasd eos esse takimata consetetur eos nonummy illum nostrud velit. Sit sit sit amet lobortis velit tempor justo aliquip.

Et ut stet dolor iriure iriure tempor gubergren et. Diam ut ea erat takimata eos duis aliquyam ipsum takimata lorem sadipscing sea in et diam. Elitr aliquip duis sit clita feugait velit et et amet molestie clita invidunt amet lorem eos duo. Et ut sed ex rebum zzril eirmod sed eos sed hendrerit ea. Sea possim erat quis tincidunt lorem et sed consetetur eum aliquyam takimata nonummy sed. Stet nonummy lorem invidunt suscipit sanctus dolores eirmod lorem. Facer stet laoreet est. No accumsan duo quis dolor eos esse feugiat vero dolor ipsum eros ipsum takimata ipsum. Tempor vero dolor sed consequat sed ullamcorper takimata dolor dolor.

Sample Output H4

Molestie et sed clita eos labore in delenit diam duo minim. Accumsan rebum at duo consetetur facilisis. Magna consectetuer dolores invidunt nonumy nonumy diam ullamcorper rebum tempor clita minim sanctus ullamcorper erat. Sed kasd invidunt. Nam justo ullamcorper ipsum ipsum aliquyam et labore erat. Dolor illum ipsum erat lorem sed nonumy dolor dolor ut sit iriure et clita erat ut ut at. Et duo at sea kasd dolore clita aliquyam rebum justo vero dolores magna. Iriure amet congue. Eum ipsum tempor accumsan sadipscing no magna nisl ea magna consetetur invidunt rebum accumsan duis.

Vel dolor eos sea assum elitr eum. Nihil sadipscing nam at lobortis sadipscing sed congue rebum gubergren nonumy elitr. Tincidunt dolores diam eos te feugiat invidunt suscipit est justo dolore vel est. Stet euismod ipsum sea euismod in amet magna et at lorem at accusam amet eros illum zzril consetetur lorem. Erat dolor sit qui diam exerci te et elitr tincidunt lorem id et.

Sample Output H4

Eos diam sit doming invidunt magna sadipscing amet ut at magna. Dignissim ipsum erat lorem sed ipsum labore et diam sed duo magna dolores et. Diam gubergren facer est aliquyam velit eos sit mazim stet lorem diam sanctus. Sit iriure at. Duo est dolores. Et clita dolore lorem dolores tempor minim elitr accusam diam invidunt dolor.

Euismod ipsum dignissim magna dolor erat aliquyam. Sadipscing sit facilisis aliquyam consetetur duis velit labore enim consetetur ex ut sed. Consetetur dolore iusto est at zzril elitr aliquyam iriure elitr et vero dolor sed consetetur euismod. Nisl no amet clita. Qui tempor consetetur facilisis lorem erat kasd et ea duo. Ex takimata possim dolor veniam accusam ipsum et. Ut est stet et sed commodo accumsan. Tempor consetetur consetetur. Elitr erat dolore ut clita dolore iriure aliquyam feugiat ut diam et et qui sit est vero ea. Gubergren nulla consectetuer accusam ea vero eos magna accumsan. Et takimata dolore.

More Sample Output H2

Facilisi in no adipiscing amet nulla ipsum consetetur tempor. Feugiat wisi magna rebum commodo justo erat accusam elitr. Consequat erat consequat kasd sed et lorem et voluptua liber nihil vero sadipscing. Clita sadipscing eum sadipscing et erat sea ipsum diam sit dignissim hendrerit sea dolores diam amet minim ut et. Nonumy erat rebum diam nam nonummy no. Amet iusto sed lorem eos no dolor. Eos velit sanctus rebum elitr dolor nonumy sit doming et delenit vel consetetur erat consetetur. Amet blandit clita dolore aliquyam duo est nam justo gubergren lorem erat kasd praesent cum sed ea. Accusam voluptua sed dolore ut. Sed et amet tempor sed dolore tempor diam nostrud erat no iusto sit lorem takimata lorem. Et sed et ipsum velit qui consetetur et ut luptatum vero gubergren duo commodo stet dolor ut.

Sit ut dolor no et feugiat. Vel sea magna sit nulla. Dolores amet amet eirmod luptatum consetetur justo consequat sanctus. Elitr erat stet magna dolor dolor sit dolore iriure minim quis esse. Tincidunt invidunt diam. Amet voluptua invidunt ut exerci invidunt gubergren mazim eos.

Sample Output H3

Justo veniam elitr ea kasd delenit sit aliquyam at ipsum erat invidunt clita feugiat commodo duo. Amet lorem odio amet ut tincidunt wisi elitr justo qui ipsum sadipscing et ullamcorper laoreet sanctus ut dolor. Accusam elitr et kasd magna takimata invidunt diam possim tempor vero at sanctus duo aliquyam. Eos ut tation sit invidunt lobortis sadipscing sit aliquyam et invidunt accusam sed lorem stet at. Et dolor erat dolor ea dolore nulla eirmod dolores aliquyam sanctus autem consetetur imperdiet. Et no amet et lorem accusam kasd consectetuer lorem takimata dolor sed et rebum eos. Facilisi praesent lorem iriure accusam. Sit possim molestie diam nulla volutpat nonummy tempor et ut justo vel. Eum at sea sadipscing invidunt dolores et nulla eos ex vero gubergren eos.

Vel diam sit lorem diam in ut gubergren soluta est feugiat facilisis est amet tempor. Et placerat id volutpat dolor sit at clita voluptua nam nibh vero nonumy sed esse. Wisi dolor vero eum vulputate ea consetetur vel kasd zzril et. Eos suscipit erat. Ut labore accusam justo vel amet eos dolor magna labore duis. Kasd clita iusto velit et stet kasd. Accusam minim veniam nam magna clita consetetur. Gubergren ipsum iusto et. Diam accusam nonumy voluptua luptatum et dolor eos nibh et lorem ipsum delenit invidunt ea sea. Dolor sea id molestie sed. Et rebum nisl sit takimata sit tempor dolores amet elitr lorem vel quis dolore.

Sample Output H4

Diam vero diam rebum facer et nisl commodo voluptua dolor duo kasd dolor eu amet nulla. Aliquyam dolores veniam gubergren et sit nibh possim sanctus erat amet. Dolor nonumy at velit stet tempor et dolores lorem sit dolor erat sanctus vero sit erat diam lorem ea. Erat sed magna et accusam sanctus justo ea gubergren et adipiscing. Elitr accumsan vero est elitr hendrerit diam sadipscing erat vero sea clita. Dolore lorem dolor amet vel nostrud takimata ad nulla ipsum consetetur vero no zzril volutpat duo qui. Nonummy dolor quis tempor lorem lorem facer tempor ipsum elit dolor. Lorem lorem justo molestie velit takimata eos ea dolor sit tincidunt sit minim nibh magna stet dolore. Ea tincidunt no eu sit sed erat consetetur tincidunt dolor sed voluptua sadipscing autem et vero voluptua nibh nulla.

Dolor amet lorem erat vel. Delenit in eos justo sed lorem elitr diam et kasd vero molestie in. Iriure et voluptua. Lorem erat dolore at labore amet justo et kasd tempor aliquyam nibh velit accusam kasd dolores sea et consequat. Sit et duo praesent est sit dolor sea magna et sit ad justo dolores at rebum. Dolor accumsan et qui est duis sanctus facilisi voluptua odio odio voluptua at takimata consetetur duo. Eirmod vel nisl dolore et ea eu gubergren. Vel sed at et ut sit.

Sample Output H4

Tempor iriure elitr eros aliquyam sed stet kasd. Sed magna magna est dolore volutpat. Est aliquyam dolore eu duis labore sanctus sed no dolor elitr rebum vel adipiscing. Takimata aliquyam ut in duis takimata takimata sed lorem at iusto tempor vero sit feugiat dolor. In commodo hendrerit vel vel invidunt stet nisl possim sit duo et velit eos ipsum clita dolor facer dolor. Rebum tempor eirmod rebum eirmod takimata nonumy.

Dolore sed delenit amet. Consetetur et sadipscing iusto ut. Eos ut consetetur takimata lobortis vero amet. No consectetuer kasd erat eros et et nobis gubergren et voluptua dolor ipsum vero nam nam kasd qui lorem. Tempor aliquyam consetetur accumsan dolores at eu sed tincidunt.

Sample Output H3

At dignissim aliquyam autem aliquyam et nibh et stet dolores sadipscing. Sit esse diam ea ipsum. Ut duis ipsum tincidunt elitr et erat dolor et stet ut erat stet. Dolore amet nostrud eros. Vel gubergren ut et feugiat elitr diam amet eos nulla nonumy nonumy dolor illum aliquyam et tempor. Est quis no ipsum esse sit sit esse minim.

Sit sit eos. Ea ut eirmod est erat at consequat adipiscing diam. Ea et ut sea labore amet dolor eum rebum facilisi stet voluptua sed iusto ut. Sadipscing nihil sanctus voluptua voluptua. Amet nonumy rebum clita elitr sit sanctus no vulputate dolore magna dolor. Dolores sed eum at nonumy dolores erat. Labore ut nonumy eos molestie.

Sample Output H4

Ipsum ut dolore amet nonumy nam luptatum et augue eos lorem dolor. Et et magna amet consetetur rebum dolores accusam magna duo. Gubergren invidunt velit dolores blandit at stet. Magna eum et dignissim facilisis magna amet dolor invidunt diam duo accusam et. Ut dolor gubergren nonumy kasd est qui accusam kasd dolores dolores et sed sanctus et illum adipiscing assum gubergren.

Amet dolores magna vero rebum nibh augue magna quis aliquyam ipsum clita consetetur sanctus amet et. Rebum nulla sea feugiat dolore amet ipsum. Diam nonummy ut consequat consetetur vel kasd justo amet diam ut. Molestie sit nihil et diam amet eirmod et volutpat dolor lorem ipsum et est accumsan dolore possim eros stet. Nulla et vero amet ad augue ad amet et duo amet et praesent eum nonumy dolores sit ut. Magna stet et et sadipscing dolor et ut nonumy vero vel nihil et sed duo at. Et blandit sed exerci ipsum ut duo nisl vel dolore. Accusam iriure nisl sanctus aliquip dolore dolore diam vel eirmod. Dolor mazim in in diam voluptua esse.

Sample Output H4

Ipsum ipsum zzril amet kasd nibh doming kasd sadipscing sit ipsum eu rebum takimata ea sanctus ut diam. Luptatum amet option labore. Invidunt dignissim ut et quis sanctus placerat rebum praesent nibh elit. Sit eros facilisis erat voluptua. Clita gubergren et labore labore invidunt sed ea elitr facilisi dolore vel sadipscing et justo vero vulputate facilisi lorem. Justo rebum elitr molestie vero ipsum accumsan dolor. Suscipit feugait rebum velit at tempor vero duo dolor invidunt adipiscing est clita. Labore lorem lorem sit lorem ipsum et accusam eos sanctus eirmod ut erat dolores ut. Ex sit magna labore dolor ipsum sit elitr justo aliquyam. Nonumy esse et takimata iusto. Augue no et iriure commodo sadipscing amet in assum lorem voluptua at eos sanctus.

At lorem labore at diam dolores invidunt sed kasd dolore. Lorem dolor ex dolor amet te amet blandit sea diam lorem. Ipsum aliquyam nostrud rebum dolore. Aliquam rebum at iusto gubergren stet sit blandit dolor illum. Eos nonumy magna wisi vero sit et eirmod ut. Feugiat sed et. Nobis et suscipit invidunt consetetur tempor lorem tincidunt sit sed consequat feugait amet dolor. Vel diam facilisis rebum sanctus invidunt eirmod eos ea sanctus ut labore eros amet. Lorem tempor accusam invidunt tempor at aliquyam volutpat dolor amet. Ut et diam dolore et veniam et vel amet rebum ipsum.