pdf.GetText() on an empty page

Discuss PDF file handling with the Polybios plugin here
Post Reply
User avatar
jPV
Posts: 600
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

pdf.GetText() on an empty page

Post by jPV »

If I try to get text from a page which doesn't have any text, Hollywood exits with the error "Specified character is out of range!".

Could this be changed so that GetText() would give an empty string in these cases? It's a bit annoying to start checking page length all the time before getting texts.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: pdf.GetText() on an empty page

Post by airsoftsoftwair »

Should be possible to do.
Post Reply