Skip to main content
Inspiring
May 31, 2008
Question

Convert to pdf

  • May 31, 2008
  • 2 replies
  • 295 views
On a master page you can click on a username and you are linked
(filtering by id) to a detail page where all informations about the
specific username are displayed.

Now I would like to convert these detail informations to a pdf file. But
if I use the select (SELECT id, name, phone, fax FROM contacts WHERE id
= %s) as basis for the pdf-output I receive a blank page.

Any idea how to handle that?

Regards
Leolux
This topic has been closed for replies.

2 replies

Inspiring
June 3, 2008
> We're missing a whole lot of information here. I doubt your sql query is the
> actual issue.

In fact it has been the actual issue. I solved the problem, so I
withdrew the posting.

On my detail page I had a link to the pdf (pdfview.php), but received a
blank page. Why? It is so simple and embarrassing: the pdf couldn't know
where to get the data from. I changed pdfview.php into pdfview.php?id= -
and it worked.

> What code/component are you using for the PDF creation?

I use the class.ezpdf.php.

Thank you for asking!

Leolux
Inspiring
June 2, 2008
> Now I would like to convert these detail informations to a pdf file. But
> if I use the select (SELECT id, name, phone, fax FROM contacts WHERE id =
> %s) as basis for the pdf-output I receive a blank page.

We're missing a whole lot of information here. I doubt your sql query is the
actual issue.

What code/component are you using for the PDF creation?

-Darrel