0 votes

Hello,

I'm receiving the following error when opening a PDF:

failed to find PDF header: `%PDF' not found. 

2017-12-14 14:38:05.677950-0500 AFDAapp[3877:2052070] PDF page height : 667.000000 

2017-12-14 14:38:05.677999-0500 AFDAapp[3877:2052070] PDF page offset : 0

My code:

FileName = "test";

filePath = PDFReader.PersistentDataPath + "/" + FileName + ".pdf";

PDFReader.OpenDocInWebViewLocal (filePath, FileName);

I have checked that the file exists in the path.

asked Jan 27, 2018 by Thiago A. Lintzmaia (120 points)

Please log in or register to answer this question.

Welcome to IndieYP Q&A, where you can ask questions and receive answers from other members of the community.
27 questions
23 answers
42 comments
1,851 users