Hi,
Aspose is removing pages when converting from docx to pdf, that have been formatted with Words “Find Frame” feature.
The issue can be recreated with:
Document findFrameDocument = DocumentHelper.OpenReadOnly("C:\\Users\\UserName\\Downloads\\find_frame_problematic_document.docx");
Document noFrameDocument = DocumentHelper.OpenReadOnly("C:\\Users\\Username\\Downloads\\document_without_find_frame.docx");
var saveOptions = SaveOptions.CreateSaveOptions(SaveFormat.Pdf);
findFrameDocument.Save("C:\\Users\\UserName\\Downloads\\findFrameDoc.pdf", saveOptions);
noFrameDocument.Save("C:\\Users\\UserName\\Downloads\\noFindFrameDoc.pdf", saveOptions);
find_frame_problematic_document.docx - document with the first page being formatted with “Find Frame”
document_without_find_frame.docx - document with “Find Frame” feature removed from first page
findFrameDoc.pdf - converted document where the first page was removed.
noFindFrameDoc.pdf - converted document as expected.
Please find attached the aforementioned documents
noFindFrameDoc.pdf (309.8 KB)
findFrameDoc.pdf (303.8 KB)
find_frame_problematic_document.docx (674.1 KB)
document_without_find_frame.docx (582.0 KB)
Thanks
@ServerSide527
It appears you are encountering an issue with Aspose when converting a DOCX document that utilizes the “Find Frame” feature to PDF, resulting in the first page of your document being removed during the conversion process.
This problem may stem from how Aspose handles certain Word features that are not fully supported or do not translate well into PDF format. Unfortunately, the available documentation does not provide a specific solution for the “Find Frame” feature.
Here are some suggestions to troubleshoot and potentially resolve the issue:
-
Update Aspose Library: Ensure you are using the latest version of the Aspose.Words library, as newer releases may contain fixes for known issues.
-
Check Document Structure: Review the structure of the problematic DOCX file. If feasible, try simplifying the document by removing or modifying the “Find Frame” feature to see if that resolves the issue.
-
Alternative Conversion Methods: If the issue persists, consider using a different approach for conversion. For instance, you could save the document in a different format (such as DOCX) and then convert it to PDF, or use an intermediary format that may handle the “Find Frame” feature more effectively.
-
Contact Support: If none of the above solutions work, consider reaching out to Aspose support with the specific documents you are having trouble with. They may provide insights or fixes for this particular issue.
If you have any further questions or require additional assistance, please feel free to ask!
@ServerSide527
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-28626
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.