StimVinsh / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Problems with dynamic images of version 0.93 #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. using xdocreport version 0.93
2. creating a odt document with images using Freemaker.
3. see attached snippet.java and .._Example093.odt

What is the expected output? What do you see instead?
see example created with version 0.92. Of course image sizing is not 
operational.

What version of the product are you using? On what operating system?
0.93 win7 64 prof

Please provide any additional information below.
Example .._Example093.odt was created, having the same conditions as in 
previous version 0.92. i.e. keepTemplateImageSize set false, and all 
picture.settings commented out.
.._Example093_widthSize.odt shows the result, if keepTemplateImageSize is set 
true and picture.settings are used for the first picture. Note, the settings 
for the second picture are not changed.
Using one of the pictures to insert in your test example shows the outcome in 
the ODTProjectWithFreemarkerAndImage_Out.odt attachment. It works, but I don't 
know why.
Finally, in the Content.xml taken from the odt Example093.odt, we can see, that 
the second image tag is empty.

The main difference in my application and your example, my pictures are not 
stored on the disk drive, but comming as ByteStream from the DB. This didn't 
have any influence in version 0.92, but 0.93 seems to have a different 
behaviour.

Original issue reported on code.google.com by juerg.br...@gmail.com on 15 Nov 2011 at 7:32

Attachments:

GoogleCodeExporter commented 8 years ago
At first, what is teh class InputStreamImageProvider? Is your own class? 
Perhaps there is a bug with your class (can just read once time teh 
InputStream?)?

I suggest you to use ByteArrayImageProvider instead of using (youir own class) 
InputStreamImageProvider like explained at 
http://code.google.com/p/xdocreport/wiki/ODTReportingJavaMainDynamicImage#IImage
Provider

Regards Angelo

Original comment by angelo.z...@gmail.com on 15 Nov 2011 at 9:54

GoogleCodeExporter commented 8 years ago

Original comment by angelo.z...@gmail.com on 19 Jan 2012 at 11:45