It is currently Sat Feb 23, 2019 6:20 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 468 posts ]  Go to page Previous  1 ... 28, 29, 30, 31, 32
Author Message
 Post subject: Re: PurePDF Version 2.0
PostPosted: Sat Sep 30, 2017 5:54 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Feb 13, 2007 6:16 pm
Posts: 157
Location: Romania
thanks i will

_________________
Registered user of PureBasic


Top
 Profile  
Reply with quote  
 Post subject: Re: PurePDF Version 2.0
PostPosted: Fri Dec 21, 2018 10:49 pm 
Offline
User
User

Joined: Wed May 07, 2008 4:57 am
Posts: 52
Location: Adelaide, South Australia
I have what I hope is a simple question:

In one part of my program, the user can select the font and size to be printed. Is there a way with PurePDF to determine the height a cell will be before pdf_Cell is called given the current font and size? In Windows, the DrawText function can be used, and in PureBasic's 2D drawing functions, TextHeight(). I'm trying to determine when a page break needs to be made before text is committed. Something like this...
Height=pdf_TextHeight()
If pdf_GetY+Height > pdf_GetH()
pdf_AddPage()
EndIf

Thanks.


Top
 Profile  
Reply with quote  
 Post subject: Re: PurePDF Version 2.0
PostPosted: Mon Dec 24, 2018 7:24 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Jul 03, 2004 9:04 am
Posts: 213
Location: Sydney Australia
I have an App for a client that produces a quote including a PDF of it (using PurePDF) and can be 2 to 3 pages. Been working fine for a couple of years.
Have been asked now to include a "terms & conditions" section that will always be the last page of the PDF. The problem is they have a number of documents to choose from and want an option to select which one at the time. The documents are PDFs.
My question - using PurePDF is there a way to merge a .pdf file, in this case as last page.
Have looked through the documentation and it would seem not but I thought I'd ask just in case.
Thanx guys & Merry Xmas ....


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 468 posts ]  Go to page Previous  1 ... 28, 29, 30, 31, 32

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 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