Issue When Exporting Report to PDF

Stimulsoft Reports.JAVA discussion
Post Reply
TecnologiaMV
Posts: 97
Joined: Mon May 30, 2022 7:35 pm

Issue When Exporting Report to PDF

Post by TecnologiaMV »

Dear,

I am experiencing an issue when trying to save a report as a PDF.
When I open the export settings and select the option “Open after export”, the system generates a new URL. However, when I click on the PDF download icon, the report is downloaded empty, without an extension, and only with the name:

stimulsoft_webviewer_action

When I try to save and open this file, it cannot be viewed.

The issue has already been tested in previous versions as well as in the latest version 2025.3.5, and it occurs in all of them.
Screenshot_1396.png
Screenshot_1396.png (59.07 KiB) Viewed 5573 times
Screenshot_1397.png
Screenshot_1397.png (39.75 KiB) Viewed 5573 times
Screenshot_1398.png
Screenshot_1398.png (61.64 KiB) Viewed 5573 times
Screenshot_1399.png
Screenshot_1399.png (60.67 KiB) Viewed 5573 times
Screenshot_1400.png
Screenshot_1400.png (33.8 KiB) Viewed 5573 times
Vadim
Posts: 440
Joined: Tue Apr 23, 2013 11:23 am

Re: Issue When Exporting Report to PDF

Post by Vadim »

Hello

Fix will available from version 2025.4.1
TecnologiaMV
Posts: 97
Joined: Mon May 30, 2022 7:35 pm

Re: Issue When Exporting Report to PDF

Post by TecnologiaMV »

Dear,

I ran the test using version 2026.1.1, but the issue still persists.
Vadim
Posts: 440
Joined: Tue Apr 23, 2013 11:23 am

Re: Issue When Exporting Report to PDF

Post by Vadim »

Hello

Please be sure you are using latest libs
81.gif
81.gif (2.26 MiB) Viewed 1849 times
TecnologiaMV
Posts: 97
Joined: Mon May 30, 2022 7:35 pm

Re: Issue When Exporting Report to PDF

Post by TecnologiaMV »

Dear,

I ran the test using version 2026.1.1, but the issue still persists.


follow the video
2026-01-08 15-19-22 - Copia.mp4
(4.41 MiB) Downloaded 83 times
Vadim
Posts: 440
Joined: Tue Apr 23, 2013 11:23 am

Re: Issue When Exporting Report to PDF

Post by Vadim »

Hello

Can you check about window, is it 2026.1.1 version?
Screenshot 2026-01-09 145138.png
Screenshot 2026-01-09 145138.png (40.52 KiB) Viewed 1810 times
khkramer
Posts: 1
Joined: Mon Feb 23, 2026 9:23 am

Re: Issue When Exporting Report to PDF

Post by khkramer »

Hey guys I was trying out Stimulsoft java (we currently have web/js but I want to the PDF export integrated in our backend instead of a separate NodeJS process), and I have the same issue but broader in scope, exporting does not produce valid results regardless of format.
StiExportManager.exportPdf() produces an invalid/blank PDF regardless of report used. exportHTML produces an HTML file with an empty body.
Doesn't matter if I load a JSON template or create a new report in code.

Code: Select all

val report =
            StiReport().apply {
                addPage(
                    StiPage(this).apply {
                        components.add(StiText(StiRectangle(100L, 100L, 100L, 20L), "Test123"))
                    },
                )
            }

        val outputStream = FileOutputStream("test.pdf")
        StiExportManager.exportPdf(
            report,
            StiPdfExportSettings().apply {
                imageCompressionMethod = StiPdfImageCompressionMethod.Jpeg
            },
            outputStream,
        )

        StiExportManager.exportHtml(
            report,
            FileOutputStream("test.html"),
        )
I get 0 logs or exceptions.
Running on Kotlin + JDK21.
Post Reply