Page 1 of 1

Generated PDF only shows Header

Posted: 29 Dec 2011, 15:37
by streen
Hello everybody!

I've installed Phoca PDF on my local Joomla 1.7.3 installation.

The icons is displayed correctly and when I click on it, it opens a separate window allowing me to save a pdf file.

However the downloaded pdf file is always empty. Only the header with the name of the article is displayed but the content of the page is missing.

Can somebody help me with that issue?

Thanks in advance!

Regards,
streen

Re: Generated PDF only shows Header

Posted: 04 Jan 2012, 23:30
by Jan
Hi, do you use the latest version of Phoca PDF content plugin?

Re: Generated PDF only shows Header

Posted: 12 Jan 2012, 12:58
by streen
Hey guys!

Thanks for your answer so far.

Here's what I did:
- I deinstalled all plugins etc. that I've installed before. I also manually removed all mysql entries with "phoca". So clean install again.
- I downloaded the files from your site
- I installed com_phocapdf_v2.0.4.zip via the install menu from joomla - successful
- Next I installed plg_phocapdf_content_v2.0.5.zip - successful
- Next I installed de-DE.com_phocapdf.j17.zip for german files - all german now, successful
- Last I installed another font, just for ensuring no problems with the fonts com_phocapdf_dejavusans.zip - successful

Now I have the small pdf icon in every article, I can click on it and what appears is the following:
Image

And here's how it should look like:
Image

I really hope you can help me with this issue, as this is the last thing I have to fix, so that my customer can go live with his page.

Thank you very much in advance!!!

Kind regards from Austria,
streen

Re: Generated PDF only shows Header

Posted: 16 Jan 2012, 20:56
by Jan
Hi, this seems like there can be some bad character which prevent from displaying content in PDF. There was known issue when some editors pasted some confusing empty character into the content which then prevented from displaying PDF. But there is a hack to prevent from it. Tested now e.g. german characters without any problems

Image

Try to test other font, try to recheck the html code of the content, maybe there are some problematic characters :idea:

Jan

Re: Generated PDF only shows Header

Posted: 28 Jan 2012, 12:18
by streen
Hey Jan!

Thanks for your response.
I tried to do the following:
- Changed several fonts: freemono, helvetica and dejavu - no success
- Checked the HTML Code of the Website and of the generated PDF file - see result below

This is the code of the print view of the page (did that, to justify that no other module of the page interferes):

Code: Select all

<body class="contentpane">
	<div id="all">
		<div id="main">
			
<div id="system-message-container">
</div>
			<div class="item-page">
	<h2>
			Kunden		</h2>
	<p>Unsere Kunden vertrauen auf uns!</p>
<p>Hier finden Sie eine Übersicht und kurze Berichte zu unseren Kunden.</p>
			<div class="actions"> 
                	<center>
		<div class="print-icon"><a href="/www/mechatronic-company-neu/index.php/de/referenzen/kunden?tmpl=component&format=pdf" onclick="" title="PDF" rel="nofollow"><img src="/www/mechatronic-company-neu/components/com_phocapdf/assets/images/pdf_button.png" alt="PDF"  /><span style="vertical-align: top;"> Als PDF speichern</span></a></div>			<div>

		<a href="#" onclick="window.print();return false;"><img src="/www/mechatronic-company-neu/media/system/images/printButton.png" alt="Drucken"  /></a>		</div>
The generated PDF file is the same as I posted the last time (screenshot)

If I renamed the pdf file to "kunden.html" that's what it looks like (filesize 123kb, so there must be any content somewhere :) - http://djowebdesign.cwsurf.de/kunden.pdf.txt

Can you read any error out of that?! :?:

Hope you have another hint for me this time... :?

Re: Generated PDF only shows Header

Posted: 30 Jan 2012, 17:42
by streen
Hello guys,


what ever happed - the pdf generation works now! This is quite weird, as I didn't change anything (maybe by accident I did however...)

Now there's only one thing left, which I don't like:
If I click on the pdf icon, I can save a pdf W I T H content now (wohoo!) BUT the filename is always "Phoca".

This is actually quite bad, because maybe people download several pdfs and want different names, without typing a name..


I read an article in this forum viewtopic.php?f=37&t=5559 but this work around doesn't work correctly, as there is no suffix (.pdf) attached.

Is there any solution how to make this work?


Regards,