cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic PDF creation and Version control

omegerard
Champ in-the-making
Champ in-the-making
When you request Alfresco to create a PDF from a word file, it considers this pdf as a new file, without version history (unless of course the versioning aspect is turned on in the space where the pdf is stored). There's nothing wrong with that.

Having said that, it would be nice, if the newly created PDF would somehow show the version number of the source document so the party to which the pdf is sent, can refer to it with the version number.

Similarly, if you decide to provide intermediate versions of a document in pdf, how can you make sure that these pdfs persent themselves as different versions from one and the same core document?
1 REPLY 1

davidc
Star Contributor
Star Contributor
The generated transformation holds a reference back to the source content - however, the reference property is not displayed in the web-client by default.  A template could be written to show the source document information including the version label.

For example:

<h3>=====Source Document=====</h3>

<#if document.properties["cm:source"]?exists>
    Name: ${document.properties["cm:source"].properties["cm:name"]}<br>
    Version Label: ${document.properties["cm:source"].properties["cm:versionLabel"]}
<#– ${document.properties["cm:source"].properties["cm:versionLabel"]} –>
<#else>
  <b>This document is not derived from any other document.
</#if>

All versions of the same document are held in the same version history and so it's possible to determine if two versions are from the same core document (this would have to be done via the API for now).