Conversion HTMLtoPDF add an invisible part

Hi,


We need to analyse the PDF structure after HTMLtoPDF conversion to extract a part of the PDF.
The Aspose API works well and the visible result is fine.
We have a trouble when our software try to extract a part of the PDF.
It sees a big invisible portion (size of the entire page) related to an Access Path in the PDF structure so it can’t extract correctly.
I join a file to show you the invisible part (the green portion).
My question is : can we remove this portion with the API or something else?
To help, we have done severals tests and just a string conversion seems to lead to the same result.


Hi Wil,


Thanks for using our API.

In order to remove the unnecessary part from a particular page you may trim that portion from the page using CropBox. However to use CropBox or to Trim the page content you need to identify the correct position of the objects inside the page and set the coordinates of the CropBox accordingly. You may visit “Trim White-Space around Page” section in our API documentation for better understanding. In case if you need any further assistance please feel free to let us know.


Best Regards,