Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Debugging, Errorlog Howto?
  FAQ FAQ  Forum Search   Register Register  Login Login

Debugging, Errorlog Howto?

 Post Reply Post Reply
Author
Message
kochi09 View Drop Down
Beginner
Beginner
Avatar

Joined: 24 Nov 14
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote kochi09 Quote  Post ReplyReply Direct Link To This Post Topic: Debugging, Errorlog Howto?
    Posted: 24 Nov 14 at 10:34AM
Hi There,

in our company, we use the quickpdflibrary to print text to existing pdfs on our Webserver via php.
Now I have to edit or to fix files that were created by other guys.
I´m absolutely new to the pdflibrary and need some help.

I used the search- function to figure out how to enable an errorlog or something else, but there was no matching result for me.

My problem:

# using a ttf-font, wich is in the same folder like the script - SPK Logos.ttf
# --------------------------------------------------------------------------------------
$slogo = $qp->AddTrueTypeFont("SPK Logos",1);

$qp->SelectFont($slogo);
$qp->SetTextColorCMYK(0,0,0,0);
$qp->SetTextSize(30*$faktor);
$qp->DrawText($posx-(4.8*$faktor), $posy-10, 'p');


The rendered Letter 'p' in my pdf-file used the default font and not the selected font SPK Logos.

The php-errorlog is empty an in the quickpdf programfolder is no logfile.

Any ideas?

thx marco



Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 26 Nov 14 at 11:58AM
Hi Marco,
 
QuickPDF offers LastErrorCode:
You can use this function after important process-steps to see if it's still alright.
Another idea is to check the returning values from the functions.
For example the returning value 0 by LoadFromFile means that there's an error...
 
Cheers and welcome here,
Ingo
 
Cheers,
Ingo

Back to Top
kochi09 View Drop Down
Beginner
Beginner
Avatar

Joined: 24 Nov 14
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote kochi09 Quote  Post ReplyReply Direct Link To This Post Posted: 26 Nov 14 at 12:41PM
HI Ingo,

thanks for your idea. That was the first thing I tried. The return values were all id numbers. No 0 value and when I called LastErrorCode the whole script stopped.

In the meantime I fixed the problem by using the method AddOpenTypeFontFromFile instead of  addTrueTypeFont . That is working, but I don´t understand why the old function isn´t working anymore.

regards,
Marco
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store