Hi,
Hi,
Hi,
Hi Ole Martin,ole.helgesen:Hi,this is a customer document, so I can't post it here. Can I send you the code + file by mail? I can use the email function in your contact menu I guess?
Hi Ole Martin,ole.helgesen:Hi,I have simplified my code, and investigated the source file. Seems it must be some kind of errors in the customer pdf. It consists of a front page which is converted directly from Word or similar, because the content is selectable, and then some pages that are scanned full page images, followed by other pages that are also converted from text.I have checked the properties of the pages, and the PageInfo is the same for all pages:Height=842, Width=595, Landscape=false.But the other rectangle properties (e.g. ArtBox, CropBox etc) all reports Height=842, Width=595 for the converted pages, and opposite for the scanned pages!If I view the original PDF, or opens it in Aspose and add an empty front page, the scanned pages appear normal and in portrait mode.However, if I add something to the inserted front page in Aspose with Paragraphs.Add, then the scanned pages are cropped! The top is cropped, so the pages are left almost square.Any idea why editing the new front page should affect these pages that are not touched in any way?
Thanks, sent you the code yesterday, but I will upload it here as well
Hi,
Hi Ole Martin,
I have uploaded it earlier in a post, and sent you everything on email, so you should have it now.
Hi Ole Martin,
Thanks
for sharing the resource files.<o:p></o:p>
I
have tested the scenario and I am able to notice the same problem. For the sake
of correction, I have logged this problem as PDFNEWNET-39282 in
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.
Hi,
Another finding related to the last issue:
ole.helgesen:Hi,I now found a similar problem at another customer. I merge large format drawings. The inserted page is A4 it seems. If I add paragraphs to the TOC on it, the following pages inherits the same size as page 1, and are badly cropped. If do not add paragraphs, all pages are correct and original size.
ole.helgesen:Another finding related to the last issue:If I set the PageInfo sized to the largest page size, it is no longer cropped, but then the first page is the same size as well, which is no good...combinedDoc.PageInfo.Width = combinedDoc.Pages[2].CropBox.Width;combinedDoc.PageInfo.Height = combinedDoc.Pages[2].CropBox.Height;combinedDoc.Save(resultfile);So it seems to be a big problem with mixed page sizes.But the original problem was related to merging pdf files of same page size, where some pages were scanned images. Maybe they have a non-standard DPI?I tried to adjust PageInfo there, but it did not affect anything, still the same problem.
The issues you have found earlier (filed as PDFNEWNET-39282;PDFNEWNET-39365) have been fixed in Aspose.Pdf for .NET 11.1.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.