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

Free Support Forum - aspose.com

Remove printer/Crop marks

I was wondering if there is a way to remove printer/crop marks, without using the art/trim/media/crop box. The reason is because the art box is out of sync, and does not line up with the printer marks.
Is there a way to look into a PDF and find the printer marks and then manually set the art box to be the edge of that printer mark? After which i can just use the code

Document document = new Document(PDF);
Aspose.Pdf.Rectangle pageRect = new Aspose.Pdf.Rectangle(document.Pages[1].ArtBox.LLX, document.Pages[1].ArtBox.LLY, document.Pages[1].ArtBox.URX, document.Pages[1].ArtBox.URY);
document.Pages[1].CropBox = pageRect;
document.Save(PDFname);

The PDF provided has an art box that is misaligned

Thanks

Hi Rohit,


Thanks for using our products.

I am afraid currently Aspose.Pdf for .NET does not support the feature to determine if the source PDF contains Printer/Crop marks. However for the sake of implementation, I have logged it as PDFNEWNET-35680 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.