Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support


All forums · Statistics · Search ·

Two Pilots forum / For software developers / PDFPAGE_SetDash & Other examples
Author Message
WietZ
Member
# Posted: 30 Dec 2005 12:21


What's supposed to be provided here? I already tried things like "- -" or a single "-" but messages like 'Wrong operand type' and 'Too few operands' keep popping up. Got any tips? More general concern: there seems to be a lack of examples, while the descriptions of Page Methods in the CHM file aren't as sufficient as I'd like them to be. Am I missing something? Is more documentation provided after purchasing a license?

Stanislav
# Posted: 30 Dec 2005 15:02


Hello,

Please send us your code so i'll be able to examine and fix it.

Improved documentation already exists, it'll be released together with the next release of the library.

Thank you very much !

Best regards,
Stanislav
Two Pilots

WietZ
Member
# Posted: 30 Dec 2005 15:31 · Edited by: WietZ


First, thanks for the fast reply.

I'm glad to hear a documentation improvement is on the way ! Any indications on a releasedate?

My coding starts with the usual StartEngine, FileName, Autolaunch, BeginDoc, SetActiveFont. After this:

PDF.PDFPAGE_SetLineWidth 0.5
lLineFromX = X - 9.5
lLineFromY = m_yCounter + 10
lLineToX = lLineFromX
lLineToY = m_yCounter + 25
PDF.PDFPAGE_MoveTo lLineFromX, lLineFromY
PDF.PDFPAGE_LineTo lLineToX, lLineToY

PDF.PDFPAGE_SetDash "-"
PDF.PDFPAGE_SetGrayStroke 0.8
PDF.PDFPAGE_Stroke

Where PDF is a created piPDFDocument and the 'Line' variables declared as long.
Of course PDF.EndDoc is part of my code as well.

thanks in advance

Stanislav
# Posted: 30 Dec 2005 16:24


Hello,

OK, i see - you want more info about PDF.PDFPAGE_SetDash.

The line dash pattern controls the pattern of dashes and gaps used to stroke paths.
It is specified by a dash array and a dash phase. The dash array’s elements are
numbers that specify the lengths of alternating dashes and gaps; the dash phase
specifies the distance into the dash pattern at which to start the dash. The elements
of both the dash array and the dash phase are expressed in user space units.
Before beginning to stroke a path, the dash array is cycled through, adding up the
lengths of dashes and gaps. When the accumulated length equals the value specified
by the dash phase, stroking of the path begins, using the dash array cyclically
from that point onward. Picture shows examples of line dash patterns. As can be
seen from the picture, an empty dash array and zero phase can be used to restore
the dash pattern to a solid line.Dashed lines wrap around curves and corners just as solid stroked lines do.
The ends of each dash are treated with the current line cap style, and corners within
dashes are treated with the current line join style. A stroking operation takes no
measures to coordinate the dash pattern with features of the path; it simply dispenses
dashes and gaps along the path in the pattern defined by the dash array.

Please take a look at the picture here:
http://www.colorpilot.com/~spanasik/dash_patterns.gif

Thank you very much !

Best regards,
Stanislav
Two Pilots

Stanislav
# Posted: 30 Dec 2005 16:25


Yes, about documentation and library release date - it will be as soon as possible.

Thank you very much !

Best regards,
Stanislav
Two Pilots

Stanislav
# Posted: 30 Dec 2005 16:28


Hello,

Also you can find dash usage examples in
C:\Program Files\PDF Creator Pilot 2\Examples\OtherExamples\VBScript\Demo.vbs

Thank you very much !

Best regards,
Stanislav
Two Pilots

WietZ
Member
# Posted: 10 Jan 2006 14:34


Thanks for the support, I understand the dash pattern better now!

 

 

Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.016

 

Page top