www.cloudformatter.com

cloudformatter format requests: 2,952,093    pages delivered: 7,798,972

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

Invidunt ea dolor suscipit sit quod eirmod dignissim elitr. Labore at et nibh no feugait dolores et vel dolores amet assum dolor assum no. In elitr vero sed elitr eirmod aliquyam labore diam et sed hendrerit enim sadipscing nibh invidunt nisl. Ea no dolore labore lorem no sit. Sed praesent luptatum diam no sanctus duis ut ipsum amet. Stet ea rebum consetetur tation sit elitr magna ut aliquyam eum feugait iriure invidunt est. Blandit et suscipit diam et nobis laoreet quis feugiat erat sit erat.

Diam diam elit. Diam zzril wisi delenit quod labore sanctus sed aliquip est lorem no sanctus eum sea consequat magna dolor zzril. Lorem clita sea lorem magna nonumy diam sanctus takimata sed amet ipsum erat vel sit lorem est lorem. Erat hendrerit eirmod sit est takimata et clita ut sed. Clita laoreet iriure kasd iriure diam voluptua nulla duo cum enim sit. Accusam ea sit erat in duis. Kasd sed rebum consetetur autem sea et ipsum ipsum in doming et clita justo consequat kasd kasd. Sanctus justo lorem at aliquip sanctus takimata eirmod invidunt. Amet sanctus dolor. Cum tation at. Dolor congue stet ut.

Sample Output H3

Dolore eros sea amet nonumy dolore invidunt hendrerit diam clita feugiat sit eirmod. Sed ut molestie gubergren sed. Duo hendrerit dolor. Sit consectetuer at sit eu dolore eirmod et mazim. Sadipscing consetetur dolor. Eirmod eirmod esse amet dolores gubergren kasd. Eirmod sea minim diam voluptua accusam clita. Nonumy diam at est gubergren eirmod takimata justo gubergren ut ut sadipscing justo clita euismod. Sed diam sed invidunt eirmod diam eros zzril amet diam stet. Sea iriure liber velit no justo tempor lorem et dolore ut kasd dolore.

Sea in duo duo at ea ea stet ut consetetur eros dolores et dolor rebum kasd labore sea vero. Dolor accusam eirmod eirmod lorem vero dolore eos elit sanctus dolores vero lorem accusam invidunt accusam sadipscing diam eirmod. Sadipscing facilisis vel elitr dolor vero lorem accumsan dolor sit dolor molestie takimata voluptua. Eirmod lorem duo duo sit sea praesent ea nulla sadipscing invidunt. Vel kasd sadipscing duo dolore et tempor amet sanctus et amet magna vero accusam amet sit. Tempor no et iriure volutpat lorem amet sea no tempor erat eros ea est lorem. Takimata at delenit gubergren et stet dolores et magna dolore dolores gubergren tempor facilisi aliquyam sea liber magna. Stet dolores feugait voluptua kasd diam tincidunt feugiat consectetuer sea kasd. Ea sit rebum ut rebum lobortis invidunt et sed sed ipsum.

Sample Output H4

Magna nonumy dolore invidunt takimata possim accusam amet veniam invidunt lorem dolore commodo blandit gubergren ipsum ea ipsum. Augue dolor dolore ea et. Elit ipsum magna ipsum accusam labore dolor diam dolores zzril sanctus takimata ad in consequat sed diam ipsum gubergren. Ut ea dolor ipsum erat in voluptua. Nonumy sea dolor vero congue et no consectetuer aliquam dolor sed dolor eu. Feugiat eirmod gubergren consectetuer dolor clita consetetur ut vero wisi nonumy.

Dolore dolor dolore justo diam no. Amet no tempor et vero dolor ad amet possim kasd stet feugait est et. Duis elitr veniam facilisi rebum elitr adipiscing labore gubergren invidunt at eirmod no illum. Feugiat dolor et sadipscing est esse. Sed est et stet consetetur et diam accusam elit ut amet lorem et diam. Et nulla gubergren dolor at vero dolor stet no elitr duo ipsum nonummy sit sit erat clita. Lorem rebum accumsan duo labore dolore luptatum tempor nonumy et. Elitr no rebum kasd et sadipscing nonummy et ipsum stet facilisi magna ex veniam. Gubergren magna dolor est erat takimata et labore et vero lorem ipsum kasd clita ea esse laoreet elitr ea. Dolore tempor sed est sed odio amet sadipscing dolores in.

Sample Output H4

Et stet et magna invidunt dolores autem consequat sea at sadipscing ut voluptua sed labore velit ut at. Nulla sit erat lobortis eos eos sit rebum elitr duis et duo rebum sed consetetur congue ipsum facer duis. Aliquip sit velit sed vero consetetur in erat amet invidunt. Vulputate hendrerit lorem hendrerit tempor sadipscing diam lorem dolor justo ipsum. Amet elit sea duis magna et te invidunt amet qui suscipit amet vero ut dolor labore erat eu. Sed liber eos labore takimata suscipit invidunt sanctus diam sea vulputate consequat lorem luptatum in amet stet et et. Stet magna amet. Et voluptua et magna dolor elitr velit et lorem est nonumy ut. Delenit dolore eirmod dolor no est sed nulla dolores sed. Et amet facilisi ut illum stet sanctus no.

Stet lorem duo sanctus lorem dolor justo. Tempor sadipscing autem sit vero delenit dolores sed et ipsum ipsum. Ipsum lorem ea et dolor. Vel possim lobortis vel amet magna kasd sit amet. Dolor vel est sea no sanctus. Dolor eirmod iusto no. Sit lorem eu dolor dolore.

Sample Output H3

No eirmod hendrerit no dolor stet nihil. Dignissim vero lorem labore sea. Lorem accumsan ipsum. Amet stet elitr at. Eirmod at sed diam dolor nisl. Ipsum facer clita rebum in sed kasd aliquam lorem amet aliquyam sadipscing sed aliquam et sanctus lorem consetetur eos.

Est iriure invidunt laoreet labore tempor eos et eos clita no erat luptatum ipsum feugait labore. Et duis nostrud nulla consetetur wisi nobis lorem nulla sit ea ipsum aliquyam dolore diam sanctus vero. Gubergren sed sanctus takimata esse nam est aliquyam at magna sed duis accusam ipsum. Labore iusto dignissim labore consequat kasd clita ipsum laoreet eirmod justo sea magna sadipscing diam in eos sea sanctus. Stet in lorem sea. Vero rebum feugait dolore dolore justo sit dolores justo sit amet justo et no dolore elit sea nulla. Ut autem et tempor nisl dolore consetetur ipsum et amet. Consetetur elitr minim sed nostrud magna tempor tempor vero ut vero in sit ipsum sadipscing wisi sit duo sea.

Sample Output H4

Kasd kasd takimata facilisis labore vero tempor sit sadipscing et aliquyam sit vel dolor dolor et sadipscing lorem sit. Et at ipsum gubergren eos commodo labore augue magna elitr nisl sea dolores duo. Illum est et takimata nisl amet tempor eos et euismod diam commodo sit sed diam at. Takimata dolor labore aliquip nibh nihil cum vel vero. Molestie labore nulla et vel nulla ex in tempor sanctus nulla. Aliquyam blandit sadipscing et et dolore lorem et eos est ea. Duo rebum et imperdiet. Nibh dolores tincidunt aliquyam. Blandit ipsum exerci odio est. Kasd wisi sanctus dolor gubergren gubergren et.

Sed magna dignissim consequat lorem justo eu luptatum dolore lobortis. Sit sea dolor nibh diam ut velit eos lorem amet. Eu sed lorem rebum lorem ipsum duo. Vero elitr labore labore. Sit magna ipsum magna diam ut ex stet lorem. Eirmod lorem et autem sanctus vero eos lorem illum. Cum dolor sea suscipit labore ipsum amet kasd ut.

Sample Output H4

Duis vero diam sit sea kasd liber gubergren ea ad clita aliquyam erat. Nibh ut et eos amet sit voluptua blandit invidunt sadipscing sadipscing sanctus. Diam te invidunt labore diam ut eirmod diam sit sadipscing kasd ipsum tincidunt diam nobis. Lorem vulputate placerat congue amet ut eros dolor consetetur. Eu tempor erat odio. At et lorem vero lorem. Nonumy ut amet diam dolores amet.

Molestie elitr autem at ipsum eirmod et volutpat sea eirmod sea et. Vero elitr dolor sit dolor no. Velit et euismod clita gubergren sanctus sea ut imperdiet nulla dolor diam stet. In nostrud lorem. Aliquyam takimata dolor aliquip duis kasd praesent et sanctus est sadipscing sadipscing accumsan diam at invidunt accusam. Congue lorem rebum elitr tincidunt rebum at ea feugiat. Accusam invidunt dolor ipsum ipsum lorem duo dolor aliquyam labore nonumy dolore dolore eirmod sit et. Ipsum amet facilisis ea diam et tempor.

More Sample Output H2

Dolore eirmod dolore dolore elit sed dolor amet dolor et lorem. Justo aliquip duo eos sanctus invidunt lorem minim in diam at. Invidunt est justo ipsum dolore euismod aliquip rebum duo sea est aliquyam justo ea et clita congue clita. Zzril duo labore aliquyam aliquyam sea in et stet et dolores et est illum aliquyam congue. No amet dolore sadipscing amet lobortis erat. Rebum in lorem accumsan et. Duo illum et no ea invidunt et nonumy consetetur mazim nisl et in dolores lorem justo volutpat. Dolores diam tempor dolore stet diam dolore kasd accusam ea amet lorem velit eos aliquyam. Lorem takimata erat odio clita vero et esse est dolore. Elitr dolores sit sit rebum et zzril sanctus consectetuer. Et erat autem sed.

Doming nonumy facilisis duo no amet. Ipsum aliquyam velit amet diam diam ad eu voluptua ut at eos dolor nulla dolor invidunt luptatum at at. Ex eu nonumy et no aliquyam clita in ea erat accusam sit dolor sed no. Accumsan at iusto et justo diam sadipscing consetetur ut est stet takimata feugait ipsum no in. Dolore ipsum sea.

Sample Output H3

Tempor et sed erat et sit tempor aliquyam voluptua et ipsum aliquip. Placerat accusam nostrud amet sit esse veniam elitr est elitr est iriure stet accusam. Sanctus et id amet sed ea eirmod et velit diam nisl sit sanctus consetetur sed erat sea. Facilisis dolore at eum et ipsum vulputate id consectetuer ea delenit vero dolores et voluptua sed sit gubergren. Magna nostrud diam ex aliquip consequat lorem dolor hendrerit eos autem exerci consetetur diam lorem. Blandit et duo sit iriure sit ea molestie placerat invidunt. Sed sed et zzril et justo sed kasd amet lorem enim. Et labore nonumy dolor molestie duis sit ut. Vero labore sadipscing hendrerit labore stet duis dolor magna invidunt. Justo lorem stet lorem justo elitr in quod lorem consequat nonumy sanctus invidunt labore sit nibh tempor sadipscing.

Ipsum sit sed. Consequat kasd diam sadipscing est et no rebum. Liber invidunt in accusam takimata praesent sed sed amet magna nonumy dolores amet eos est tempor ipsum elit. Lorem dolore elitr ut stet duo adipiscing lobortis et dolore nonumy nihil voluptua dolore aliquyam. Dolore et elitr sit diam amet euismod feugait blandit dolor magna. Iusto est est invidunt iriure dolor iriure vero ipsum sit voluptua lorem sed. Rebum dolor velit ipsum stet dolore ea feugait eos aliquyam gubergren ut dolore eirmod hendrerit consectetuer dolores sea.

Sample Output H4

Ut consetetur voluptua nisl dolores no lobortis diam sit eleifend ex aliquyam velit et. Eu et molestie nonumy amet vero erat. Vero at erat nisl elitr et ea amet ipsum dolores kasd gubergren et et. Esse et magna no quod eos aliquyam vulputate iriure lorem wisi kasd duis luptatum nonumy. Sanctus est sadipscing dolor nonummy takimata sanctus sit diam justo amet ea accusam quis vero illum. Adipiscing ipsum sit rebum delenit est feugiat consetetur lorem illum cum. Sanctus tempor duo no tation est lorem diam justo vero. Ut cum qui vero dolor sit justo dolore voluptua labore ut sed praesent labore diam gubergren labore sit takimata. Aliquam accusam aliquam et lorem dolore sea gubergren exerci ipsum exerci eum et et lorem sed. Ipsum invidunt dolore dolor dolor. Tincidunt lobortis elitr luptatum ullamcorper amet sed.

Clita assum vero amet magna ut at exerci eirmod elitr. Mazim id vero sanctus vel justo luptatum ea volutpat nihil sea. Invidunt at ipsum amet diam sit et amet nonummy et dolor adipiscing ipsum delenit at vel voluptua vero duis. In sed invidunt erat illum invidunt duo in dolores ipsum duo rebum iusto ut. Dolor dolore feugait labore elitr duo dolor kasd sadipscing vel quis dolore. Sadipscing justo eos nihil sit consetetur rebum vero sadipscing justo dolor eos eos dolore sed et. Et sea invidunt diam facilisi. Molestie nonumy nonumy sit. Ut voluptua amet vero rebum sit id dolor vero. Stet at eirmod gubergren sadipscing option. Iriure no invidunt.

Sample Output H4

Nulla nulla soluta vel sed est diam eirmod suscipit sit ad ad. Ut dolor dolore nulla elit sanctus erat iriure amet et ipsum ad sit ea lorem magna amet nonumy. In ipsum dolores dignissim possim ipsum dolore diam sea ut dolor dolores clita nam amet iriure. Clita accusam ipsum stet facer accusam et. Eirmod justo eos diam accumsan vulputate. Ipsum in eirmod sea lorem sit magna amet ut dolore et.

Ipsum invidunt gubergren ex. Molestie sea eos magna dolor eirmod. Ut at dolore nonumy tempor duo labore et commodo option in wisi hendrerit imperdiet eu dolore gubergren. Minim justo et velit sanctus sit no at accusam accusam. Facer ut sadipscing consectetuer at ea facilisis veniam dolores dolor dolore lorem sed. Justo sit gubergren et sed no eum rebum diam feugiat justo eu praesent justo molestie. Delenit aliquyam stet tempor clita consetetur ipsum et et consectetuer lorem et.

Sample Output H3

Lorem ea sadipscing et ea est duo praesent. Clita illum facilisis dolor sit. Consetetur et nam aliquyam zzril sit molestie sed. Duo erat volutpat facilisis sanctus feugait est amet lorem ut dolore est exerci amet invidunt diam dolor sit. Sit diam ex te ipsum dolore et dolores ea dignissim dolor lorem magna eos. Lorem ut takimata sed eros est sea eirmod eos nonummy stet exerci ex accusam est volutpat augue.

Diam amet consectetuer duo rebum sed labore vero accumsan sadipscing takimata at ut magna ipsum. Diam et kasd lorem clita diam lorem dolore erat lobortis suscipit est sit. Amet wisi consetetur no labore eirmod hendrerit hendrerit elitr amet vero imperdiet labore quis dolores eos in feugiat. Autem diam congue cum amet at consectetuer et ipsum eirmod takimata ex erat adipiscing. Sadipscing sanctus dolor eros dolor ea sit ullamcorper erat. Exerci illum sadipscing vel no tincidunt erat sed lorem et luptatum et et amet labore aliquam duo. Nobis ut duo option ea lorem est consetetur diam duo dolore justo duis. Et sadipscing takimata nostrud diam. Et dolore sed eos takimata et dolor et sed.

Sample Output H4

Duis dolor consectetuer est. At clita dignissim eirmod. Justo consequat kasd clita ipsum qui amet lorem lorem tation consetetur et sit. Justo at amet et lorem tation dolore iusto dolor diam. Et rebum ea nonummy blandit amet nonumy dolores tempor et labore duo kasd est aliquyam dolor eos. Consetetur luptatum dolores enim duo consequat dignissim aliquyam accusam volutpat. Dolores sit ipsum vel et magna possim aliquyam sed et clita lorem consetetur. Sadipscing ea invidunt labore justo lorem est gubergren tempor zzril diam accusam takimata aliquyam erat sanctus. Ut tempor ut et euismod magna kasd dignissim.

Et consequat stet eu clita. Duo et velit erat amet accusam labore consetetur laoreet gubergren nonumy sed lorem vero consetetur consectetuer. Dolor lobortis duo no kasd consectetuer eirmod sea ea imperdiet duis labore. Hendrerit dolore dolores duis hendrerit lobortis eros. Nulla ipsum et sed ad feugiat elitr elitr ut.

Sample Output H4

Lobortis ea kasd gubergren consetetur rebum justo at et invidunt magna. Sanctus dolor magna dolor sanctus takimata. Amet nonumy at sed te suscipit lorem dolores ut justo. Et stet duis magna nulla sed feugiat eos eos volutpat ipsum dolore veniam lorem. Clita diam ipsum adipiscing. Molestie labore magna duo ut sed sea dolores et sit.

Sanctus eirmod sea duo stet sed. Et possim kasd nisl et dolor sed vel ullamcorper dolore sadipscing ut et labore vero facilisi eu dolore sanctus. Invidunt et et ea facilisis vulputate imperdiet vero et sit gubergren. Dolor labore clita at in delenit dolor accusam eos dolor sit nisl dolore sed diam. Luptatum lorem et ut labore consectetuer.