dbarra / xdocreport

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

odt->pdf error (NullPointerException) #247

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Options options = Options.getFrom(DocumentKind.ODT).to(
                ConverterTypeTo.PDF);
IConverter converter = ConverterRegistry.getRegistry().getConverter(
                options);
InputStream convInput = new FileInputStream(inputFile);
OutputStream out = new FileOutputStream(new File(outputFilePath));
converter.convert(convInput, out, options);

Last line throws an exception (stacktrace in attachment).

What is the expected output? What do you see instead?
The output pdf document has zero KB size (it is not generated - exception 
occurs).

What version of the product are you using? On what operating system?
XDocReport-0.9.8, itext-2.1.7, odfdom-0.8.7
Java jdk 1.7, Win 7

Please provide any additional information below.
Input .odt file attached.

Original issue reported on code.google.com by fantasty...@gmail.com on 10 Apr 2013 at 9:52

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

Please try with last version 1.0.0. If you have again problem, please attach 
your odt in this issue.

Regards Angelo

Original comment by angelo.z...@gmail.com on 10 Apr 2013 at 9:57

GoogleCodeExporter commented 8 years ago
I tried with version 1.0 but error still appears.

Also, I discovered that when I remove image from input odt file It works 
correctly.

Original comment by fantasty...@gmail.com on 10 Apr 2013 at 11:09

Attachments:

GoogleCodeExporter commented 8 years ago
Problem repeats in version 1.0.0
Even the online convener has the same problem (
http://xdocreport-converter.opensagres.cloudbees.net/): pdf document is not
generated.

Input file in attachment.

Original comment by fantasty...@gmail.com on 15 Apr 2013 at 11:48

GoogleCodeExporter commented 8 years ago
This bug was not fixed. I must find time to try to fix it.

Regards Angelo

Original comment by angelo.z...@gmail.com on 15 Apr 2013 at 12:51

GoogleCodeExporter commented 8 years ago

Original comment by angelo.z...@gmail.com on 3 Jun 2013 at 9:12

GoogleCodeExporter commented 8 years ago
The reason of this problem is an image in wmf format. Wmf is handled in a 
special way.
An jpg or png image probably would not cause such an error.
The problem is fixed in version 1.0.3

Original comment by abe...@gmail.com on 11 Jun 2013 at 10:44

GoogleCodeExporter commented 8 years ago
So, when version 1.0.3 will be released?

Original comment by fantasty...@gmail.com on 19 Jun 2013 at 5:20

GoogleCodeExporter commented 8 years ago
I donw't know when 1.0.3 will be available. I must finish to fix other issues 
about  pdf converter, but I don't know when I will have time to do that 
(perhaps in one month?). 

Original comment by angelo.z...@gmail.com on 20 Jun 2013 at 7:39

GoogleCodeExporter commented 8 years ago
It's been almost 4 months. Can you tell me when 1.0.3 version will be realised? 
Or (at least) which jars from snapshot repo should I use to temporarily 
overcome this issue?

Original comment by fantasty...@gmail.com on 16 Oct 2013 at 4:05

GoogleCodeExporter commented 8 years ago
> It's been almost 4 months.
We are very busy, it's hard to find time for XDocReport. I hope 1.0.3 will come 
this month.

> which jars from snapshot repo should I use
Please read 
https://code.google.com/p/xdocreport/wiki/Download#Maven_repository_artifacts

Original comment by angelo.z...@gmail.com on 16 Oct 2013 at 10:31