Print Page | Close Window

DrawRotatedText

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1392
Printed Date: 15 Jan 26 at 4:58PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: DrawRotatedText
Posted By: einar
Subject: DrawRotatedText
Date Posted: 26 Mar 10 at 10:21PM
I just added a big, transparent text on a generated letter, which worked fine.
The I wanted to do it again lower down on the same page. It did not show!
After much trying an failing, I figured out I had to use ComineLayers() and repeat settings. Where in the documentation is this described? I wish the documentation had more description, links and examples.
 
  THIS.oPDF.SelectPage(i)
  THIS.oPDF.SetTransparency(80)
  THIS.oPDF.SetTextSize(72)
  THIS.oPDF.DrawRotatedText(100,400,45,'Makulert')
  THIS.oPDF.CombineLayers()
  THIS.oPDF.SetTransparency(80)
  THIS.oPDF.SetTextSize(72)
  THIS.oPDF.DrawRotatedText(100,100,45,'Makulert')



Replies:
Posted By: Jimeni
Date Posted: 13 Apr 10 at 6:10AM
Thanks for posting this einar at least now someone can find the correct code.

I think some of the docs and example code leave a bit to be desired, the php code example simply doesn't work. Oh well!


Posted By: Ingo
Date Posted: 13 Apr 10 at 6:26AM
Hi Jimeni!

Perhaps you should tell it a bit more clearer...
The PHP-code doesn't work in your system-environment ;-)
The QuickPDF-sdk covers a very wide range of pdf-functionality.
In the beginning of 2009 Debenu bought the rights from the former owner Sedtech, who didn't maintain the library for about three/four years.
All will come... from time to time a bit more... The regularely QuickPDF-newsletter - each one with a main developing topic - is a good thing.
So don't be too impatiently.
And if you yourself developed a working php-sample in the meantime all users will be happy to see it here in the sample-section ;-)

Cheers and a nice day to all readers here,
Ingo



Posted By: Jimeni
Date Posted: 16 Apr 10 at 6:34AM
Ingo,
Have you tested the PHP code? It appears to use part VB syntax.

I posted last week a working sample in the code samples section of the forum.

Jim


Posted By: Jimeni
Date Posted: 16 Apr 10 at 6:37AM
The included PHP sample:

// The DrawText function lets you draw text onto a page.
$qp->QP.DrawText(100, 100, "Hello PHP! This text has been drawn using the DrawText function.")
$qp->QP.DrawHTMLText(100, 125, 400, "<b>Quick PDF Library Version:</b> " + $qp->LibraryVersion)
$qp->QP.DrawHTMLText(100, 140, 400, "<b>License Information:</b> " + $qp->LicenseInfo)

I believe the inserted 'QP.' should not be included in the code. Unless I am mistaken its incorrect syntax for PHP.


Posted By: Ingo
Date Posted: 16 Apr 10 at 6:47AM
Hi Jim!

This here is a user-user-forum.
I don't use/need php-code and so i don't try it ;-)
If here's a user with experiences in php and QuickPDF
he'll help you... I'm pretty sure.
If you don't want to wait you should post such things
to the official support pages at:
http://www.quickpdflibrary.com/support/index.php

Cheers, Ingo


Posted By: Rowan
Date Posted: 16 Apr 10 at 8:16AM
Oh, yes, that's a mistake - the 'QP.' definitely shouldn't be there (it won't work with it). I will update the sample to fix that.


Posted By: Jimeni
Date Posted: 20 Apr 10 at 6:12AM
Thanks Rowan & Ingo.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk