pdf.GetText() on an empty page

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

pdf.GetText() on an empty page

Post by jPV » Mon Jul 22, 2019 4:09 pm

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: 3159
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: pdf.GetText() on an empty page

Post by airsoftsoftwair » Mon Jul 22, 2019 6:21 pm

Should be possible to do.

Post Reply