Page 32 of 32
Re: PurePDF Version 2.0
Posted: Sat Sep 30, 2017 5:54 pm
by quasiperfect
thanks i will
Re: PurePDF Version 2.0
Posted: Fri Dec 21, 2018 10:49 pm
by DeanH
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.
Re: PurePDF Version 2.0
Posted: Mon Dec 24, 2018 7:24 am
by swan
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 ....
Re: PurePDF Version 2.0
Posted: Sat Nov 02, 2019 6:09 pm
by Oliver13
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.
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")
Does anybody have an idea how to solve ?
Re: PurePDF Version 2.0
Posted: Wed Nov 06, 2019 11:55 am
by T4r4ntul4
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.
Re: PurePDF Version 2.0
Posted: Wed Nov 06, 2019 1:14 pm
by blueb
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 
Re: PurePDF Version 2.0
Posted: Wed Nov 06, 2019 1:15 pm
by Thorsten1867
You can try pbPDF.
viewtopic.php?f=27&t=72031
Gesendet von meinem SM-T595 mit Tapatalk
Re: PurePDF Version 2.0
Posted: Wed Nov 06, 2019 2:11 pm
by collectordave
Have You tried
search.php?search_id=egosearch
Purepdf module?
CD
Re: PurePDF Version 2.0
Posted: Sun Jul 07, 2024 5:29 pm
by normeus
As mentioned by Thorsten1867 use PBPDF-Module.
@ Oliver13
If you are not able to change to PBPDF-Module, I updated PurePDF to fix the multiple style font problem.
see my post here
https://www.purebasic.fr/english/viewto ... 38#p623738
Thank you.
Norm.