It is currently Sat May 25, 2013 2:12 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 299 posts ]  Go to page Previous  1 ... 13, 14, 15, 16, 17, 18, 19, 20  Next
Author Message
 Post subject: Re: PurePDF Version 2.0
PostPosted: Tue Mar 13, 2012 3:01 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
Thanks DoubleDutch, changes are now included.

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Tue Mar 13, 2012 3:06 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
no problem, glad to have helped. :)

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Thu Apr 26, 2012 6:35 am 
Offline
User
User

Joined: Tue Dec 08, 2009 7:42 am
Posts: 23
hi ABBKLAUS,
where tofind the new corrected version ? Thanks in advance


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Thu Apr 26, 2012 7:13 am 
Offline
Addict
Addict

Joined: Fri Oct 23, 2009 2:33 am
Posts: 2864
Location: Wales, UK
Here: http://www.purebasicpower.de/?PurePDF

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
 
 Post subject: pdf_Write() bug ?
PostPosted: Tue May 08, 2012 11:41 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Aug 22, 2003 7:12 am
Posts: 398
Location: Italia
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'.


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Wed May 09, 2012 10:35 am 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
Its a bug in ipf_Write(), i will upload a corrected version later :wink:

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

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

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Wed May 09, 2012 8:10 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
Update :

- fixed the PDF_Write() command (Thanks to Seldon)

http://www.purebasicpower.de/?download=PurePDF222_PB45X86.zip
http://www.purebasicpower.de/?download=PurePDF222_PB46X86.zip

BR Klaus

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Wed May 09, 2012 8:33 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Aug 22, 2003 7:12 am
Posts: 398
Location: Italia
ABBKlaus wrote:
Update :
- fixed the PDF_Write() command (Thanks to Seldon)

Thank you !


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Sun May 13, 2012 7:23 am 
Offline
User
User

Joined: Thu Sep 30, 2010 6:40 am
Posts: 27
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


Top
 Profile  
 
 Post subject: arrows
PostPosted: Sun May 13, 2012 1:34 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Feb 19, 2007 5:47 pm
Posts: 130
Location: Luxemburg
Hi ABBKLAUS,

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

michel


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Sun May 13, 2012 4:39 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
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 ?

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Sun May 13, 2012 4:58 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Feb 19, 2007 5:47 pm
Posts: 130
Location: Luxemburg
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


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Sun May 13, 2012 10:18 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
michel you can already do this with the path commands, here is a simple example that draws a red arrow :

Code:
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")

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Mon May 14, 2012 11:52 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Feb 19, 2007 5:47 pm
Posts: 130
Location: Luxemburg
Hi ABBKlaus,

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

michel


Top
 Profile  
 
 Post subject: Re: PurePDF Version 2.0
PostPosted: Tue May 15, 2012 4:26 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Oct 22, 2003 2:51 am
Posts: 734
Location: Canada
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 299 posts ]  Go to page Previous  1 ... 13, 14, 15, 16, 17, 18, 19, 20  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye