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
Comment #1
jcnventuraI don't understand... You mean that the PDF is always generated, or that in some cases the PDF is not generated?
João
Comment #2
paradise7777 commentedin 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)
Comment #3
jcnventuraThanks 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...
Comment #4
paradise7777 commentedi 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
Comment #5
paradise7777 commentedokay my problem get solved thanks João