The ReferenceParagraphID must be set when using ParagraphRelative positioning


#1

Hello,

We are getting the following error saving a PDF resulting from the conversion of the attached word document. We are using Aspose.Word version 3.3.1.0 and Aspose.Pdf version 2.7.1.0.

System.ApplicationException: The ReferenceParagraphID must be set when using ParagraphRelative positioning.
at ൅.ᰇ.ᯁ(Pdf ኂ, Section ᯂ, Table ਣ, Row ᮈ, Cell ᜝, Image ঝ, ᩟ ᩭ, ᯈ ᮿ, Boolean ᕝ)
at ൅.ᶖ.ᶘ(Pdf ኂ, Section ᫼, ᩟ ᩭ)
at ൅.ࡨ.ᮟ(Pdf ኂ)
at ൅.᪭.᪱(ൖ ോ, Pdf ኂ)
at Aspose.Pdf.Pdf.Save(String pdfFile)

Our code snippet,
new Aspose.Word.Document(filePath).Save(tempFile, Aspose.Word.SaveFormat.FormatAsposePdf);
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.BindXML(tempFile, null);
pdf.Save(Path.Combine(directory, convertedFilename));

I have posted this problem in Aspose.Pdf forum and it turn to be a problem with Aspose.Word. Please check http://www.aspose.com/community/Forums/35658/ShowPost.aspx for more information.

Any idea of why this is happening?
Thanks,
Juno


#2

Fixed this in Aspose.Word 3.3.2, will publish soon.