when a pdf file’s page number doesn’t match the real page number. (using copy paste to generate a pdf file) the api call failed with 'Aspose does not support Field flattening in append mode’
please see atached image file. thank you
Hi There,
ok, i attached 7 file. let me know if you have any questions.
(the best solution is if the API can return the error message to address the specific error
not the general error cannt flatten the file…)
0. our license.
1. the code snippet to call aspose API to concatenate PDF files.
2. error message
3. restrict changing document pdf file
4. wrong page count pdf file.
5. restrict changing document image
6. wrong page count image
thank you very much for you helps.
this is not an urgent issue but we really like it is solved
Hi Alex,
Document doc = new Document(“c:/pdftest/4-wrong-page-count.pdf”);<o:p></o:p>
doc.Flatten();
Document doc2 = new Document("c:/pdftest/3-restricted-changing-document.pdf");
doc.Pages.Add(doc2.Pages);
doc.Save("c:/pdftest/4-wrong-page-count_Flatten.pdf");
thank you very much. will get you back soon.
i will do some more tests on my end using the way you mentioned.
ok. i downloaded the new Aspose Total package. and then
i coded a simple windows form test file (used your example) and it worked flawlessly. i believe we were using old way to flatten the pdf files and it caused the issues.
i attached the form1.cs (i renamed it to new_test_file.txt) along with test pdf/word files.
thank you for your helps. it can be closed for now. i will correct our codes and redeploy it.
Hi Alex,