Page 16 of 32

Re: PurePDF Version 2.0

Posted: Tue Mar 13, 2012 3:01 pm
by ABBKlaus
Thanks DoubleDutch, changes are now included.

Re: PurePDF Version 2.0

Posted: Tue Mar 13, 2012 3:06 pm
by DoubleDutch
no problem, glad to have helped. :)

Re: PurePDF Version 2.0

Posted: Thu Apr 26, 2012 6:35 am
by loulou
hi ABBKLAUS,
where tofind the new corrected version ? Thanks in advance

Re: PurePDF Version 2.0

Posted: Thu Apr 26, 2012 7:13 am
by IdeasVacuum

pdf_Write() bug ?

Posted: Tue May 08, 2012 11:41 pm
by Seldon
It seems I've found a bug that affects the latest version for 4.60 compiler. pdf_Write() doesn't upgrade the current cursor position, so consequent calls to pdf_Write() will cause your text to start always at same position. While in the manual it states: 'Upon method exit, the current position is left
just at the end of the text'.

Re: PurePDF Version 2.0

Posted: Wed May 09, 2012 10:35 am
by ABBKlaus
Its a bug in ipf_Write(), i will upload a corrected version later :wink:

Wrong :

Code: Select all

    l + ipf_GetStringWidth(c) ; Fonts()\CharWidth[Asc(c)]
Corrected :

Code: Select all

    l + ipf_GetStringWidth(c,#False) ; Fonts()\CharWidth[Asc(c)]

Re: PurePDF Version 2.0

Posted: Wed May 09, 2012 8:10 pm
by ABBKlaus

Re: PurePDF Version 2.0

Posted: Wed May 09, 2012 8:33 pm
by Seldon
ABBKlaus wrote:Update :
- fixed the PDF_Write() command (Thanks to Seldon)
Thank you !

Re: PurePDF Version 2.0

Posted: Sun May 13, 2012 7:23 am
by Oliver13
Hello,

I just wonder whether it is possible to implement WMF/EMF files with PurePDF ?

If not:
There is an extension available on the FPDF site
(http://www.fpdf.org/en/script/script55.php), it would be great, if this could be included in a next version.

TX
Oli

arrows

Posted: Sun May 13, 2012 1:34 pm
by michel
Hi ABBKLAUS,

Do you see any possibility to implement the arrow command in the library?

michel

Re: PurePDF Version 2.0

Posted: Sun May 13, 2012 4:39 pm
by ABBKlaus
Thanks for the info Oliver13, if i have some freetime i will see what i can do.

michel what the hell is an "arrow" command ?

Re: PurePDF Version 2.0

Posted: Sun May 13, 2012 4:58 pm
by michel
Hi ABBKlaus,

I have to draw in pdf "simplest" geometric forms which I want to show with dimension lines. These should have arrows at both ends.

michel

Re: PurePDF Version 2.0

Posted: Sun May 13, 2012 10:18 pm
by ABBKlaus
michel you can already do this with the path commands, here is a simple example that draws a red arrow :

Code: Select all

pdf_Create()
pdf_AddPage()

Procedure Arrow(x.f,y.f,Length.f,ArrowSize.f,Style.s=#PDF_STYLE_DRAW)
  
  pdf_PathBegin(x,y)
  pdf_PathLine(x+Length-ArrowSize,y) ; 1
  pdf_PathLine(x+Length-ArrowSize,y-ArrowSize) ; 2
  pdf_PathLine(x+Length+ArrowSize,y+ArrowSize/2) ; 3
  pdf_PathLine(x+Length-ArrowSize,y+ArrowSize*2) ; 4
  pdf_PathLine(x+Length-ArrowSize,y+ArrowSize) ; 5
  pdf_PathLine(x,y+ArrowSize)
  
  pdf_PathEnd(Style)
EndProcedure

Color=#Red
pdf_SetFillColor(Red(Color),Green(Color),Blue(Color))
Arrow(20,20,50,2,#PDF_STYLE_DRAWANDFILL)

pdf_Save("Arrow.pdf")
RunProgram("Arrow.pdf")

Re: PurePDF Version 2.0

Posted: Mon May 14, 2012 11:52 am
by michel
Hi ABBKlaus,

Thank you for the example. I didn't percieve the power and possibilities of the path commands.

michel

Re: PurePDF Version 2.0

Posted: Tue May 15, 2012 4:26 am
by Guimauve
Hello,

I would like to use PurePDF on Linux but apparently the "FIXED" structure is used twice in the TTF_post_Header structure definition is not define in Linux.

Can someone put a copy of this structure here, so I can add it and compile PurePDF in Linux.

Thanks beforehand and best regards.
Guimauve