Print Page | Close Window

DrawLine

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=2676
Printed Date: 29 Sep 24 at 1:22AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: DrawLine
Posted By: Klaus.Hentschel
Subject: DrawLine
Date Posted: 20 Jun 13 at 2:18PM
Hello,

i want to put some lines on each page of a existing PDF Document to support an enveloping machine (OME Code).

How i can tell the Program to Draw the Lines on Page 2, 3 ...

Thank you for help

Kind regards

Klaus



Replies:
Posted By: Ingo
Date Posted: 21 Jun 13 at 3:51PM
Hi Klaus!
 
Here's a sample about DrawText.
What you have to add is first the PageCount
Then starting the loop.
Then the sample code with your personal positions.
Then the ending loop and the save.
http://www.quickpdflibrary.com/faq/problems-setting-text-size-when-using-drawtext.php - http://www.quickpdflibrary.com/faq/problems-setting-text-size-when-using-drawtext.php
 
Cheers, Ingo


Posted By: Klaus.Hentschel
Date Posted: 21 Jun 13 at 4:27PM
Hi Ingo,

i want to add the "DrawLine" into an existing PDF File.
Just in the Moment when your answer arrived I have found the "SelectPage" in the Documentation. This Command work as I want to.

Another short question: it is possible to draw the line slightly thicker?

Thanks for support

Klaus


Posted By: Ingo
Date Posted: 21 Jun 13 at 6:39PM
Hi Klaus!

You can determine the font values you're using and i'm thinking that these values have influence on the line, too. If not: The easiest way is to draw the line multiple with slightly defferent Y-values:
http://www.quickpdflibrary.com/help/quickpdf/DrawLine.php - http://www.quickpdflibrary.com/help/quickpdf/DrawLine.php

Cheers, Ingo


Posted By: Wheeley
Date Posted: 21 Jun 13 at 7:30PM
SetLineWidth should work for increasing the width of the line.

Wheeley


Posted By: Klaus.Hentschel
Date Posted: 22 Jun 13 at 8:10AM
The "SetLineWidth" do not change the LineHeight. Only to Draw the Line twice directly under the first line will double the Height, but this is very thick.

As I post it in the first message i will Draw OME Codes to support an enveloping machine. I will try both (thin and thick Lines) now.

Thanks for support

Kind regards
Klaus


Posted By: Klaus.Hentschel
Date Posted: 23 Jun 13 at 9:33AM
Ingo you are right.
The Value of the Position of the Lines is a Floating Point Value so i can Draw the Line twice near under the first Position...

Thank you for the idea

Kind regards

Klaus


Posted By: AndrewC
Date Posted: 26 Jun 13 at 6:14AM
Another option is to just draw a filled rectangle with DrawBox and floating point values.  This way you control the absolute positioning of the line and its thickness.

Andrew.



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