PDF generates errors

Phoca PDF - creating PDF documents in Joomla! CMS
billwide
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 26 Feb 2009, 19:15

PDF generates errors

Post by billwide »

When I click on PDF link/image to generate the PDF file, sometimes I receive this error codes:

".....%PDF-1.7 3 0 obj <<<> /H /I>> ] /Contents 4 0 R>> endobj 4 0 obj <> stream xœ½XMoÛFݳ~ÅÀaHŠŸ¹%n4@>\«¹$9ÐÖZ¡!ʶ(9EMZ‹‚È©Íŧξ]î®dÉ­?X¤©áœyûæ͐aæô™BzÉÛ ½ÿÈÿƼ½àm2x6¢Ç{1Eq†4:¦ç£Á¹6) ¦„¢È™Âko|Nêêpe?Ÿß'‰ƒ4¦"ʃ$¥Ñ˜Þ?¯„sq$*1§‚x/y¿`[%y›ŠO°ó~.Xvø÷Öç¢gâ+Ÿ©ùe9`™9–Öïîײ—¾ºf{ÍO­ÙJ𨌧~~,Bþ+ù舭 ž/ùøû5|Ô=A{ŸñqK»-ƒ‡iô’¡£ýMßÏ"¤"L‚24xðÓBŽ*‡.š=Þ_�iÉ9Ï7f‰\¯ŸYáÎ-H=CùTÛÊb|÷ŠÍ°òÔ’Ï_Œ$GÒ•Ë’­-òÒ¥>åÏÙZã÷/(Ø Ÿ_°å¢taΓøˆ)u®¯¡˜¸±Hùø‚í ð¯7¼é–ü¬…‘˜<§é“8 †&zõΰvný+Ã]³Æ_Ž4ž+©Ä#`¦ìcO+0¤cÙ¨’VØd¼if\»Ã‰ï×+¬re‡ÄL8ÅJá¼„°....." :idea:

What could be this issue? Thanks for all! :|
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PDF generates errors

Post by Jan »

Hi, it seems like you get some code before rendering pdf


it should be:
%PDF

not:
".....%PDF

so "..... should not be there ... can you print pdf with standard pdf function? Can I see the page?

Jan
If you find Phoca extensions useful, please support the project
named
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 May 2009, 11:18

Re: PDF generates errors

Post by named »

I have the same problem.


Warning: Division by zero in /home/2/m//www/tivedstorp/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php on line 11638
%PDF-1.7 3 0 obj <<<> /H /I>> <<> /H /I>> <<> /H /I>> <<> /H /I>> <<> /H /I>> ] /Contents 4 0 R>> endobj 4 0 obj <> stream x��YɎ7广�NFd8,6���pl�/�/���,{4�������ه�@�)�ʖdϢ.!htMP�U��Ǣ���gP�����t?�{�=���S ��R09�_&�uר�ƪ)ľI}��������;FK�!���¤��?�?�B�������+��b)�~|��/w��AAPF���5�^�i��OqEWI�kj_�oI�Z(� qDOKOMOHo?��%�*,|��0�?fѰhu�m[��Y�{0����_�C��

Any solution, ideas?

Edit.
I can print pdf with standard pdf function.
I have 10621 lines in tcpdf.php, strange.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PDF generates errors

Post by Jan »

Hi, tcpdf sends and error so the pdf cannot be displayed

but no idea what can be the problem : Division by zero ... :-(
If you find Phoca extensions useful, please support the project
named
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 May 2009, 11:18

Re: PDF generates errors

Post by named »

To bad, any ideàs about the line numbers?

The error page report line 11638, tcpdf.php have 10621 lines....
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PDF generates errors

Post by Jan »

:-( no idea

but try to look at google, as this error occurs in TCPDF, there should be some information on google.

I think, this can be related to fonts... Do you have latest version of Phoca PDF (there I added helvetica font for cases, the font cannot be loaded)

Jan
If you find Phoca extensions useful, please support the project
mac2
Phoca Member
Phoca Member
Posts: 19
Joined: 06 Jun 2009, 23:07

Re: PDF generates errors

Post by mac2 »

Hi, :x
I installed this:
com_phocapdf_v1.0.1.zip
plg_phocapdf_content_v1.0.1.zip
de-DE.com_phocapdf.zip (no XML-Setupdatei in the packet)
I create a Headline in with phoca but the PDF-Generation is shown without this Headline!
Result by klick on the PDF-Icon in a content with pictures
Image
Why??

I think, the phocapdf works not yet - when I klick on the pdf-icon the link is ...filename.pdf and not ....=phocapdf

On the phocaplugin panel ist this info shown:
Plugin is enabled in Plugin Manager
Phoca PDF Settings Warning

Regards
Mac
mac2
Phoca Member
Phoca Member
Posts: 19
Joined: 06 Jun 2009, 23:07

Re: PDF generates errors

Post by mac2 »

Hi,
now I've done this:
SEO = '0';
in my phocapdf installation was no file 'hpocapdf.php' in libraries/joomla/document/phocapdf
This is now installed!
By click on the pdf-icon is a blank browser-site shown :( and not the pdf site.
(file is ...avision&format=phocapdf&option=com_content&Itemid=81)

What is the problem?

Regards
Mac
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PDF generates errors

Post by Jan »

Hi, now it seems like you get some error message before rendering the output. Try to look to your error log. (if you can) to see if there is some php error.
If you find Phoca extensions useful, please support the project
mac2
Phoca Member
Phoca Member
Posts: 19
Joined: 06 Jun 2009, 23:07

Re: PDF generates errors

Post by mac2 »

Hi Jan,
where can I find the error log?

Mac
Post Reply