Error while adding images to documents
I want to add image to the file generated by POD. I added the following note:
do text
from document(at=img)
In my program I set the img variable to an existing png image, however, when I Render the document and open the resulting file, I get the following error "The file 'result.odt' is corrupt and therefore cannot be loaded". I then select the option to repair the file and after OOo opens it, at the place where I expect to see the image, I see an object with a text in it file://
It is obvious that the text refers to a temporary file that Renderer created during its work, however that file (the entire directrory) is being removed immediately after Renderer completes its job. I tried to set forceOoCall=True during my call to Renderer, but this didn't help. What am I doing wrong?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Appy Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Boris Gorelik
- Solved:
- 2011-09-20
- Last query:
- 2011-09-20
- Last reply:
- 2011-09-20
Mikhail Denisenko (denisenkom) said : | #1 |
It seems like a bug with Windows version
I've created a patch, you need to apply it to appy/pod/
Here is the patch file
=======
67c67
< f = file(self.
---
> f = file(self.
184c184
< def getImportFolder
---
> def getImportFolder
192c192
< i = importPath.
---
> i = importPath.
211c211
< i = self.importPath
---
> i = self.importPath
212a213
> imagePath = imagePath.
=======
Thank you Mikhail! This will be released with Appy 0.7.1. Indeed, few Windows users around... till now ;-) Gaetan
Boris Gorelik (boris-gorelik) said : | #3 |
Thank you, Mikhail. Your patch solved my problem