Hi,
i have some problem with the pdf print module,
i use think function in my page.tpl.php

				print print_pdf_insert_link();

and i think that the correct functin to create a pdf files, right?
when i click the link, the pdf file is generated, but in some node it doesn't print the pdf files, but it print printer friendly page,
is it a bug? or do i make a wrong setting?

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

I don't understand... You mean that the PDF is always generated, or that in some cases the PDF is not generated?

João

paradise7777’s picture

Status: Postponed (maintainer needs more info) » Active

in some cases the pdf isn't generated, but it produce printer friendly page,

for example :
i print node A, i get PDF file from this node (correct result)
i print node B, i get PDF file from this node (correct result)
but in some cases when i print node C, i get printer friendly page from this node (wrong result, because i use the same function (like node a and b) for this node)

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Thanks for the clarification. Now I understand your problem better..

Just to sort out the problem, in node C, the path to that page starts with print/* or with printpdf/* ??

If it is the first, there's a problem in the print_pdf_insert_link() function. If it is the latter, then the problem is somewhere in the PDF generation.. However, I have never seen a PDF problem that produces valid HTML...

paradise7777’s picture

Status: Postponed (maintainer needs more info) » Active

i have checked all node that posible to print and all of them start with printpdf/
like this:
http://www.example.com/?q=printpdf/book/export/html/236

so it is the second option then, i will check the pdf generation,

thanks for your explanation

paradise7777’s picture

Status: Active » Closed (fixed)

okay my problem get solved thanks João