Hi Jan,
I keep getting this error. At first I thought it had to do with the indents that are in the document but then I found that other documents with the same indents seem to work. Any ideas on why this would happen.
Thanks,
Matthew
File does not begin with '%PDF-'.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: File does not begin with '%PDF-'.
Hi, no idea there, the only way to detect it is try to save such pdf and see it with text editor and see what string is rendered before the pdf begin, maybe some error?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 14
- Joined: 04 May 2009, 03:30
Re: File does not begin with '%PDF-'.
Hi Jan,
Sorry about the late post but here is what was before %PDF.
<br />
<b>Notice</b>: Undefined offset: -1 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12926</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>13029</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12197</b><br />
<br />
<b>Notice</b>: Undefined offset: -1 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12926</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>13029</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12197</b><br />
<br />
<b>Notice</b>: Undefined offset: -1 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12926</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>13029</b><br />
<br />
<b>Notice</b>: Undefined offset: -1 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12926</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>13029</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12197</b><br />
<br />
<b>Notice</b>: Undefined offset: -1 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12926</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>13029</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12197</b><br />
<br />
<b>Notice</b>: Undefined offset: -1 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12926</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>13029</b><br />
I see that it is in the TCPDF directrory of PhocaPDF. Although when I turn Phoca PDF off and use the default joomla one it works quite fine but it doesnt look as nice or have my custom header and footer on it.
Thanks,
Matthew
Sorry about the late post but here is what was before %PDF.
<br />
<b>Notice</b>: Undefined offset: -1 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12926</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>13029</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12197</b><br />
<br />
<b>Notice</b>: Undefined offset: -1 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12926</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>13029</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12197</b><br />
<br />
<b>Notice</b>: Undefined offset: -1 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12926</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>13029</b><br />
<br />
<b>Notice</b>: Undefined offset: -1 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12926</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>13029</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12197</b><br />
<br />
<b>Notice</b>: Undefined offset: -1 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12926</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>13029</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12197</b><br />
<br />
<b>Notice</b>: Undefined offset: -1 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>12926</b><br />
<br />
<b>Notice</b>: Undefined offset: 0 in <b>/var/www/intranet.geolyse.com/html/geoweb/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php</b> on line <b>13029</b><br />
I see that it is in the TCPDF directrory of PhocaPDF. Although when I turn Phoca PDF off and use the default joomla one it works quite fine but it doesnt look as nice or have my custom header and footer on it.
Thanks,
Matthew
-
- Phoca Member
- Posts: 14
- Joined: 04 May 2009, 03:30
Re: File does not begin with '%PDF-'.
Could this be done because of a setting on the server, When I remove some Bullets it works fine, but when I re add all of them it breaks it again.
I have worked out that if I put four list items their it works fine but if I put 5 or more (I have 7) it stops it working. This is the only part in the article I had to change and it worked.
I have also looked at the HTML and I couldnt find fault with it so I recreated it and it still had issues.
Thanks,
Matthew
I have worked out that if I put four list items their it works fine but if I put 5 or more (I have 7) it stops it working. This is the only part in the article I had to change and it worked.
I have also looked at the HTML and I couldnt find fault with it so I recreated it and it still had issues.
Thanks,
Matthew
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: File does not begin with '%PDF-'.
Hi, I think, this is more question on TCPDF developers as for me No idea what can be wrong there, maybe some argument is missing while sending to TCPDF
If you find Phoca extensions useful, please support the project