I have a word document with about 100 pages. Is thier a way to open a subset of the document by specifying the page numbers (for example pages 3 thru 6) as a new document. I then want to take that new document object(with only pages 3-6) and save it off as its own document.
Thanks for your request. MS Word document is flow document and does not contain any information about its layout into lines and pages. So there is no way to determine where page starts or ends and there is no way to split Word document into pages using Aspose.Words.
Currently, you can only extract a particular page of the document as an image, PDF or XPS document.
Thanks this seems to work on my local machine. However when I push the code out to our dev server it seems that the PDF pages do not match up exactly to the word doc pages? Does it have to do with the server not having office 2007 installed(which I have locally)?
The document we are pulling the pages from to convert to pdf is a .docx file.
As a complete test locally I saved my word doc(141 pages) as a PDF which came out to be 141 page. On the dev server running the same code the ouptut of the PDF is only 138 pages?
Does a different operatiing system on the server have something to do with it? Or the fact office isnt installed out there?
Thanks for your inquiry. The problem might occur because not all fonts that are installed on your local machine are also available on server. That is why layout of document can be different on local machine and on server.
You can just install fonts on server to fix the problem.
Best regards,
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.