Remove blank page

  • 24 Views
  • Last Post 3 weeks ago
Sakinah Mohamad Isa posted this 4 weeks ago

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 4 weeks ago

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 3 weeks ago

Hi Nadezhda,

 

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

Please advice. Thank you

 

Nadezhda A. Solovyeva posted this 3 weeks ago

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 3 weeks ago

ok noted. 

Thank you for your reply.

Close