Export as PDF has some missing data?

Please report bugs here!

Moderator: Thorsten

Post Reply
kjusupov
Posts: 36
Joined: Fri Jul 03, 2009 2:06 am

Export as PDF has some missing data?

Post by kjusupov »

There is a ": " missing, which results in a PDF out as:

Unique solution ID: #1000
AuthorK. Jusupov <----- Look here...
Last update: 2009-08-12 07:58

Code: Select all

synack@virtualbox~$ grep -n "msgAuthor" inc/Faq.php 
2909:        $pdf->Write(5, html_entity_decode($PMF_LANG['msgAuthor']).': '.$this->faqRecord['author']);
Also, I've tried to add "Revision: $revision_id" after "Author" with adding below 2 lines, but it didn't work:

Code: Select all

$pdf->Write(5, html_entity_decode($PMF_LANG['ad_entry_revision']).': '.$this->faqRecord['revision_id']);
$pdf->Ln();
UPDATE: The version = 2.5.1 (with PostgreSQL)
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Export as PDF has some missing data?

Post by Thorsten »

Hi,

I added the missing colon. Adding the revision id works on my test system with your code example.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
kjusupov
Posts: 36
Joined: Fri Jul 03, 2009 2:06 am

Re: Export as PDF has some missing data?

Post by kjusupov »

Hi,

Actually I forgot to write that it works on my system as well, but it shows "Revision: 0" in PDF file, whereas in the system it shows "Revision: 1" (after updating it shows Revision 1.1 in the system, whereas in PDF file it shows as "Revision: 1")...
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Export as PDF has some missing data?

Post by Thorsten »

Hi,
kjusupov wrote:Actually I forgot to write that it works on my system as well, but it shows "Revision: 0" in PDF file, whereas in the system it shows "Revision: 1" (after updating it shows Revision 1.1 in the system, whereas in PDF file it shows as "Revision: 1")...
sure. We add a "1." in the XHTML frontend. ;-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
kjusupov
Posts: 36
Joined: Fri Jul 03, 2009 2:06 am

Re: Export as PDF has some missing data?

Post by kjusupov »

Hi,

You mean that it's normal/expected that web-UI will display Revision = 1, whereas the same revision PDF version will show "Revision: 0" ?
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Export as PDF has some missing data?

Post by Thorsten »

Hi,

I checked this and it really shows me the correct revision id... it's the same functions for retrieving the FAQ data for the XHTML and PDF...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply