Page 1 of 1

Pagescript from Abeelabs

Posted: Tue Jul 25, 2017 1:33 am
by Victorio
Hi,

I found informations about this library. I know, this is outdated info from 2015year, but how I searching some library like this for direct creating PDFs without any installation PDF Creator,Bullzip,.... for simple installation my app for many clients who do not know, how configure profiles, printers,...

I use PDF Creator, but problems was with several versions who users have on his PC. My program test registry keys, and is configured for PDF Creator 1.7.1. But some clients have version 2.x there was different keys in registry, and I do not wand complicated analyze which version they have, and which keys I need set. Also users can have own profiles .

Can anyone some tips how create PDF simpliest way without need installation other programs, utilities etc ?

Edit :
I found info about XBPPDF, after examine demo version can works, I found some problem with spaces between letters, but maybe this is configurable , problem is when use east european characters with diacritics like CP 1250.
So , class cost 150US$ ;)

Re: Pagescript from Abeelabs

Posted: Tue Jul 25, 2017 7:30 am
by Auge_Ohr
Victorio wrote:Can anyone some tips how create PDF simpliest way without need installation other programs, utilities etc ?
i use Windows 10 PDF Printer.

Re: Pagescript from Abeelabs

Posted: Tue Jul 25, 2017 8:00 am
by Victorio
Hi ,

Microsoft print to PDF I can use only for users with W10, but most users have W7 or WXP.

I still play with PDF Creator and his automatic configure profile and printer when user start my application.

For PDF Creator I have solution, I can add or modify registry keys, or use saved reg file to other users.

Now I try use same way for newest version 2.5.3 but here is problem , because this use other keys by user SID, or some number sign in profiles, than I do not know what system sign , see here

PDFCRE_printer:=DC_Regquery(HKEY_CURRENT_USER,"Software\pdfforge\PDFCreator\Settings\ApplicationSettings\PrinterMappings\1","PrinterName")

here number 1 is first added printer, but when user has more profiles and printer, I do not know his number,
way is scan number like 1 to 10 ...

PDFCRE_cesta:=DC_Regquery(HKEY_CURRENT_USER,"Software\pdfforge\PDFCreator\Settings\ConversionProfiles\8\Autosave","TargetDirectory")

here is also number 8 for sign user profile, when user has own profiles, this can be number 9,10,....

And main problem is with set profile for printer,
key
[HKEY_CURRENT_USER\Software\pdfforge\PDFCreator\Settings\ApplicationSettings\PrinterMappings\1]
"PrinterName"="InfokatReport"
"ProfileGuid"="9a651068-f2ed-47e2-822d-0ef484e3b7d6"

where I do not know identify ProfileGuid.
I know, this is assigment profile InfokatReport for printer InfokatReport, but here this is some "crypted" string...

Now I do not want any other software, utility etc. for create PDF, because this is next installation need on user side.
Only PDF Creator is acceptable, because most users have it preinstalled .
Best way will be include PDF Creating in application like using XBPPDF Class. But this need modify every reports in my program :roll:

Re: Pagescript from Abeelabs

Posted: Wed Aug 02, 2017 10:00 am
by skiman
Hi,

Did you try to use the API of PDF Creator? You can use it as an activeX control.

I tested some time ago with it. If you are interested, I can send you my test next week. I'm on vacation this week.

Re: Pagescript from Abeelabs

Posted: Wed Aug 02, 2017 10:15 am
by Victorio
Hi, Chris,

I will be grateful for some example how use API PDF Creatorm you can send me.
Now I have problems with read registry on 64bit W10, when testing version, directory etc. to set for my own setting.

Viktor

Re: Pagescript from Abeelabs

Posted: Thu Aug 03, 2017 8:01 pm
by patito
Hi Victorio

attach pdfcreator.prg

best regard
hector

Re: Pagescript from Abeelabs

Posted: Fri Aug 04, 2017 12:24 am
by Victorio
Thank you Patito !. I will look for this, in this moment do not know how this work, because with Activex I have not any experiences.