PurePDF Version 2.0
-
- Enthusiast
- Posts: 157
- Joined: Tue Feb 13, 2007 6:16 pm
- Location: Romania
- Contact:
- DeanH
- Enthusiast
- Posts: 229
- Joined: Wed May 07, 2008 4:57 am
- Location: Adelaide, South Australia
- Contact:
Re: PurePDF Version 2.0
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.
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.
Re: PurePDF Version 2.0
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 ....
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 ....
Re: PurePDF Version 2.0
I've found a bug when using unicode fonts: only the first font style is considered.
If you select bold font style, there is now way to change back regular font.
Does anybody have an idea how to solve ?
If you select bold font style, there is now way to change back regular font.
Code: Select all
;Unicode example
;===============
#PurePDF_Include=1
XIncludeFile "PurePDF.pb"
Define File$
Define String$,StringWidth.d,i
File$=GetFilePart(#PB_Compiler_File)
File$=Mid(File$,1,Len(File$)-Len(GetExtensionPart(File$))-1)
pdf_Create()
pdf_AddPage()
pdf_SetFont("Arial Unicode","B",10)
pdf_Text(20,20,"Faška") ; ok, does display diacritc
pdf_SetFont("Arial","B",10)
pdf_Text(20,30,"Faška"); style ok, but does not display diacritic
pdf_SetFont("Arial Unicode","",10);
pdf_Text(20,40,"Faška"); does display diacritc,but shows bold style = should be regular
pdf_SetFont("Arial","",10) ; style =ok, but does not display diacritic
pdf_Text(20,50,"Faška")
pdf_Save(File$+".pdf")
RunProgram(File$+".pdf")
Re: PurePDF Version 2.0
Hi all,
What is the future of PurePDF? i wanted to update my software with latest version of PurePDF but the website is down?
http://www.purebasicpower.de/downloads/ ... Index.html
Is there an updated version somewhere what works with the latest PB, or is there a better alternative?
Any thoughts are appreciated.
What is the future of PurePDF? i wanted to update my software with latest version of PurePDF but the website is down?
http://www.purebasicpower.de/downloads/ ... Index.html
Is there an updated version somewhere what works with the latest PB, or is there a better alternative?
Any thoughts are appreciated.
Re: PurePDF Version 2.0
I believe Thorsten1867 has worked on this.
You can get his latest here as part of many modules he has
generously given PureBasic users: https://github.com/Hoeppner1867/PureBasic
You can get his latest here as part of many modules he has
generously given PureBasic users: https://github.com/Hoeppner1867/PureBasic
- It was too lonely at the top.
System : PB 6.10 LTS (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
System : PB 6.10 LTS (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: PurePDF Version 2.0
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
-
- Addict
- Posts: 1309
- Joined: Fri Aug 28, 2015 6:10 pm
- Location: Portugal
Re: PurePDF Version 2.0
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.