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

**URL:** <https://forums.softvelocity.com/t/controling-pdf-output-filename-with-pdf-library-to-use-is-image-2-pdf/196>\
**Category:** Bug Reports\
**Tags:** c12\
**Created:** [October 22, 2026, 1:42pm UTC](https://forums.softvelocity.com/t/controling-pdf-output-filename-with-pdf-library-to-use-is-image-2-pdf/196 "2026-10-22T13:42:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timdoo](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@timdoo](https://forums.softvelocity.com/u/timdoo)\
**Post date:** [October 22, 2026, 1:42pm UTC](https://forums.softvelocity.com/t/controling-pdf-output-filename-with-pdf-library-to-use-is-image-2-pdf/196/1 "2026-10-22T13:42:47Z")

</div>

### 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](https://forums.softvelocity.com/uploads/short-url/fsCAgaFX7u4gLuugWz5RT22qmF2.zip) (185 KB)

---

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [October 22, 2026, 8:18pm UTC](https://forums.softvelocity.com/t/controling-pdf-output-filename-with-pdf-library-to-use-is-image-2-pdf/196/2 "2026-10-22T20:18:39Z")

</div>

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:

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

```

change it to:

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

```

save it, and rebuild your app to test it.
