Hi,
Is there any way I can know my current page(means through builder) is empty or all the paragraphs of the current page. And I want to remove the page if its empty. Can you please suggest a way for this.
Hi,
Is there any way I can know my current page(means through builder) is empty or all the paragraphs of the current page. And I want to remove the page if its empty. Can you please suggest a way for this.
In your case, we suggest you following solution.
Below code example shows how to remove the empty pages from PDF.
Aspose.Pdf.Document inputDoc = new Aspose.Pdf.Document(MyDir + "input.pdf");
Aspose.Pdf.Document outputDoc = new Aspose.Pdf.Document();
foreach (var page in inputDoc.Pages)
{
if (page.IsBlank(0.01d))
continue;
else
outputDoc.Pages.Add(page);
}
outputDoc.Save("out.pdf");
Hi,
I want to find the current page is (where the builder is now) is empty or not. Not in the all document. And also i want the solution with word document.
In this case, we suggest you following solution.
Hope this helps you.
Hi ,
Is there a way to programmatically search and remove empty pages inside a document in java. I am bookmarking empty pages.At the end I am taking the bookmark collection with specific bookmark name. i just want to check these bookmarked page is empty or not.If empty, then they have to remove. Can you please suggest a way for that.
Could you please ZIP and attach your input and expected output documents? We will then provide you solution according to your requirement.