Hi,
I am evaluating ASPOSE.PDF .NET for one of my projects. The requirement is to extract a portion of PDF and save it into a new PDF file. The new PDF will be read by another PDF processor. I am using the CropBox function to extract the required portion and save it into new PDF. When the new PDF is read by another PDF processor, it shows the whole PDF not the cropped content. So, CropBox is only putting some mark/boundary for Acrobat reader and does not actually delete the unwanted content from the PDF. Can you please advice how to crop the box and delete the remaining content from PDF. Here is the sample program:
Aspose.Pdf.Document document = new Aspose.Pdf.Document(inputFileName);
Aspose.Pdf.Document outputPDF1F = new Aspose.Pdf.Document();
outputPDF1F.Pages.Insert(1, document.Pages[1]);
Aspose.Pdf.Rectangle pageRect1F = new Aspose.Pdf.Rectangle(324, 754, 566, 610);
outputPDF1F.Pages[1].CropBox = pageRect1F;
outputPDF1F.Save(OutputFolder + getFileName(inputFileName) + “-1F.pdf”);