www.cloudformatter.com

cloudformatter format requests: 1,338,966    pages delivered: 3,531,509

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

Dolor esse accusam gubergren in aliquam vero dolores amet duo facer labore iriure. Te labore voluptua vero ea hendrerit invidunt ipsum vero et dolor gubergren rebum kasd. Elit magna mazim est magna stet dolore amet feugait kasd blandit esse aliquyam. Amet eu aliquyam. Nulla clita vel ad est. Takimata no consetetur clita eirmod takimata wisi sanctus stet volutpat labore odio ipsum congue sanctus dolores rebum blandit. Stet dolor est est nonumy dolore ut ullamcorper aliquyam ut congue illum accusam elitr et. Et aliquip adipiscing sit molestie. Clita vero stet congue erat illum ea dignissim sed ipsum sit amet sadipscing voluptua ipsum diam. Est lorem ea et dolore labore dolore erat quis id luptatum sed stet rebum eos.

Ut aliquyam sed no eum duo. Dolor et option consequat gubergren lorem et stet blandit amet stet at et vulputate no no magna. Et at duis rebum clita labore dolore nulla elitr odio nonumy sit erat. Accusam est diam erat labore dolores ipsum. Sed labore laoreet dolore labore vel facilisis. Diam lorem kasd diam dolor voluptua amet magna accusam nulla molestie ipsum et augue sed sed dignissim aliquip. Sit stet iriure et consectetuer duo.

Sample Output H3

Duis sed aliquyam sit lorem lorem. Magna duo dolore vulputate illum consetetur gubergren adipiscing consequat lorem nibh est nonumy rebum ipsum. Kasd ea sea euismod magna iriure rebum duis et vero nonumy lorem eos sed nulla magna gubergren. Et sanctus sanctus sit eos kasd sed amet kasd laoreet dolor stet wisi dolores. Te justo ut sed vel labore cum est nonumy duo ipsum illum kasd. Takimata takimata takimata iriure kasd lorem et diam rebum sed sit molestie delenit stet tation dolor gubergren stet. Aliquam facilisis accusam amet consequat adipiscing consetetur aliquyam magna amet erat lorem amet aliquyam sadipscing.

Sit sit qui vel vero enim nonumy sadipscing consetetur stet ipsum sed facilisis erat no in sanctus. Stet dolor clita placerat et soluta qui est gubergren ut nisl consequat. Diam lobortis autem stet diam sed exerci amet sit commodo dolor diam duo at. Diam tempor accusam augue nonumy sit erat sadipscing molestie. Duo dolor dolores dolor eos ipsum et iriure elitr stet dignissim labore amet duis magna.

Sample Output H4

Et et kasd dolore ea hendrerit amet rebum et ea consetetur sit commodo kasd kasd accumsan exerci voluptua sadipscing. Sadipscing et eirmod aliquyam autem euismod clita justo takimata. Diam dolore erat aliquam nonummy no consetetur tempor. Sadipscing et in amet in sed iriure voluptua dignissim quod sadipscing elitr vero est. Et clita qui illum assum sea erat diam sea ipsum eum clita vel sed nulla consequat ipsum magna et. Et et et consetetur dolor tempor. Diam consetetur dolore facilisis et sed gubergren zzril blandit diam stet duo sed stet.

Ipsum consetetur amet gubergren dolore est eos amet diam nobis est dolore dolores. Vulputate euismod sit no ipsum et feugait takimata nonummy labore facilisis dolor dolor sit ut dolor consetetur eirmod. Sadipscing eos amet magna diam justo est magna. Takimata et lorem delenit et diam amet ipsum duo et ullamcorper erat volutpat et. Ea soluta labore nulla diam euismod diam lobortis et dolor diam dolores.

Sample Output H4

Et diam dolores magna sed lorem amet erat vero aliquyam molestie sit dolore ut eos facilisis option. Et et est mazim labore eum in hendrerit justo eros. Kasd elitr clita no kasd eros magna. Ipsum no et at diam sed lorem sanctus magna nihil lorem elit eirmod eirmod praesent dolores. Lorem eu sanctus et nisl autem aliquyam dolor eos ea aliquam.

Accusam elitr elitr magna praesent sea tation sadipscing. Praesent aliquyam facer duis sit duis. Dolor accumsan in id ea sea consetetur takimata sanctus diam ut iriure nonumy stet voluptua amet aliquyam diam nonummy. Sanctus amet lobortis at. Consequat dolore et eros ipsum consetetur sit magna at tempor elitr aliquyam duis. Rebum ipsum ea rebum tincidunt dolor at lorem eirmod ut autem tation invidunt ipsum eirmod lorem lorem nonumy dolore. Justo lorem sed consectetuer sea et erat congue consectetuer voluptua labore et amet takimata ad feugiat. Iusto erat nihil duis et consequat takimata clita iusto takimata sit diam accusam eirmod invidunt at consequat. Elitr justo accusam est sed. Ea velit augue.

Sample Output H3

Amet clita eos sed dolore sit takimata velit dolor eos consetetur velit et tempor sed. Accusam kasd eirmod ipsum hendrerit et tation et. Duo ad nam feugiat esse dolore duis duis et sed amet sed ipsum eirmod eros. Eirmod dolor voluptua ea facilisis wisi et dolore stet consetetur. Feugait id aliquip at vero sit sed ea augue amet elitr sit labore feugiat nonumy consequat. No dolor justo et amet qui ex justo elit sea ut dolores erat. Amet in duis vero sanctus rebum praesent vulputate sea vero vero ipsum.

Dolor in aliquip velit et. Dolor vel at. Ea vero dolor et sadipscing in illum. Gubergren sit magna at iusto lorem labore. No suscipit takimata amet nihil ipsum et et eos dolor accusam hendrerit.

Sample Output H4

Iusto feugait wisi odio gubergren magna stet sea clita volutpat vero consetetur rebum eu. Tempor et ut est vero labore erat autem magna diam sit labore erat amet elitr accusam dolor rebum erat. Diam rebum sit amet lorem sea amet kasd. Duo lorem et sed sanctus justo nulla. Tempor nulla et sadipscing ea labore diam no magna et sanctus odio diam eos augue ut eos gubergren diam. Diam dolor sit gubergren sit qui stet takimata lorem et takimata et amet lorem et iusto gubergren lorem sed. Dolor ipsum et tempor iriure sed congue. Lorem consequat lorem amet veniam feugait sit invidunt at invidunt elitr erat accusam consequat possim no doming vero. Takimata diam sed voluptua nulla aliquip gubergren congue tempor erat vero laoreet diam.

Sit diam dolores. Eirmod vel sea aliquyam ea vero eos eum kasd dignissim feugiat stet. Ullamcorper feugiat in nonumy delenit et eu. Eirmod sit sea in dolor eos ea diam lorem ut ex elitr labore et. Praesent takimata iriure dolor magna eos. Sadipscing at dolores et dolores dolore consectetuer erat accusam consequat ullamcorper dolor lorem in lorem sea stet eros. Facer takimata ut magna est dolore vulputate et vero congue lorem et no velit. Dolore soluta euismod diam kasd lorem laoreet et eirmod rebum lorem et et dolore justo sit eu. Sed dolor sadipscing sea consetetur amet ut congue tation nostrud congue gubergren et imperdiet dolore. Lorem dolor et invidunt eu.

Sample Output H4

Duis consequat sit amet eleifend. Aliquip est vel in kasd eu ut clita nonummy elitr nibh duo. Dolor dolores vero dolores elit takimata dolores. Ipsum est duo iriure magna invidunt vulputate veniam eos sadipscing consetetur diam magna dolor ex sit. Est aliquyam ea et iriure tincidunt.

Eros diam sed eirmod qui nobis sadipscing labore sadipscing. Erat sed consetetur rebum facilisis ad aliquam lobortis ipsum amet elitr. Amet adipiscing at diam nibh diam dolores at dolore. Erat no est eirmod est iusto. Kasd sit elitr accusam rebum invidunt sed dolore suscipit eos et eirmod sed voluptua. Erat diam amet sit stet enim et et et duo ut amet option. Sed sadipscing diam sit dolores. Ipsum lorem zzril zzril. Ipsum sed accusam et ut sadipscing magna vulputate eros vel rebum eirmod esse. Eos assum dignissim diam lorem sed dolores sed dolor et aliquyam. Invidunt vero justo vero.

More Sample Output H2

Magna esse euismod ut dolor dolore dolore at et dolor eos eos. Velit vero est diam dolores dolor et dolore est sed dolore gubergren ut diam. Dolore takimata sit tempor volutpat euismod eos ea dolore sit amet no iriure sed est accusam. Vero eirmod dolor wisi magna. Est voluptua ut duis no gubergren dolores rebum magna labore. Invidunt dolores facilisis dignissim dolore. Eleifend sed et sadipscing minim eirmod. Volutpat option eros nulla invidunt blandit invidunt diam. Elitr sit sed diam sed dolor sanctus zzril. Suscipit at elitr sadipscing et in ipsum ea dolor diam sea diam molestie. Facilisi sit erat sed duo elitr sed feugiat erat sadipscing kasd no dolor eu lorem.

Dolore eos dolor kasd augue duis at voluptua labore id sit amet sit dolor amet est. Amet diam dolore et tempor elitr sadipscing eos minim blandit duis lorem invidunt sit justo sed erat. Nisl magna stet. Ut esse dolor. Dolor diam magna dolores sed kasd lorem erat in gubergren diam labore lorem eleifend lorem stet.

Sample Output H3

At duis nibh takimata sit sed sadipscing tempor dolor vero voluptua nulla accumsan gubergren amet dolor. Dolore vero diam diam possim consetetur kasd no no dolore in. Ipsum dolore voluptua sadipscing invidunt clita velit laoreet nonumy gubergren. Elitr autem ipsum dolore lorem ut lorem ut ut te takimata dolores euismod vero ut est. Blandit dolor sed sea est eu consetetur. Et rebum assum ipsum dolor et lobortis sanctus. Ut eum et consectetuer takimata at sanctus labore accusam amet dolor et et. Ipsum ut tempor ipsum sadipscing duo et tempor et lorem ipsum lorem est ea blandit justo sed dignissim nibh. Dolore at erat et exerci eos ut sea et dolore dolor dolore dolores eum. Diam gubergren sit clita lorem lorem ipsum nulla accusam iriure lorem esse sed et magna accusam amet. Diam stet ut duis praesent sea et dolore takimata eirmod labore vero.

Nostrud et clita sed gubergren. Elitr accusam eros amet sea no suscipit dolor amet sed magna te invidunt takimata sea sit vel. Facilisis ut sadipscing dignissim sit consetetur feugiat elit cum et aliquyam. Et amet vero lorem rebum duo consequat sed ipsum tempor molestie vel tempor. Sanctus placerat accusam et doming sea vero labore et erat duis est voluptua autem consectetuer. Est iriure labore rebum assum tempor lorem dolore diam elitr veniam elitr eirmod amet. Takimata dolore stet tempor diam dolor sit velit eos tempor esse clita eros. Sea elitr eirmod sit aliquyam et amet dolor placerat facilisis dignissim lorem dolor elitr. Kasd et amet wisi ea sed erat rebum gubergren iriure dolor accusam ipsum amet eirmod lorem feugait. Stet et lorem ut amet nulla.

Sample Output H4

Eu voluptua labore dolor tempor mazim elitr esse nulla gubergren hendrerit in gubergren dolor accusam erat. Eos duo dolore et ipsum lorem erat clita diam takimata eos esse illum hendrerit lorem accusam. Elit autem aliquyam nonummy sanctus laoreet dolor. Aliquip dolore et ea dolores dolores lorem magna ea eos consetetur delenit sit. Sanctus nonumy diam no et clita augue kasd accusam est accusam et et. Amet wisi et kasd ut nonumy clita. Dolore dolor gubergren no ut tempor ipsum.

Voluptua magna lorem ipsum vero labore imperdiet nonumy eum magna sea velit tempor. Et duo diam volutpat magna sanctus et aliquyam takimata et ipsum praesent gubergren adipiscing at stet vel. Ut nibh rebum invidunt commodo est voluptua aliquyam nonumy. Nam labore ex justo duo ipsum voluptua sea labore nobis. Kasd sed sit at erat hendrerit sea erat kasd aliquyam dolore erat. Ut nibh augue eu enim invidunt dolor justo consectetuer at eos sanctus dolores sed sit diam. Amet sed sadipscing est clita commodo duo gubergren et aliquyam dolores. Nonummy kasd eos et vulputate blandit sea diam nulla voluptua ipsum sanctus ipsum tation tempor.

Sample Output H4

Sed enim dolore et accusam rebum dignissim ea clita nonumy at no accusam erat velit tincidunt duo sea dolore. Vel ipsum consetetur in et. Sed aliquyam tempor dolor magna ipsum amet elitr id et sanctus erat takimata nihil tempor consequat at veniam et. Tempor aliquyam sadipscing ipsum. Ut lorem takimata gubergren magna accusam. Sanctus accusam vero diam eos gubergren lorem autem justo ipsum ut eos lorem et dolor ut eu ipsum sed. Et sanctus consetetur gubergren nisl accumsan amet. Quod eirmod at enim eum aliquyam ut amet velit dolor eos zzril diam takimata elitr nonumy et et ipsum. Aliquip et accumsan ea lobortis vero accusam sit amet delenit justo nulla diam aliquam sit aliquyam eos sanctus sed. Et sit dolor invidunt id voluptua molestie diam rebum ipsum stet clita at diam dolor tincidunt.

Sanctus diam diam molestie vero. Erat rebum tempor eros suscipit clita amet sed elitr nostrud facilisis amet eos ut et dolor molestie ipsum odio. Sit dolore sed sed et amet ea dolore. Odio no elit dolore et diam nibh velit kasd dolore invidunt invidunt nisl sed. Nulla invidunt nobis suscipit et no ea tempor amet illum eos sit dolores sit in gubergren. Dolores sed magna et et. Sit consectetuer aliquyam sea vero accusam invidunt amet rebum. Esse consequat vel consetetur et. Invidunt lorem diam magna voluptua. Quis ad sadipscing invidunt.

Sample Output H3

Sanctus aliquyam euismod ipsum voluptua zzril duis diam invidunt sit. Luptatum rebum ipsum consetetur. Zzril aliquyam kasd amet possim eleifend ipsum dolores takimata invidunt nostrud. Justo dolor ea gubergren consequat minim quod vel dolor molestie takimata dolores aliquyam ea magna eos stet tation dolores. Est accusam stet augue tincidunt dolor sit et rebum. Sed facer ipsum vel sed aliquam consequat eleifend dolor et no aliquyam sit clita est nibh invidunt vero.

Est rebum eirmod accusam dolor elit molestie velit ut elitr veniam ipsum justo eirmod clita blandit dolor. Sea erat consequat feugiat sadipscing amet ipsum nulla voluptua amet. Consetetur est dolor facer et eirmod. Dolor et zzril placerat vel ea nulla takimata molestie tincidunt diam. Eirmod eirmod et lobortis. Eos id suscipit accusam nonumy et nonumy suscipit invidunt euismod diam liber.

Sample Output H4

Lorem amet dolores nobis rebum sit ut. Dolor et labore elit elitr ut labore tempor tempor sit. Erat duo possim rebum. Dolor dolore quis et duis accumsan velit sit praesent diam vero. Ipsum aliquip ipsum ea magna nonumy sadipscing takimata tempor nulla stet. Tincidunt ad at augue aliquip sed nulla consectetuer. Kasd ex ea gubergren aliquip invidunt vero sed rebum stet wisi elitr in nonumy lorem consetetur. Lorem sed dolor diam sit nonumy ipsum duo sed magna ex kasd labore in dolore. Vero tempor dolor duo tempor nihil ipsum ex veniam sed. Dolores eirmod magna sanctus at ipsum accusam. Dolor ut sit no rebum et placerat vero.

Et magna et duo dolore et duo ipsum at diam dignissim at dolor eros et. Ea lobortis consequat dolor et sed nonummy lorem stet at kasd erat. Autem consequat eos erat nonumy augue kasd facilisi labore aliquip. Gubergren sea sed magna takimata sed et et clita ut. Tempor iriure lorem justo at adipiscing eos magna at no diam kasd amet nonumy. Sed eros stet clita accusam et ipsum dolores ut ea consectetuer duo elitr nisl lorem at amet.

Sample Output H4

Elit diam tempor clita aliquam consetetur molestie adipiscing diam dignissim accusam amet et sadipscing. Ex iriure sea veniam. Et ut euismod sit lorem veniam labore magna duo accusam consequat et vulputate amet possim ipsum aliquam accusam. At sanctus ut at ea nisl ea lorem sea et lorem elitr et nonumy. Accusam autem labore magna et clita no lorem ad et et. Gubergren dolore odio et aliquyam vero illum dolor ut tempor no dolor magna nonumy. Sadipscing ipsum ea aliquyam tempor labore dolor commodo diam invidunt assum vero clita dolores dolor diam accusam magna.

Labore liber facilisis eos. Ea labore aliquyam molestie possim et. Nonummy sit praesent voluptua ea consetetur zzril ipsum elitr blandit nonummy diam gubergren ex. Aliquam accumsan luptatum iusto et amet labore sed nisl vulputate. Sit tempor nulla. Rebum et lorem dolor et clita eirmod aliquyam diam voluptua et gubergren. Ea vero tempor nulla diam sadipscing dolor diam duo et lorem voluptua hendrerit et sit duis exerci ipsum tincidunt. In ipsum amet diam rebum labore. Tempor no laoreet eum amet nonumy et dolor vel tempor erat.