We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Converting odt to PDF

Hello

We have an issue converting odt file to PDF. The generated pdf file has strange green rectangles on the first page even with the last aspose Word dll.

We convert the odt file using this code :

new Aspose.Words.Document(msSource).Save(msTarget, Aspose.Words.SaveFormat.Pdf);

which the same that we use for Word.

May be there is another way for odt files ??

Here are the orginal odt file, the generated pdf and the correct pdf.

Thanks for your help

Regards

Hi Patrick,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 14.5.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-10298. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

Hello

In my original message, I can see that issue WORDSNET-10298 is tagged as "won't fix" .

Does it mean that this bug will not be solved ? It is an issue for us as we do need to convert

some odt files ?

Regards

Hi Patrick,


Thanks for being patient.

Regarding WORDSNET-10298, our development team has completed the work on your issue and has come to a conclusion that they won’t be able to implement the fix to your issue. Your issue (WORDSNET-10298) is now closed with ‘Won’t Fix’ resolution.

Your test file contains two problems:

1. Shapes group is moved from fifth to first page (strange green rectangles) because it has anchor of physical page number:

<draw:g text:anchor-type=“page” text:anchor-page-number=“5” … >
</draw:g>

Please check the specifications at:
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1418756_253892949
19.753 text:anchor-page-number

The text:anchor-page-number attribute specifies the physical page number of an anchor if the drawing object is bound to a page within a text document.

OOXML and Aspose.Words do not support it. Also, OpenOffice and MS Office do not support it. That is why we had to close this issue as “Won’t Fix”.

2. Shapes group is displayed without text content inside because Aspose.Words does not support import of “draw:rect” element content. We have added support of it.

Best regards,