Controling PDF output filename with (PDF library to Use is Image 2 PDF)

Clarion build

12.0.0.14000

OS / architecture

windows 11 pro

Area

Reports / printing

What happened

I use Image 2 PDF for PDF Report in PDF Library to Use. If I use Clarion for PDF Library to Use, have no 'đčćĐČĆ' leters.
Cannot set predefined name for PDF report with Image 2 PDF. Set Output Name Type Fixed, Variable and Runtime and allways ofered to save file with blank file name (I fill varibale, fixed string but nothing works).
Works fine if I use Clarion for PDF Library to Use but then it's much slower and no 'đčćĐČĆ' leters.

Steps to reproduce

I'm sending test application.
1.In PDF_Report_Runtime_Clarion procedure when I select save As PDF from Preview window it offers me to save exact name which is define in local variable (PDF_Filename) and returns to preview window (PDF library to Use is Clarion).
2.In PDF_Report_Runtime procedure when I select save As PDF from Preview window it offers me to save exact name which is define in local variable (PDF_Filename) and than offers me again to save file but this time with blank filename. (PDF library to Use is Image 2 PDF).
I can't skip this second offer with blank filename.
In both application I set false condition for genareting report to PDF. I want to control it by myself.
With PDF library to Use is Clarion works as expected, but with PDF library to Use is Image 2 PDF can't skip offering to save file once more time with blank filename.

3.In PDF_Report_Fixed and PDF_Report_Variable procedures when I select save As PDF from Preview window it saves files with name defined in strnig or local variable (PDF_Filename) without offering again to save a file (PDF library to Use is Clarion).
2.In PDF_Report_Runtime procedure when I select save As PDF from Preview window it offers me to save exact name which is define in local variable (PDF_Filename) and than offers me again to save file but this time with blank filename. (PDF library to Use is Image 2 PDF).
I can't skip this second offer with blank filename.

What you expected instead

To control PDF output as with PDF library to Use is Clarion.

Attach an example

PDF Report.zip (185 KB)

Hi, thanks for the sample App - it's confirmed.

The Image 2 PDF target was treating the previewer's Save As as "ask for a name again" and started that dialog from an empty name, so the name from the Fixed or Variable prompt, or the one your code set with SetFileName, was thrown away. The Clarion PDF target asks only when no name has been set, which is why it behaved as you expected.

The next refreshed build makes the Image 2 PDF target follow the same rule: a name set before the export is used as it stands, and the Save dialog appears only when no name is set. Your three procedures then behave like their Clarion counterparts, including the Runtime one where your own dialog in Setup supplies the name.

Nothing changes in your application; the fix is in the class source (abprI2pdf.clw), so a rebuild against the refreshed build picks it up.

Your report says you are using build 14000, if you need the fix now, it is a one line change in your Clarion12-14000\Libsrc\Win folder --
open your "C:\Clarion12-14000\LibSrc\win\abprI2pdf.clw"
on line number 246 you'll find:

     IF NOT CLIP(SELF.Output.GetFileName()) OR Force THEN

change it to:

     IF NOT CLIP(SELF.Output.GetFileName()) THEN

save it, and rebuild your app to test it.