Page 1 of 1

XbpPDF Version 6 Available

Posted: Mon Jun 01, 2020 8:09 am
by eborger
Hello,

we are happy to announce the new version 6.0 of the XbpPDF and GraPDF classes. Some new features have been added to both classes, as well as a rewrite of some of the existing methods, to make the classes more reliable and efficient.

The new version is 100% compatible with Express++, once you create your Express++ report, you can save it as a PDF with one click.

The new files and the upgrade option are available in our site, http://www.borger.com.br/softsupply

__________________________________________________________________________
Changes for XbpPDF Version 6.0

New Rendering options, see the NEW() method.

New SetPDFAMode, to create PDF/A type files

New EmbedFile and EmbedRelationFile to embed files into the PDF, accept XML files according to the German ZUGFeRD specification

New Encoding support for UNICODE characters, text can now be in ANSI, OEM or UNICODE (UTF-16LE).

New Compress method, to compress PDF files, reducing the size of the created or an existing PDF file.

Font now accepts non whole numbers (ex. oPdf:Font( '8.5 Verdana') )

Two new printing methods PrintA and PrintO, with different rendering options, fell free to try and compare the results a choose whichever gives you a better result.

Several minor fixes to the library

__________________________________________________________________________

Please feel free to contact us at any time at softsupply@terra.com.br

Best regards,
Edgar


Re: XbpPDF Version 6 Available

Posted: Tue Jun 02, 2020 12:38 am
by skiman
Hi,
The new version is 100% compatible with Express++, once you create your Express++ report, you can save it as a PDF with one click.
Do you have a sample of this? I didn't find this in the docs on your site.

Re: XbpPDF Version 6 Available

Posted: Tue Jun 02, 2020 4:44 am
by Koverhage
Chris,

here the way we do it. Edgar has a express.prg included.
But note: As we know, this is only possible in preview mode.

Code: Select all

IF empty( fo->pdfname )
   aadd(aAddButtons,{60,20,"PDF",{||CreatePDF(,fo->pdfshow, fo->pdfemail, NIL, NIL,cOwnerPW, cUserPW)} })
ELSE
   aadd(aAddButtons,{60,20,"PDF",{||CreatePDF(GenOutDir(m_az,Nil,.t.)+rtrim( fo->pdfname)+"_"+dtos(date())+".pdf",fo->pdfshow, fo->pdfemail, NIL, NIL,cOwnerPW, cUserPW)} })
ENDIF

  case drpreview     
        DCPRINT on to oPrinter OPTIONS aOptions PREVIEW HIDE FINDBUTTON ADDBUTTONS aAddButtons;
        ZOOMFACTOR drzoomfakt ;
        PPOSITION aPos[1], aPos[2] PSIZE nMaxCol, nMaxRow