www.cloudformatter.com

cloudformatter format requests: 6,317,697    pages delivered: 14,368,434

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

Eirmod dolor et hendrerit at at suscipit et zzril sit dolor eu no erat lorem at. Aliquyam mazim ipsum. Stet nonumy facilisis sed est iusto ullamcorper voluptua takimata id tempor gubergren magna nulla aliquyam sanctus sit. Nulla invidunt takimata no liber dolor ipsum elitr velit stet duo elitr sit. Vel eirmod in dolor feugait veniam in lorem sit autem takimata qui sit qui. Sit sed justo elitr et amet clita et est et dolore magna clita dolores duis no et kasd. Labore sadipscing labore sed. Est lorem possim diam aliquyam nobis invidunt stet dolor lorem ipsum.

Lorem vero veniam et. Velit dolor sed dolore voluptua tempor duo. Sed feugait suscipit ut amet et stet eos nisl voluptua nonumy accusam. Accusam dolor dolor praesent. Ipsum ut kasd commodo invidunt labore dolor esse aliquyam gubergren tempor iusto.

Sample Output H3

Sanctus sadipscing te amet diam erat lorem invidunt gubergren vel veniam. Dolore kasd sadipscing. Est voluptua magna diam eos consetetur diam no vero ut et labore molestie tempor dolore lorem. Voluptua et takimata gubergren et erat et ea kasd facilisis illum sed tempor justo feugait hendrerit clita vero clita. Diam nibh kasd dolor ut. Ea amet elit amet sed sea dolore sit nonumy amet tempor elitr labore dolor tempor sit illum et hendrerit.

Sanctus hendrerit in et rebum sed gubergren at dolore nonumy hendrerit in lorem stet euismod minim diam. Nulla nihil diam stet ipsum accusam dolor nonumy ea adipiscing gubergren et sit no. Duo no stet takimata sea sed et aliquip et ut takimata et sed cum illum dolore ut lorem in. Ut stet tempor nonumy et et hendrerit diam imperdiet ea dolore elitr nonummy vero. Diam sed accumsan ipsum diam veniam dolor justo tincidunt at. Takimata invidunt rebum ipsum voluptua erat ipsum vel aliquyam lorem nobis elitr. Invidunt consequat nonumy. Takimata at eu ut. Eos ea elitr kasd ex ea et feugait amet dolor tempor wisi et et nulla autem nonumy ipsum. Invidunt magna eros vel ipsum molestie ut elitr odio elitr clita lorem feugait ipsum.

Sample Output H4

Lorem lorem rebum commodo stet aliquam. Gubergren ea sanctus hendrerit accusam rebum. Et dolores et tempor consequat sea rebum nibh diam at ea nulla invidunt dolores. Molestie rebum at ea no feugiat takimata. Vero justo consectetuer no volutpat et.

Ea sea tempor amet sit dolore amet diam sadipscing duo diam erat nonumy et augue. Et gubergren clita vero vero voluptua sanctus nonummy duo sed ipsum ut. Dolores sit accumsan ipsum. Sit erat elitr praesent. Elitr clita sea et suscipit tempor erat invidunt. Accusam dolor eirmod sea no ad assum hendrerit est nulla aliquip lorem duis sadipscing tempor in accusam augue. Dolor eirmod amet id est erat ipsum rebum diam ut kasd. Aliquyam eirmod takimata dolores lorem aliquyam velit ea molestie eos elitr voluptua et. Et magna qui accusam dolor eirmod delenit soluta vulputate hendrerit diam magna kasd lobortis euismod dolores ut nibh.

Sample Output H4

Clita esse lorem voluptua consectetuer dolor sed autem et nulla sed eos ipsum dolore ipsum nonumy. Et tempor consetetur magna molestie autem et diam ipsum ea ipsum sea et nonumy ea tempor ipsum. Dolores gubergren diam ullamcorper. Tincidunt amet amet dolore sit esse vero et consequat vulputate nisl et dolor amet assum no tempor. Lorem aliquyam lorem stet diam dolor tempor voluptua ipsum. Molestie suscipit eum vel kasd aliquam assum accumsan sed luptatum lorem te sit tation molestie accusam eos. Kasd elitr amet minim elit tempor aliquyam et dolor kasd no sadipscing duis feugait ipsum kasd. Sit diam accusam sanctus dolores. Stet volutpat nonumy vero nam labore ullamcorper voluptua ipsum hendrerit et ea. Eum sadipscing vero at nonumy lobortis volutpat nulla nulla. Accusam nonumy exerci labore ea.

Sea et amet esse qui consetetur et vel eos sea kasd ea et iusto stet autem justo. Nulla accusam et et volutpat rebum ipsum labore wisi ut justo amet. Takimata ipsum eirmod sed dolores accusam gubergren sed ipsum wisi clita et sit consetetur no nonumy amet. Stet et magna eos stet ea autem rebum delenit vulputate ut amet takimata rebum diam no lorem ea vulputate. Nulla at aliquyam sanctus dolores dolore ipsum duo sea accusam diam sit takimata. Sanctus placerat vel et et vero luptatum ipsum accusam lorem tation dolor veniam et assum diam nonumy. Volutpat amet sea tempor sadipscing ea dolore duis sit sed sanctus tincidunt vel accusam tempor aliquyam. Est aliquyam et et rebum nibh at ut takimata iriure rebum gubergren et aliquyam et.

Sample Output H3

Sadipscing facilisi amet duo eos amet sed gubergren kasd. Sit eum consetetur lorem ea vel dolor labore takimata. Sadipscing diam sanctus amet ipsum invidunt ipsum consetetur velit. Eos labore vel et sit lorem erat est eos dolor sadipscing illum ea takimata feugiat. Rebum gubergren lorem imperdiet amet nulla ea clita justo ipsum sit. Lorem duis aliquyam labore nonummy suscipit et stet lorem sed takimata elit ipsum hendrerit. Gubergren doming feugait iusto amet duo magna in elitr amet sed erat consectetuer et invidunt vero in. Diam diam id commodo. Takimata dolor ea qui tation dolore ipsum zzril sed sanctus justo est et augue option dolor volutpat labore takimata. Nonumy amet nibh accumsan elitr rebum dolores quis sit at duis vel nulla ipsum consequat. Et lorem sea est diam aliquyam labore vero sit et ipsum ipsum.

Erat sanctus assum rebum et in velit voluptua dolore feugait. Takimata rebum dolor sed et imperdiet ipsum diam vero ut justo sed sit magna gubergren et dolor takimata sed. Lorem esse et sit sea ipsum stet eu gubergren invidunt sea suscipit. Lorem nobis et magna dolore dolores diam sanctus et est elit no enim amet et te consetetur tempor. Dolore ipsum dolor et in. Dolores vel consequat zzril. Labore voluptua stet diam sed aliquyam sadipscing molestie magna nonumy accusam vero et aliquyam ullamcorper tempor stet aliquyam. Et dolor illum diam et ut accusam euismod takimata voluptua sit sed est sea ipsum dolores tempor. Diam lorem lorem. No adipiscing clita ea eos rebum.

Sample Output H4

Justo est vero est quod eleifend erat odio dolor at voluptua invidunt suscipit no ut elitr dolores dolores. Augue sanctus sed at. At nonumy ut lorem tempor nonumy clita at duo aliquyam takimata elit elitr. Rebum dolore magna lorem invidunt clita eum duo et duo delenit. Ipsum takimata labore dolor stet sed erat. Erat aliquyam eos. Clita est rebum amet dolores dolores ipsum. Et luptatum ipsum diam consequat sed nonumy stet nulla takimata no elitr.

Feugait eirmod dolor est tempor clita nobis amet diam id. Voluptua est erat luptatum dolore sit aliquyam et takimata. Ad velit et consequat est. Et dolor accusam. Duis lorem sanctus rebum voluptua feugiat diam eos sed eos facilisi nulla eros. Takimata ut nibh enim et takimata aliquyam. Gubergren illum sadipscing dolore et accusam dolore et adipiscing sadipscing amet ea ipsum nonumy congue et dolor dolor. Diam takimata invidunt ipsum diam stet clita diam et vel et et augue. Nulla vero eos accusam quis dolore at accusam lorem eos. Vulputate clita nulla sit voluptua te vero dolor in feugait dolores.

Sample Output H4

Dolor dignissim est stet nobis diam ipsum consetetur eos illum no. At enim aliquyam dolore minim duo iusto erat dolore consequat qui dolore voluptua sed accusam dolor. At nonumy sanctus ut consequat dolore diam facilisi illum et eum sea. Commodo diam accusam et aliquyam sit sadipscing clita. Lorem sit rebum. Nonumy dolor eos diam justo justo dolor. Ipsum dolor ea clita nonumy eum sed duo dolore lorem gubergren lorem dolor. Takimata at est dolores at lorem.

Gubergren dolore dolor ea ad eirmod elit consetetur sit vero takimata justo ex dolores aliquam no sed. Ipsum consetetur amet hendrerit ut kasd dolore sanctus consetetur lorem et dolor sadipscing feugiat. Lorem kasd takimata dolor eos dolor dolor dolor tempor ipsum ex duis sea rebum accumsan eirmod erat at quis. Vero eirmod ullamcorper et euismod voluptua sea nibh vel amet lorem ut diam takimata justo. Nulla invidunt duo et amet. No vel lobortis consectetuer magna elitr molestie gubergren lorem voluptua. Consequat lobortis nulla amet dolore stet autem. Dolor dolores sed dolore et et erat sed amet sed sadipscing takimata feugiat dolor rebum erat ea. Sit sed lorem elitr dolore elitr eos wisi vel consequat vero eirmod amet et lorem.

More Sample Output H2

Sea dolores dolor eirmod stet dolore rebum dolor assum gubergren dolor ut sit. Ut dolore at ea in. Lorem diam amet sea et iusto magna accusam vel takimata nonumy iusto liber vero. Erat dolor sit et sit labore nonumy tempor eu facer consetetur soluta in et vel nulla et ea doming. Minim et eirmod.

Ex tincidunt diam nonummy est veniam amet et ipsum et blandit vero. Mazim kasd diam diam sit duo et est. Et clita et et et kasd sit sea dolor ea erat diam ea et ipsum vero voluptua. Nulla elit nonumy illum. Esse stet elitr ut sit laoreet illum justo sit ea kasd nonumy erat dolor nisl takimata ut at ad.

Sample Output H3

Erat sed diam ut sed dolor tincidunt elitr dolor hendrerit et. Consetetur dolore sit congue at sed. Eum sit sed sadipscing lorem sit et diam. Duo dolores liber amet laoreet consectetuer sed sit magna amet facilisi diam gubergren voluptua iusto tation erat. Ut delenit ullamcorper sed et minim sit erat sea amet.

Nonumy elitr nostrud et at erat eirmod eirmod takimata dolore te sit duo tation dignissim nonummy lorem justo vero. At molestie qui dolore ad accumsan sit nonumy option. At diam ipsum sea clita et duis et dolor et iusto invidunt vero. Est vero gubergren sed kasd diam dolor. Voluptua duo lorem et eos erat sanctus ut sit lorem ut augue voluptua dignissim odio kasd congue.

Sample Output H4

Erat duo ipsum consetetur. Gubergren sit facilisis ipsum rebum gubergren sed sit. Et rebum rebum no tation voluptua dignissim dolores amet. Eos dolores eros aliquip dolor eirmod erat tation diam no rebum tempor sed aliquyam ipsum augue voluptua. Dolor accusam invidunt accusam clita rebum invidunt tation nisl. Elitr stet et clita sit sit possim ea gubergren rebum vero ut ea et. Tempor volutpat et ea in facilisis sadipscing amet ipsum zzril. Gubergren ipsum sanctus vel amet amet option et blandit sadipscing et dolor tempor.

Eum et feugiat congue wisi sanctus. Dolore vero kasd et. Stet et ipsum vel tempor dolore lorem sed clita eum ex ea erat dolor ea elit. Dolor wisi duis elitr sea ipsum feugiat justo justo dolore elitr sea aliquip. Tempor sit facilisi ipsum facilisis accusam.

Sample Output H4

Lorem eleifend labore commodo labore. Volutpat justo feugiat sed tempor ipsum lobortis in. Erat est vero dolor diam takimata dolores nulla. Consequat aliquyam dolores. Est ut iusto dolor et rebum aliquyam amet tation sed delenit et stet lorem duo nobis est ut sit. Eos diam dolore soluta ut ut dolore iusto et amet ipsum diam. Commodo ea ea justo nonumy justo velit clita kasd at gubergren gubergren zzril laoreet takimata et. Erat amet nisl nonumy veniam nonummy ipsum est kasd lorem magna et at nam elit amet eros et ut.

Ea et lorem zzril dolore liber iusto elitr aliquyam diam at odio. Iusto praesent ut nonumy. Ullamcorper clita stet vel justo accumsan. Invidunt illum ipsum duis lorem duo et ipsum zzril dolor. Clita elitr ipsum accusam lorem vel eos iusto takimata liber labore amet stet te ullamcorper eirmod.

Sample Output H3

Aliquam ipsum sit dolore kasd in tempor sea in. No invidunt eos amet sadipscing dolores eos sit feugiat sit stet dolores. Et et lorem dolor et duo eos dolores aliquyam. Elitr sit amet est erat dolore sit labore sed nonumy liber nostrud possim. Et euismod zzril lorem ullamcorper sed. Exerci ipsum imperdiet. Et kasd eirmod ipsum at et duo. Sadipscing ea lorem lorem erat sadipscing vel lorem amet et sed et dolor sit tempor aliquyam voluptua qui ex.

Dolore minim vero sed at rebum accusam sea. Dolores amet vulputate dolore dolore kasd eum nulla tempor amet diam invidunt adipiscing lorem et nonummy. Esse sea sea imperdiet accusam et consetetur diam magna labore dolore labore molestie stet kasd sit invidunt sanctus no. Sanctus adipiscing et liber lorem amet sadipscing wisi invidunt lorem. Accusam sanctus ea kasd. Lorem ea te invidunt consetetur sadipscing lorem vel accusam consetetur. Magna et in amet dolor ea diam lorem ipsum.

Sample Output H4

Vel nonumy iriure erat cum vel takimata sit erat at ipsum ut minim. Sit eos tation clita et ullamcorper dolore est consectetuer clita. Sit iusto erat suscipit erat veniam sed in diam sanctus odio clita rebum. Et tincidunt et ipsum sadipscing eum blandit gubergren. Sit veniam in elitr nobis amet esse. Labore aliquyam commodo exerci no sed.

Erat stet in esse imperdiet no clita sadipscing diam lobortis magna at sea diam ea magna invidunt amet sed. Accumsan justo magna. Justo et duo dolore elit amet takimata imperdiet et dolore ad illum. In magna kasd ex sit. Ipsum duo gubergren duis amet. Enim laoreet ea amet dignissim et erat takimata amet amet dolor diam vel in sed. Lorem et at stet et eirmod enim autem amet ad augue.

Sample Output H4

Elitr rebum consequat laoreet labore dolores eum elitr kasd. Euismod ut sea veniam sed dolores et dolor. Clita qui rebum nam feugait dolore lorem euismod sea labore amet. Augue clita feugiat takimata tempor rebum vulputate ad vero stet suscipit hendrerit eu wisi facilisis nonumy duis vero. Commodo tation sadipscing et takimata diam. Vero in invidunt sanctus esse vero kasd eu. Takimata elit tempor lorem lorem et.

Duo ea accusam nonumy. Diam gubergren et commodo. Et ea aliquip sed accumsan ipsum rebum diam sit. Est vero sed vel ut sanctus sed diam sadipscing stet in zzril. Amet accusam elitr accusam dolores dolore lorem voluptua nonumy tempor diam gubergren dolores sea. Accusam est et rebum tempor erat nisl id tempor quod ipsum invidunt sit. Vero rebum sea est erat suscipit. Dolore kasd consequat sea elitr soluta et invidunt eirmod sanctus. Sed voluptua liber.