Save to PDF - footer table does not adjust between landscape and portrait

Hello

We have a program that takes a MS Word document (eg. SourceLandscapePortrait.doc), and uses a MS Word template file (eg. model.dot) to change the headers and footers of the source document using the header and footer of the template.

The program works when we save the resulting document in Format MS Word (eg. LandscapePortraitOut.doc)

However, saving the same to PDF, the footer table between landscape and portrait sections is not correct - it follows the width of the portrait page for all sections (eg. LandscapePortraitOut.pdf)

Our java code is the following :

try {
com.aspose.words.Document model = new com.aspose.words.Document(“model.dot”);

com.aspose.words.Document srcdoc = new com.aspose.words.Document( “SourceLandscapePortrait.doc”);

HeaderFooterCollection templateHeadersFooters = model.getFirstSection().getHeadersFooters();

for (Section section : srcdoc.getSections()) {
HeaderFooterCollection srcHeadersFooters = section.getHeadersFooters();
srcHeadersFooters.clear();
for (com.aspose.words.HeaderFooter hf : templateHeadersFooters) {
hf.isLinkedToPrevious(false);
try {
srcHeadersFooters.add(section.getDocument().importNode(hf, true));
} catch (Exception e) {
e.printStackTrace();
}
}
for (com.aspose.words.HeaderFooter hf : srcHeadersFooters) {
hf.isLinkedToPrevious(false);
}
}

srcdoc.save(“LandscapePortraitOut.doc”);
srcdoc.save(“LandscapePortraitOut.pdf”);

} catch (Exception e) {
e.printStackTrace();
}

Please help.
Thanks
Nick Harding

Hi Nick,

Thanks for your inquiry. We
have tested the scenario and have managed to reproduce the same issue at
our side. For the sake of correction, we have logged this problem in
our issue tracking system as WORDSNET-12619. You will be notified via
this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-12619) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Hello

This problem has been reintroduced with the latest versions of Aspose.Words for Java - that is, with 16.1 and 16.2. (note that the versions 15.11 and 15.12 are ok)

We used the same test documents provided in this request to prove that 16.1 and 16.2 are in regression.

Please look into this.


Thanks
Nick




Hi Nick,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-13293. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-13293) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.