torus
2 years agoContributor
get text from first page of pdf file with 'PDF to Text'
I need to verify content on the first page of a pdf document. I cannot just simply extract text from the entire document. The document is to large and attempting to read all text will end up in an error.
from the TC documentation on pdf to text (here), I see I can extract text from a certain section of the pdf ... but not from certain pages. Is there a way to extract text from certain pages of the pdf file ... a way to extract text from the first page of a pdf file?
Since you're not looking at the whole .pdf file, would it work just as well to see if the expected file exists in a particular folder and is a particular size?
https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfile/methods.html