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!
![]() |
Debugging, Errorlog Howto? |
Post Reply
|
| Author | |
kochi09
Beginner
Joined: 24 Nov 14 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
kochi09
Beginner
Joined: 24 Nov 14 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store