You are viewing a plain text version of this content. The canonical link for it is here.
Posted to odf-dev@incubator.apache.org by "Svante Schubert (JIRA)" <ji...@apache.org> on 2017/01/09 18:04:58 UTC

[jira] [Resolved] (ODFTOOLKIT-443) Error converting .ods file to .pdf

     [ https://issues.apache.org/jira/browse/ODFTOOLKIT-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Svante Schubert resolved ODFTOOLKIT-443.
----------------------------------------
    Resolution: Invalid

Hello Igor,

Thank you for creating an own issue, instead of writing in an existing issue.. ;)
Another choice would have been to contact someone on the mailing list, but in any case I am afraid you are asking at the wrong people.

The sources from your stack trace belong to a package from the following small enterprise:
http://opensagres.fr/index.php
There is a button on the site you may use to sent an email.

Here the reasoning: the package 
   org.odftoolkit.odfdom.converter.core
only belongs by naming to this project. Likely the developer desired to have package access and instead of coming to the list, was simply reused the package, which is suboptimal.

You can find the project on
https://mvnrepository.com/artifact/fr.opensagres.xdocreport/
But you can not find it in our sources:
http://svn.apache.org/viewvc/incubator/odf/trunk/odfdom/src/main/java/org/odftoolkit/odfdom/

The ODS document seems to be a well-formed and valid ODF document. I have tested it with http://odf-validator.rhcloud.com/

Good luck!
Svante

> Error converting .ods file to .pdf
> ----------------------------------
>
>                 Key: ODFTOOLKIT-443
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-443
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: odfdom
>    Affects Versions: 0.7-incubating
>            Reporter: Igor Avila
>         Attachments: odfdomsample.java, origSpreadsheetFile.ods
>
>
> I'm using odfdom version 0.8.7, simple-odf version 0.6.6, odfdom.converter.core and odfdom.converter.pdf version 1.0.6, having same trouble with version 1.0.5 and lowagie.itext version 2.1.7.
> What I'm trying is to open a .ods file, fill content and finally convert it to pdf. The problem is when I try to convert it to pdf, I always have the same exception:
> org.odftoolkit.odfdom.converter.core.ODFConverterException: java.lang.NullPointerException
> 	at org.odftoolkit.odfdom.converter.pdf.PdfConverter.doConvert(PdfConverter.java:82)
> 	at org.odftoolkit.odfdom.converter.pdf.PdfConverter.doConvert(PdfConverter.java:43)
> 	at org.odftoolkit.odfdom.converter.core.AbstractODFConverter.convert(AbstractODFConverter.java:42)
> 	at odfdom.odfdomsample.processSpreadsheetFile(odfdomsample.java:184)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)