Remove blank page

  • 47 Views
  • Last Post 27 December 2018
Sakinah Mohamad Isa posted this 21 December 2018

Hi,

 

how to remove blank page. i found script in this forum but error for IPicture object.

please advice. thank you.

 

 

Order By: Standard | Newest | Votes
Nadezhda A. Solovyeva posted this 25 December 2018

Hi Sakinah,

In FineReader Engine 12, you may use IsEmpty Method of the FRPage Object to detect, whether the page is empty. Code sample

for (int i = 0; i < document.Pages.Count; i++)
{
    FREngine.FRPage page = document.Pages[i];
    if (page.IsEmpty())
    {
        document.Pages.DeleteAt(i);
        i--;
    }
}

Sakinah Mohamad Isa posted this 27 December 2018

Hi Nadezhda,

 

I use FR Engine 10. no IsEmpty method for FRPage object.

Please advice. Thank you

 

Nadezhda A. Solovyeva posted this 27 December 2018

Hi Sakinah,

IsEmpty method is a new feature of FREngine 11. We should recommend an update. I apologize for the inconvenience.

Sakinah Mohamad Isa posted this 27 December 2018

ok noted. 

Thank you for your reply.

Close