Print Page | Close Window

Draw A Line

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=2541
Printed Date: 01 Feb 26 at 1:38PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Draw A Line
Posted By: tj80
Subject: Draw A Line
Date Posted: 27 Feb 13 at 3:44AM
Hello,
I am using the lite version 9.13 and I am having trouble being able to draw a line on my PDF. 

Thanks



Replies:
Posted By: Ingo
Date Posted: 27 Feb 13 at 7:35AM
Hi TJ!
 
Please post your code to give us a chance for some advices where your problem could be.
Another hint:
A mouseclick on the logo above opens the door to many beginner guides ;-)
 
Cheers and welcome here,
Ingo
 


Posted By: tj80
Date Posted: 27 Feb 13 at 5:49PM
This is the code I am using below (Delphi). I have read other documents and it appears that the full version contains a method called "DrawLine". I can't seem to find that in the Lite version. I thought maybe there was another way.

procedure TfmMain.btCreatePDFClick(Sender: TObject);
var
  PDFLib: TPDFLibrary;
begin
  PDFLib := TPDFLibrary.Create(self);
  PDFLib.SetTextSize(8);
  PDFLib.DrawText(10,780,'My First PDF');
  PDFLib.DrawText(10,770,'Created By Me');
  PDFLib.SaveToFile('C:\Out.PDF');
  PDFLib.Free;
end;

Thanks.


Posted By: edvoigt
Date Posted: 01 Mar 13 at 3:55PM
Hi,

in the Lite version is no vector graphics.

Cheers,

Werner


Posted By: tj80
Date Posted: 01 Mar 13 at 3:58PM
Thanks but I kinda figured that out already. I ended up making a template in MS Word and saved it as a PDF. In my application I load the template then save the file under a different name.

TJ



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