teqnology / alfresco-pdf-toolkit

Automatically exported from code.google.com/p/alfresco-pdf-toolkit
Other
1 stars 0 forks source link

Content Type is revert to cm:content #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We use PDF Toolkit Version : 0.97

What steps will reproduce the problem?
1. Create custom content type for example custom:invoice
2. Upload 1 document and make rule in its space : if custom metadata 
(custom:ApproveStatus)=Approved then apply watermark inf Space "Result"
3. The watermark result is shown perfectly in space "Result", but the result 
has content type cm:content, not custom:invoice

What is the expected output? What do you see instead?
the expected output : the watermark result also has the same content type 
(which is "invoice"), and has its original metadata values.

What version of the product are you using? On what operating system?
We use PDF Toolkit Version : 0.97
OS : Linux

Original issue reported on code.google.com by t...@softbless.com on 28 Aug 2012 at 9:28

GoogleCodeExporter commented 9 years ago
When the toolkit performs an action against a piece of content, a new content 
item is created in the destination folder.  I agree with the submitter that 
this new content should carry forward its type, any applied aspects and its 
metadata.  I'll get this fixed for the upcoming 1.0 release.

Thanks for bringing this up!

Original comment by nmcminn on 16 Sep 2012 at 11:38

GoogleCodeExporter commented 9 years ago
This issue is resolved in r76, which will be released as 1.1.0.  

Each action now has a "createNew" setting in alfresco-pdf-toolkit-context.xml.  
Set this to "false" to create a copy of the actioned node, preserving the type, 
aspects and properties.  Set to "true" to create a new node with the type 
cm:content intstead.

Original comment by nmcminn on 23 Sep 2012 at 1:25