mgufrone / pdf-to-html

PDF to HTML PHP Class using Poppler-Utils
MIT License
176 stars 88 forks source link

error while trying to run #25

Open hrnmodi opened 7 years ago

hrnmodi commented 7 years ago

Fatal error: Uncaught exception 'Exception' with message 'You're asking to go to page 1 but max page of this document is 0' in C:\xampp\htdocs\ph\src\Html.php:63 Stack trace: #0 C:\xampp\htdocs\ph\src\Html.php(57): Gufy\PdfToHtml\Html->goToPage(1) #1 C:\xampp\htdocs\ph\src\Html.php(16): Gufy\PdfToHtml\Html->getContents('test.pdf') #2 C:\xampp\htdocs\ph\src\Pdf.php(56): Gufy\PdfToHtml\Html->__construct('test.pdf') #3 C:\xampp\htdocs\ph\src\Pdf.php(61): Gufy\PdfToHtml\Pdf->getDom() #4 C:\xampp\htdocs\ph\index.php(9): Gufy\PdfToHtml\Pdf->html() #5 {main} thrown in C:\xampp\htdocs\ph\src\Html.php on line 63

image

mgufrone commented 7 years ago

Have you installed poppler-utils on Windows?

girishbagmor commented 7 years ago

Notice: Undefined index: pages in C:\xampp\htdocs\pdf_to_html\vendor\gufy\pdftohtml-php\src\Pdf.php on line 70

Fatal error: Uncaught Exception: You're asking to go to page 1 but max page of this document is 0 in C:\xampp\htdocs\pdf_to_html\vendor\gufy\pdftohtml-php\src\Html.php:63 Stack trace: #0 C:\xampp\htdocs\pdf_to_html\vendor\gufy\pdftohtml-php\src\Html.php(57): Gufy\PdfToHtml\Html->goToPage(1) #1 C:\xampp\htdocs\pdf_to_html\vendor\gufy\pdftohtml-php\src\Html.php(16): Gufy\PdfToHtml\Html->getContents('file.pdf') #2 C:\xampp\htdocs\pdf_to_html\vendor\gufy\pdftohtml-php\src\Pdf.php(56): Gufy\PdfToHtml\Html->__construct('file.pdf') #3 C:\xampp\htdocs\pdf_to_html\vendor\gufy\pdftohtml-php\src\Pdf.php(61): Gufy\PdfToHtml\Pdf->getDom() #4 C:\xampp\htdocs\pdf_to_html\index.php(14): Gufy\PdfToHtml\Pdf->html() #5 {main} thrown in C:\xampp\htdocs\pdf_to_html\vendor\gufy\pdftohtml-php\src\Html.php on line 63

mohamedzhran commented 6 years ago

is there a solution to this problem

drewgash commented 6 years ago

There must be a problem with the file path of the pdf file you want to convert.

amanjain9509 commented 6 years ago

Notice: Undefined index: pages in C:\xampp\htdocs\pdf_to_html\vendor\gufy\pdftohtml-php\src\Pdf.php on line 70

Fatal error: Uncaught Exception: You're asking to go to page 1 but max page of this document is 0

amanjain9509 commented 6 years ago

hii mgufrone please help me. for pdf to html parsing.

You're asking to go to page 1 but max page of this document is 0

mahmoudN commented 5 years ago

while trying to convert my pdf file i have go this following error :

2019-02-12 11:04:51 Notice: Notice (8): Undefined index: pages in [C:\xampp\htdocs\optimus-invoices - Mahmoud Modiifcation\vendor\tonchik-tm\pdf-to-html\src\Pdf.php, line 82] Request URL: /files/secure/146 Referer URL: http://localhost:8765/documents/index Trace:

i dont't know what to do ... can someone help me please ??