Recent

Author Topic: Save as PDF with PowerPDF  (Read 339 times)

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 127
Save as PDF with PowerPDF
« on: April 02, 2023, 10:20:01 am »
Hi all, I am using Lazarus 2.2.4 on Windows and I am not able to export LazReport as PDF using PowerPDF (latest version from OPM).

The library raise the exception in the procedure below. I try to use the same report using a previous version and it works fine.

Any suggestions to debug the issue ?

Many thanks

Code: Pascal  [Select][+][-]
  1. procedure TPdfCanvasAttribute.SetWordSpace(Value: Single);
  2. begin
  3.   if Value < 0 then
  4.     raise EPdfInvalidValue.Create('SetWordSpace --invalid word space');
  5.   if Value <> FWordSpace then
  6.     FWordSpace := Value;
  7. end;    
  8.  

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 127
Re: Save as PDF with PowerPDF
« Reply #1 on: April 03, 2023, 07:03:05 pm »
I finally found out the reason why.

In the report I have an element with Justify Value="True". If I remove it the export to PDF works fine.

Hope it can helps.

 

TinyPortal © 2005-2018