PurePDF Version 2.0

Developed or developing a new product in PureBasic? Tell the world about it.
quasiperfect
Enthusiast
Enthusiast
Posts: 157
Joined: Tue Feb 13, 2007 6:16 pm
Location: Romania
Contact:

Re: PurePDF Version 2.0

Post by quasiperfect »

thanks i will
Registered user of PureBasic
User avatar
DeanH
Enthusiast
Enthusiast
Posts: 223
Joined: Wed May 07, 2008 4:57 am
Location: Adelaide, South Australia
Contact:

Re: PurePDF Version 2.0

Post 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.
swan
Enthusiast
Enthusiast
Posts: 225
Joined: Sat Jul 03, 2004 9:04 am
Location: Sydney Australia
Contact:

Re: PurePDF Version 2.0

Post 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 ....
Oliver13
User
User
Posts: 82
Joined: Thu Sep 30, 2010 6:40 am

Re: PurePDF Version 2.0

Post 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 ?
T4r4ntul4
Enthusiast
Enthusiast
Posts: 118
Joined: Tue Mar 04, 2014 4:15 pm
Location: Netherlands

Re: PurePDF Version 2.0

Post 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.
User avatar
blueb
Addict
Addict
Posts: 1041
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: PurePDF Version 2.0

Post 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 :mrgreen:
- It was too lonely at the top.

System : PB 6.10 Beta 9 (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: PurePDF Version 2.0

Post by Thorsten1867 »

You can try pbPDF.

viewtopic.php?f=27&t=72031

Gesendet von meinem SM-T595 mit Tapatalk
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: PurePDF Version 2.0

Post by collectordave »

Have You tried

search.php?search_id=egosearch

Purepdf module?

CD
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.
Post Reply