www.cloudformatter.com

cloudformatter format requests: 6,320,649    pages delivered: 14,373,145

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

Nulla at eu dolore et delenit et duis sed sit nonumy amet no enim lorem no ipsum kasd. Sit iriure dolor odio vero sadipscing magna takimata accusam diam ipsum dignissim ut et duis eirmod in duis sed. Ut suscipit est nonumy et ea sit euismod sea. Est sea laoreet. Ea amet et laoreet feugait nonumy ut aliquyam commodo adipiscing. Ut ipsum dolores. Eros invidunt kasd et velit erat amet. Dignissim et vero dolor ut duo ea et at erat takimata delenit. Est et diam nonumy consequat diam lorem aliquip rebum esse stet elit dolor ex ut. Dolor sit magna. Invidunt stet magna et ut dolore eirmod.

Amet vel sit. Ad dolore justo accusam luptatum tempor at. Lorem sanctus volutpat wisi illum iriure consectetuer nonummy nulla ipsum diam diam takimata ea elitr vero vero elit. Diam soluta euismod rebum sed amet voluptua lorem erat ex eos vero ea et veniam dolore accusam. Qui sadipscing adipiscing et et magna aliquyam magna invidunt clita. Sed nonumy dolor tempor aliquyam dolor exerci kasd elitr nibh veniam vero enim iusto aliquyam takimata eu. Diam diam et volutpat ipsum vero in in molestie sed illum et in duis. Dolores duo et. Eirmod labore in takimata accusam ipsum et. Dolor accusam delenit consetetur.

Sample Output H3

Vero dolore volutpat lorem sea aliquyam takimata praesent exerci duis sed autem no. Et gubergren dolor labore sea magna vulputate minim sit accusam sed sanctus vel et invidunt ea. Cum sea eu kasd. Sanctus dolores te sed justo diam consetetur. Eum sed accusam exerci eirmod. Takimata kasd invidunt consetetur facilisis nonummy tempor consequat iusto dolore volutpat est magna. Eros voluptua placerat consetetur sanctus et praesent magna duis et kasd ut duo sanctus elitr et. Et adipiscing sed minim duis dolores ipsum justo dignissim nonummy eum eu nonumy nulla eu sea accusam ea ut. Sit dignissim esse vero doming.

Lorem clita minim magna elitr sit suscipit duis vero. Dolore lorem no feugait euismod lorem iusto accusam sit lobortis. Imperdiet nonummy ipsum diam iusto et accusam sit elitr est et vel zzril duis euismod no duis eirmod. Soluta amet vero justo sadipscing amet voluptua elitr nonumy labore dolores. No elitr veniam magna ut. Diam aliquam aliquyam ut eum magna option iriure aliquip sed no sit.

Sample Output H4

Nobis elitr est. Esse eirmod aliquam sed sit sed zzril consectetuer voluptua dolor takimata lorem est dolor lorem nostrud quis justo. Duo duo sadipscing accumsan autem duo sed dolore nonumy nonumy. Clita ipsum invidunt ipsum autem zzril in amet aliquam ipsum ut kasd sanctus dolor iusto gubergren vero nonummy. Blandit illum sed euismod invidunt facilisis consetetur ad vero lorem lorem feugiat amet imperdiet. Et esse dignissim dolore ea at. Gubergren magna amet volutpat. Tempor sit diam facilisi nulla aliquam gubergren possim eu iusto sea amet. Ipsum dolor qui sed tincidunt facer no et. Adipiscing et sed dolores dolore et sed accusam aliquip et eirmod at takimata duo dolor et.

Ut sea labore rebum eum aliquip sanctus doming eos et et laoreet est no at delenit ea consetetur. Sed diam diam sanctus dolore accusam nulla nibh clita sit labore. Amet et eu vero at diam dolor. Lorem kasd ut ipsum volutpat eirmod voluptua clita aliquyam gubergren sadipscing tempor ipsum illum dolores sea. Dolor in sea et vero nostrud congue nonumy feugiat accusam accumsan amet ut enim. Adipiscing sanctus stet augue ad hendrerit sea. Nonumy sit molestie sit ipsum wisi duo iriure volutpat.

Sample Output H4

Nonumy duo gubergren ea eu duis. Gubergren nonumy dolores dolor duo kasd dolore nisl est ipsum dolore qui voluptua soluta sed justo clita voluptua. Luptatum kasd in ullamcorper kasd elitr accumsan voluptua feugiat vero accusam. Commodo rebum feugait dolore ea. Consetetur erat justo dolore et tation odio vero rebum doming erat amet. Dolore eirmod et dolores et invidunt dolor sanctus no sed nonumy est erat ipsum. Justo est sit labore diam nulla ea dolor invidunt tempor veniam magna lorem tempor kasd.

Labore voluptua diam ipsum diam vel no ea accusam amet duo labore et et est elitr ex nonumy no. Consetetur dolores blandit augue elitr vel magna justo est eum duo et magna stet et lorem erat tempor eos. Lorem vulputate nisl magna ea stet invidunt amet sanctus et eos dolore dolor dolor consequat dolores at iriure clita. Luptatum autem gubergren. Illum sit sit magna et dolor erat stet et dolor in sanctus erat. Nonumy sed ipsum ut illum diam et tempor rebum erat dolore. Vel soluta et amet. No nonummy consetetur illum dolores sadipscing duo tation est nibh gubergren amet sit amet feugait. Duo sit et. Ut ea dolor diam consetetur tempor accumsan justo lorem diam vel ullamcorper et te magna ipsum ut lorem kasd.

Sample Output H3

Quod voluptua ipsum euismod accusam feugiat soluta laoreet et. Invidunt takimata dolore. Iriure magna dolores sea eu ut. Sit dolores ut ipsum diam facilisi stet et invidunt ea nonumy lorem ipsum et eirmod amet elit eos et. Amet magna no sadipscing zzril feugait amet tempor labore duo rebum aliquip labore odio ipsum sadipscing dolores. Sadipscing nonumy diam sadipscing dolor. Dolor nibh et. Sanctus et duo esse lorem.

Magna eros voluptua nonumy tempor takimata elitr clita duo ut tempor ea diam vero augue. Sea congue invidunt dolores placerat et sit sit vero in stet no. Lorem erat ipsum nonumy gubergren duo commodo sed amet takimata et dolor magna erat rebum gubergren clita takimata. Clita te consetetur invidunt dolor consequat sit dolor magna option rebum eum euismod clita lorem duo est nulla at. Takimata clita consequat takimata mazim ipsum justo veniam sanctus et esse stet. Amet dolor dolore accumsan sadipscing imperdiet elitr. Accusam accusam sea molestie sed eos ut dolore. Exerci accusam invidunt possim diam lorem vero lorem stet volutpat sed diam laoreet ipsum rebum dolor voluptua.

Sample Output H4

Doming clita clita stet labore sed odio quis no ipsum rebum aliquyam et diam amet in ea diam magna. Dolore nihil accusam autem erat. Dolore ad eos rebum labore ut consetetur voluptua sanctus magna. No dolor eros ex nonumy dolore illum. Sit sit enim nonummy eos ipsum voluptua nonummy amet ullamcorper dolor sed ipsum et magna dolores. Tempor clita blandit nonummy ut takimata eos rebum dolor vulputate ullamcorper in at feugiat stet sit molestie gubergren. Stet dolore amet et nulla et consetetur in sea diam congue at consequat diam doming.

Amet nisl praesent sanctus id volutpat nibh elitr esse elitr te at. Nonumy sed hendrerit labore tempor sed tempor amet voluptua eos sed amet elit vero dolores labore gubergren kasd vel. Nostrud lorem aliquyam hendrerit magna. Duo sadipscing sea elitr delenit ut augue eos amet ea dolore amet eos clita nobis facilisis. Facilisis at tempor kasd consetetur no takimata at magna stet magna quod ut praesent lorem. Dolor voluptua sed eirmod ea sed sea vero consetetur liber ut commodo vero labore kasd sea et rebum et.

Sample Output H4

At diam labore sit et consequat. Consectetuer erat dolores lorem dolore magna hendrerit consetetur velit nonumy. Dolore ut no ipsum magna laoreet sed ipsum sadipscing. Lorem veniam sed et et elitr diam invidunt duis. Sit consetetur et. Enim assum ipsum et aliquyam dolore duo laoreet nostrud lobortis.

Consectetuer eirmod labore quod no duo velit dolores dolor diam dolor et. Sanctus minim takimata clita dolor lorem dolor wisi dolor eos. Sanctus elitr consequat clita tempor amet ipsum dolore eos illum tincidunt nonumy dolore justo sed dolore nonumy. Magna diam consetetur lorem. Diam diam at kasd amet justo dolore amet consetetur et amet eirmod ipsum sit. Dolore minim hendrerit diam nisl et consequat vero invidunt. Invidunt accusam dolor duis et amet diam duo elitr imperdiet facilisi at nonumy iusto stet odio et. Sanctus est aliquyam te eleifend. Possim diam iusto duo ut ut dolore stet nulla. Et dolor sadipscing sanctus accusam et voluptua ipsum quod est invidunt sanctus et et rebum vel. Autem justo duis dolor delenit accusam lobortis vero cum vero eos illum vel labore dolor dolor ipsum ea et.

More Sample Output H2

Diam ut aliquyam amet dolores kasd nulla et delenit est est. Ut stet amet sadipscing accusam diam ut ut eirmod tempor sit dolor wisi amet et. Est et et dolor et ut consequat commodo lorem sit sed sed ea sed lorem ipsum justo. Sed et ipsum voluptua labore sit vero eros stet nostrud assum diam. Dolores diam option sed magna vulputate takimata. Sadipscing diam sanctus nisl. Mazim ipsum dignissim. Consectetuer duis wisi tempor accusam duis nonumy erat amet invidunt et in gubergren. Stet diam vero feugiat assum labore stet vero eum amet adipiscing labore consetetur tempor lorem.

Diam takimata est voluptua voluptua. Tincidunt sit sed est ipsum feugiat et. Et commodo ea et. Eum diam vero lorem feugiat exerci ea takimata magna. Est accumsan kasd invidunt dolore sit molestie liber clita tempor dolor wisi labore dolor aliquyam rebum tempor.

Sample Output H3

Diam dolor sed nonumy takimata duo diam duo volutpat amet velit kasd. Sit te clita elit nam elit tempor eirmod magna dolor veniam erat sanctus. Elitr no sed enim dolore vero sit duo duo diam lorem nisl justo sanctus consequat dolores consetetur et. Dolore dolore at sed praesent voluptua vel sanctus eos eleifend est et gubergren quis sanctus labore lorem eu. Lorem tempor vero sit sed consetetur. Ipsum kasd aliquyam quis iusto tempor sit dolor et no blandit tempor in nonumy justo duo.

Consectetuer diam sadipscing diam rebum. Sadipscing ullamcorper stet nihil nonumy nibh. Gubergren dolores sed justo lorem voluptua clita consetetur duo invidunt takimata duo et. Amet tempor ut labore et dolore sit sed et et dolor ipsum sea. Labore elitr et delenit ipsum rebum justo justo ut lorem et elitr sed eos rebum gubergren. In et sed sadipscing wisi consequat at dolor quod ea. Et vero voluptua sanctus. Eum at voluptua justo feugait delenit gubergren aliquyam ea odio sadipscing qui diam et veniam no takimata vel sanctus.

Sample Output H4

Takimata option ut possim et consetetur lorem elit. Diam eos kasd vero duis clita nonumy at kasd voluptua veniam kasd consetetur ipsum sadipscing gubergren et et. In rebum doming ipsum erat sit eirmod aliquyam eirmod congue dolor et kasd. Amet id et hendrerit dolor aliquam lorem elitr elit dolor aliquyam consequat. Stet ut at sed ipsum eos iriure tempor qui ex assum dolore hendrerit gubergren et.

Consequat tincidunt consequat elitr ad laoreet vero. Esse dolores invidunt dolor veniam no eos delenit consetetur voluptua imperdiet tation justo. Ipsum labore adipiscing nonummy consetetur ea dolore erat. Elit placerat sanctus diam. Dolore magna justo erat ipsum consetetur et magna sanctus lobortis nonumy facilisi et. Congue ut tempor sea accumsan in sea sit dolore dolore feugiat sadipscing. Diam possim accumsan gubergren accumsan in.

Sample Output H4

Stet vulputate luptatum eos at vulputate. Diam sed in accusam duo voluptua minim sadipscing clita sit. Imperdiet rebum amet ut ipsum aliquam eu ipsum takimata labore eu dolor lorem invidunt duo dolor. Consetetur diam ut ipsum sit consectetuer. Dolor voluptua sea no elit stet dolor at consetetur nibh sadipscing.

Diam nonumy dolor clita facer dolor at sit dolor tempor ut et est. Eos vulputate lorem duo. Dolor diam sit gubergren clita et aliquip id accusam est. Eos elitr et takimata eos ipsum no sanctus tempor enim amet sed sit dolore. Voluptua sanctus et.

Sample Output H3

Consetetur sea dolores ullamcorper in doming stet ex elitr ut takimata aliquip sed duo lobortis voluptua lorem ipsum. Eros vel iriure sed diam dolor volutpat amet nulla hendrerit sadipscing voluptua dolore sanctus dolore aliquyam duis at. Justo dolor elitr tincidunt rebum elitr. Et tempor et dolor. Sed magna diam takimata suscipit magna dolores in lorem accusam amet lorem ea praesent nonummy magna rebum. Stet lorem sit eirmod erat sadipscing duis takimata at enim sit doming magna volutpat aliquyam. Kasd clita elit dolores sadipscing duo consectetuer nisl facilisis ipsum justo takimata gubergren kasd. Nonummy vero consetetur accusam quod. Sed dolor ut lobortis luptatum elitr duo hendrerit no laoreet eum vero est dolores. Ut wisi ipsum consetetur accusam et facilisis magna accumsan kasd luptatum sit justo. Labore clita dolor suscipit ea sed kasd autem te nonummy at ea ea enim.

Et lobortis aliquyam volutpat ea aliquyam amet voluptua tempor clita dolore. Consetetur et labore zzril autem amet vero. Et justo sed kasd accusam dolores accusam in justo elitr dolor clita vero. Sed clita ea clita sed iusto invidunt stet dolor dolor iriure vero aliquyam ipsum consetetur. Molestie ea nulla dolor elitr rebum nostrud et dolor erat no tincidunt sea clita. Volutpat diam elitr ipsum et labore stet no accusam. Kasd vel vulputate lorem feugiat imperdiet sed dolor eos in velit nonumy et kasd magna duo autem eos. Stet amet no diam dolor. Hendrerit dolor sit et sit et sanctus est molestie et imperdiet eirmod facer luptatum vel. Feugiat labore est sadipscing rebum quis magna accusam iusto velit nonumy ea vero lorem ad aliquyam gubergren ipsum eirmod.

Sample Output H4

Nulla at aliquip. Et duo zzril cum sed est voluptua no sit. Dolor ut ipsum et sit et tincidunt duis at luptatum ut ipsum takimata autem. Velit vulputate vero et eos vel hendrerit vel adipiscing aliquyam elitr amet diam sadipscing labore rebum. Erat sea qui consetetur duo et iusto dolores hendrerit no sanctus ipsum lorem vel clita sit tempor nonumy. Autem lobortis vero nam et justo dolores odio at et eirmod facilisi. Amet dignissim et lorem erat sanctus erat duo accusam ipsum nobis. Labore diam vero iriure aliquyam lorem. Ipsum et amet dolores.

Consetetur at dolor ut adipiscing ut sit invidunt lorem ut ipsum consequat. Eos nulla tempor justo voluptua diam facer iriure placerat. At voluptua amet vel labore assum sed accusam. Ea sed ut feugiat aliquam sit no justo duo nulla ut illum takimata amet dolores sadipscing diam. Ipsum eos aliquyam dolore.

Sample Output H4

Et voluptua facer invidunt dolore sed sed no stet et esse ea. Rebum blandit dolor. Invidunt sed et takimata sed amet magna dolore elitr labore. Voluptua lorem vero et justo eu sed mazim nonumy. Nisl est at. Enim no diam ea diam eos et amet invidunt sadipscing elitr ut rebum dolor. Feugait dolore sed consetetur amet dolore zzril sadipscing ut rebum vero suscipit gubergren et delenit luptatum invidunt erat ipsum.

Accusam sit ipsum sed est. Sit aliquyam ullamcorper et. Dolore ut dignissim kasd sanctus gubergren aliquyam nulla dolores. No et et. Eos vero sed. Nonumy et et et invidunt eirmod dolor nonumy consequat lobortis dolor vulputate rebum gubergren quod est. Nostrud tempor eos eos id ex velit accumsan voluptua duis autem stet dolore et takimata. Dolor lorem eu ea hendrerit et luptatum laoreet diam diam sea at commodo sit lorem voluptua kasd nibh erat.