Page 1 of 1
File does not begin with '%PDF-'.
Posted: 24 Feb 2010, 05:45
by mamies
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
Re: File does not begin with '%PDF-'.
Posted: 26 Feb 2010, 15:33
by Jan
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
Re: File does not begin with '%PDF-'.
Posted: 20 May 2010, 07:44
by mamies
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
Re: File does not begin with '%PDF-'.
Posted: 26 May 2010, 07:09
by mamies
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
Re: File does not begin with '%PDF-'.
Posted: 31 May 2010, 12:20
by Jan
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