How to write metadata into document

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2014 09:44 AM
i want to copy all metadata i've added or updated into an alfresco node (related to a document) to document itself.
In this manner when document will be downloaded it will contains all metadata like in alfresco.
Is it possibile to do that ?
Thanks.
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2014 10:37 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2014 10:41 AM
Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2014 01:03 PM
Try this add-on. It may do what you need. http://addons.alfresco.com/addons/metadata-writer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2014 11:29 AM
I used the metadata-writer add-on on my local alfresco and I changed original metadata of my document and, also, I created new ones (for doc and docx, but not for pdf).
However, I am looking for a way to insert new info in my .doc file content.
e.g.: I have a document where I need to insert an information from one property of my custom model, in a specific point of the content itself.
Is there a way to do so using the metadata-writer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2014 12:13 PM
Could you add a macro to your docx before uploading to alfresco that reads the doc properties which will be injected by the metadata writer.
Or use the POI libraries directly to author a doc or docx file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2014 04:22 AM
Is there some example on how to get the content of the doc, uploaded in Alfresco, with a java class, I suppose throught some filestream method, that will be used by the POI libraries to modify it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2014 03:44 AM
I am trying to get metadatawriter working without any luck. Can you please post the solution. I am trying to map my metadate to word document properties.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2014 08:51 AM
I modified the metadata-writer-service-context.xml (inside src->main->config->alfresco->extension->model) and created a bean to map my metadata to a word document properties.
I could not modify the content of the word document, but through word I can add standard word properties into the content of the document itself.
This is how I modified the xml:
<bean id="metadata-writer.service" class="org.redpill.alfresco.module.metadatawriter.services.impl.MetadataServiceImpl" init-method="register" parent="metadata-writer.abstract.service"> <property name="serviceName" value="metadata-writer.service" /> <property name="converters"> <list></list> </property> <property name="mappings"> <props> <prop key="Description">cm:description</prop> <prop key="category">ne:aziendaDiAppartenenza</prop> <prop key="Author">cm:author</prop> <prop key="Title">cm:title</prop> <prop key="Subject">cm:modifier</prop> <prop key="Keywords">ne:mittenteMail</prop> <prop key="Producer">cm:creator</prop> <prop key="Fattura">ne:numFattura</prop> <prop key="Stato2">ne:ufficioCompetenza</prop> </props> </property> </bean>
As you can see, I modified the property "mappings" adding some props throught key and the metadata form my model that I wanted to return to the document.
The Italian key value are custom properties added by me in the word document.
I hope this could help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2014 05:36 PM
I cannot find this folder structure(src->main->config->alfresco->extension->model). Please see below for how I installed it.
I downloaded metadatawriter-3.4.12.jar file from metadatawriter project website and dropped the file into /opt/alfresco-4.2.e/tomcat/webapps/share/WEB-INF/lib folder and restarted Alfresco share.
then I exposed 'Metadata Writer' aspect on alfresco share. That is all i've done. Now I cannot see metadata-writer-service-context.xml file nor above file structure.
Please instruct me how to do this.
Regards,
Scopio
