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

Free Support Forum - aspose.com

Loss of format while uploading a document


I have a document (Doc1), which Iam trying to upload into database as Blob.
While doing this, i have extracted the content between required nodes and created document for text between these nodes.
Doc1 is the input document.
Doc2 is the uploaded document.

i can observe the data but there is some format loss.
Ex: one page is uploaded as two pages.
Borders of page are missing in the uploaded document.

Other issue is when i compare these two documents using doc.compare
i find it highlights some differences like section breaks, page breaks etc
And also observed that some control characters are coming in paragraph node

Doc1.pdf (43.8 KB)
Doc2.pdf (59.9 KB)


Thank you for contacting support.

Would you please elaborate the problem a little more, specifically the page numbers, extracted content and creation of document for text while sharing a narrowed down sample application so that we may try to reproduce and investigate it in our environment. Please also include uploading into sample database as blob in your application for our reference.


Currently im trying to upload the mentioned documents as it is.
i.e trying to read the content node by node and insert these nodes into another new document.

Input doc is in docx format.
Output is rendered as pdf in browser.

Issue is When we are inserting nodes into new document, formatting is getting lost. i.e borders, breaks etc.


Please share a narrowed down sample application reproducing this issue so that we may try to reproduce and investigate it in our environment.