PurePDF Version 2.0

Developed or developing a new product in PureBasic? Tell the world about it.
TerryHough
Enthusiast
Enthusiast
Posts: 781
Joined: Fri Apr 25, 2003 6:51 pm
Location: NC, USA
Contact:

Post by TerryHough »

All my tutorial examples fail.

Says
Error: The following PureLibrary is missing: LibraryExtension

PB4. What am I missing?
magicjo
User
User
Posts: 61
Joined: Sun May 07, 2006 10:43 am
Location: Italy

Post by magicjo »

@TerryHough,

I think the library is coded with PB ver. 3.94 .
PB Registered User, Egrid Registered User
Win7 x64 Ultimate, 4,00 Gb Mem, Ati Radeon HD4600 Series, Realtek High Definition Audio Integrated
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

In the moment, there is no lib for PB4, but you can use the include by Flype:
http://www.purebasic.fr/english/viewtopic.php?t=21862
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

just to inform that PurePDF 2.05 for PB4.01 is available.

all the stuff can be downloaded here, on the ABBKlaus homepage.
http://www.purebasicpower.de/?PDFBarcode

and a question to the author(s) :

is possible to add this procedure to the PDFMisc userlibrary ?

Code: Select all

Procedure pdf_IncludeFileJS(FileName.s)
  
  Protected file.l, source.s
  
  file = ReadFile(#PB_Any, FileName)
  
  If file
    source = Space(Lof(file))
    If ReadData(file, @source, Lof(file))
      pdf_IncludeJS(source)
    EndIf
    CloseFile(file)
  EndIf
  
EndProcedure
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

hello, another question

is it possible to generate a PDF document and then print it directly on the default printer without opening the Acrobat Reader interface ?
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

Hi Flype,

uploaded the new version (version stays at V2.05) ->PurePDF V2.05<-

new command :
pdf_IncludeFileJS(FileName.s)
is it possible to generate a PDF document and then print it directly on the default printer without opening the Acrobat Reader interface ?
i would say no :cry: cannot find anything suitable for PurePDF so it can stay multiplatform :arrow:
i tried with Acrobat Reader but the window stays open when finished printing a PDF file. And Freak´s method http://www.purebasic.fr/english/viewtopic.php?t=9927 isn´t working with PDF´s :? (not Freak´s fault its Adobe :evil: )

But when you find anything i will add it.

Regards Klaus
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

ok, thank you for the answer - and the update.

so, at the moment, i include this very big javascript snippet :

Code: Select all

print(true);
but this one open the document in Acrobat Reader, once loaded it open the print dialog. 2 mouse clicks saved. but, well, that's not what i'm really looking for.

maybe i should use your PrinterLib which seems to be very useful.
does your PrinterLib supports antialiased texts and drawings ?
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

Hi,

there is a new version of PurePDF available :arrow: PurePDF V2.06

Fontembedding is now possible.

Regards Klaus
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

ABBKlaus wrote:Hi,

there is a new version of PurePDF available :arrow: PurePDF V2.06

Fontembedding is now possible.

Regards Klaus
Great! Thanks! This is an incredible user library and I just LOVE the inclluded source code... It's so beautiful! :D
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

Thanks a lot. My program needs a lot of PDFs.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Great work. Thanks. 8)
I may look like a mule, but I'm not a complete ass.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

ABBKlaus wrote:Fontembedding is now possible.
How does it work? I can't find it in the help file.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

There is no need to mention it in the helpfile :wink: (btw i don´t have the source file of the help [@Luke can you send?])
Just use the old syntax :

Code: Select all

pdf_SetFont("Tahoma","",12)
there is only one thing left to say :oops:
when there is no matching font for the style found (for 'Tahoma' this is italic) the default font is used (in this case 'Tahoma' Regular)
*B.TTF = Bold Font
*BD.TTF = Bold Italic Font
*I.TTF = Italic Font
Regards Klaus
LuckyLuke
Enthusiast
Enthusiast
Posts: 181
Joined: Fri Jun 06, 2003 2:41 pm
Location: Belgium

Post by LuckyLuke »

VERY COOL ! 8) Great job !
I'll try to find the source of the help file.

LuckyLuke
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

Thanks Luke,

Help file is updated :arrow: PurePDF V2.06

This time only pdf.chm :shock: the rest (pdfMisc + pdfDraw) is for tomorrow

Regards Klaus
Post Reply