PurePDF Version 2.0
Re: PurePDF Version 2.0
Thanks DoubleDutch, changes are now included.
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: PurePDF Version 2.0
no problem, glad to have helped. 

https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
Re: PurePDF Version 2.0
hi ABBKLAUS,
where tofind the new corrected version ? Thanks in advance
where tofind the new corrected version ? Thanks in advance
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: PurePDF Version 2.0
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
pdf_Write() bug ?
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'.
just at the end of the text'.
Re: PurePDF Version 2.0
Its a bug in ipf_Write(), i will upload a corrected version later
Wrong :
Corrected :

Wrong :
Code: Select all
l + ipf_GetStringWidth(c) ; Fonts()\CharWidth[Asc(c)]
Code: Select all
l + ipf_GetStringWidth(c,#False) ; Fonts()\CharWidth[Asc(c)]
Re: PurePDF Version 2.0
Update :
- fixed the PDF_Write() command (Thanks to Seldon)
http://www.purebasicpower.de/?download= ... B45X86.zip
http://www.purebasicpower.de/?download= ... B46X86.zip
BR Klaus
- fixed the PDF_Write() command (Thanks to Seldon)
http://www.purebasicpower.de/?download= ... B45X86.zip
http://www.purebasicpower.de/?download= ... B46X86.zip
BR Klaus
Re: PurePDF Version 2.0
Thank you !ABBKlaus wrote:Update :
- fixed the PDF_Write() command (Thanks to Seldon)
Re: PurePDF Version 2.0
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
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
Re: PurePDF Version 2.0
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 ?
michel what the hell is an "arrow" command ?
Re: PurePDF Version 2.0
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
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
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
Hi ABBKlaus,
Thank you for the example. I didn't percieve the power and possibilities of the path commands.
michel
Thank you for the example. I didn't percieve the power and possibilities of the path commands.
michel
Re: PurePDF Version 2.0
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
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