cancel
Showing results for 
Search instead for 
Did you mean: 

odt to pdf transformation: openoffice file name field wrong

raaftjon
Champ on-the-rise
Champ on-the-rise
hello

My java based webScript transform a openoffice odt to a pdf. This work fine. But if the odt display the current file name as a field in the document footer, the pdf change the name. For example:

test.odt to OpenOfficeContentTransformer-source-2859216327825020457.otd

I discovered that the OpenOfficeContentTransformerWorker make a temp file for the transformation. And for the time of translation, the file name is OpenOfficeContentTransformer-source-… .

What is the reason for make a temp file?
It's possible to transform without creating a temp file?

I use Alfresco 4.0.d
Thanks,
Jonas
1 REPLY 1

mitpatoliya
Star Collaborator
Star Collaborator
Hi Jonas,

Yes I have also seen that its creating the temp file in process of conversion.
But It seems like that is required because First they need to create some file then they use the writer object from the previous temp file to pass all the content from source file to target file.
So, main reason behind this is in case if this operation gets failed in between original file gets unaffected.