cancel
Showing results for 
Search instead for 
Did you mean: 

Transformation from word to pdf and backwards

sim_pm
Champ in-the-making
Champ in-the-making
Hello,
I installed alfresco 3.4.b and i get te following error, when i try to convert from docx to pdf

Failed to create content due to error: 05210084 Transformer for 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' source mime type and 'application/pdf' target mime type was not found. Operation can't be performed

I also get error when i try to convert from pdf to docx.
I checked all the necessary files that other posts proposed and still nothing. Please give me a solution.

Thanks in advance.
8 REPLIES 8

jjaquette
Champ in-the-making
Champ in-the-making
What version of OpenOffice do you have installed?

sim_pm
Champ in-the-making
Champ in-the-making
The version is 3.2

valter_85
Champ in-the-making
Champ in-the-making
hi,

I'm having the same problem when converting doc or docx files to pdf.
Does anyone have any solution for this problem??

thanks,

Valter

adamclark
Champ in-the-making
Champ in-the-making
Are you facing problem doc to PDF conversion, I advice secure and professional utility, you can use Kernel for Word to PDF Converter Tool. That software quickly convert large amount of .doc file to PDF file format without any problem. The software also available free trial version.

To more details visit here :
http://www.doctopdfonline.net
http://www.word2pdfconverter.com/free-trial.html

spitchaiah
Champ in-the-making
Champ in-the-making
Hi,

Using the Alfresco OOTB Rendition Service, I'm able to convert a docx file with just the text content into PDF. But when trying to convert a docx (that has screenshot /images) into PDF, it throws the below error:

org.alfresco.service.cmr.rendition.RenditionServiceException: 11040055 Transformer for 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' source mime type and 'application/pdf' target mime type was not found. Operation can't be performed

   at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine.render(AbstractTransformationRenderingEngine.java:112)
   at org.alfresco.repo.rendition.executer.AbstractRenderingEngine.executeRenditionImpl(AbstractRenderingEngine.java:504)


Also, below is a portion of the code that does the rendition:

RenditionDefinition renditionDef = registry.getRenditionService()
            .loadRenditionDefinition("pdfRendition");

ChildAssociationRef renditionAssoc = registry.getRenditionService()
                     .render(nodeRef, renditionDef);


Please let me know if you if there's a better way to do this.


Thanks,
Somu

spitchaiah
Champ in-the-making
Champ in-the-making
This issue is now resolved(thanks to Alfreso Ent Support). The problem was that the "Open Office" server which is required to do the content transformation wasn't running in the background which is why the transformations were failing. Looks like with the OTB Alfresco Ent 4.0,2.9 Windows installer there's a problem that prevents/skips OO from being installed as a service(its called alfrescoOpenOffice on Windows services). The fix is to run the below script as Admin & the alfrescoOpenOffice service should get installed.

\alfresco\openoffice\scripts\openoffice_serviceinstall.bat


Once installed, make sure its always running if you'll be doing document transformations. Hope that helps!


Thanks,
Somu

spitchaiah
Champ in-the-making
Champ in-the-making
Thanks to "valter_85" for extending his help. We learned from Alfresco support, that for best performance, its better to leave the following configs as such in tomcat\shared\classes\alfresco-global.properties

ooo.enabled=false
jodconverter.enabled=true

christopheradam
Champ in-the-making
Champ in-the-making
<a href="http://www.rasteredge.com/how-to/vb-net-imaging/word-convert-pdf/">Word to PDF</a> document conversion within vb.net application can be very easy that can be finished with following codes:

     Dim PDF As New RasterEdgeImaging()

     Public Sub WordConvertToPdf()
     If True Then
     WordInputFile = ("C:/1.docx")
     ImageOutputFile = ImageFormat.pdf
     End If
     End Sub
     doc.Save(@"C:/1.docx", 1, @"C:/1.pdf")