PDF generation issues

Posted by: jesse.van.dam on 13 June 2021, 7:26 pm EST

  • Posted 13 June 2021, 7:26 pm EST

    Hi,

    I have created a design which needs to be downloaded as a pdf. But there are differences in the result between the viewer and the pdf.

    The design uses a double border, this works fine in the viewer but when i download the pdf it shows as a one single big border.

    The border on the bottom of the header of the table seems to get overwritten by the border of the top of the first row.

    The text elements are not vertically centered in the rows.

    I have attached the report and the pdf result.



    TestDocument.zip
  • Replied 13 June 2021, 9:12 pm EST

    Hello, Jesse,
    The double border does not get preserved in the exported PDF document, this is a known issue ARJ-1698. I raised its priority to get it fixed in the next version.
    You can set the top border of the detail row to "None" to fix the border overlapping issue, the modified report is attached.
    Finally, to fix the alignment you should register the fonts that are used in the report. You can find the detailed instructions at
    https://www.grapecity.com/activereportsjs/docs/GettingStarted/FontConfiguration

    Fijne dag!

    TestDocument.zip
  • Replied 14 June 2021, 12:16 am EST

    Thanks for your response! Your solution partly fixes my problems.

    When can we expect the next version? This will be a blocking issue for us.

    Do i also need to register the default fonts like Arial, Comic Sans MS etc? In my tests it doesn't work in pdf if i don't register the fonts. While it does work in the viewer/designer.

    Setting the row top border to none helps, but the border is smaller(thickness) as the top border of the header, while they should be the same.
  • Replied 14 June 2021, 12:53 am EST

    Hello,
    Let me ask you if you have the ActiveReportsJS license or you currently evaluate the product?
  • Replied 14 June 2021, 12:55 am EST

    Yes we do have a license
  • Replied 24 June 2021, 5:38 pm EST

    Any update on this?
  • Replied 24 June 2021, 8:51 pm EST

    Hello,
    The fix will be available in the next release that is planned for September 6, 2021.
    Also, it's going to be the limited implementation of double borders in the PDF output - it would work only if all border sides(top, bottom, left, right) have the same width, color, and style.
  • Replied 26 July 2021, 10:06 pm EST

    Hello,
    Could you please update to v2.1.4 and check the PDF output? We fixed double borders preservation in the PDF output earlier than expected.
  • Replied 1 August 2021, 6:05 pm EST

    Hi i tried the new version. The double borders are visible in the pdf. But still there are differences between the preview and the pdf. I attached a screenshot and highlighted some of the differences.

    The double border is in the preview a continuous line(desired for us), but in the pdf it is separated because of the white borders at the left/right of the table cells.

    The border above the first table row is also still missing.

  • Replied 1 August 2021, 8:21 pm EST

    Hello,
    I tested the PDF output with the report that you originally provided and it looks fine. Could you share the report template for the most recent screenshot, including mock data?
  • Replied 1 August 2021, 9:02 pm EST

    I added the example rdlx file and the output pdf

    Note: I only edited the first table. The others are still using a workaround.

    Example.zip
  • Replied 2 August 2021, 8:48 pm EST

    I posted issue #ARJ-3538, we will try to fix it for the upcoming release v2.2(Beta in ~3 weeks, Public Release in ~1 month)
  • Marked as Answer

    Replied 26 September 2021, 8:28 pm EST

    Hello,
    To prevent "gaps" within the horizontal line, you can simply use the "transparent" color for vertical border lines. Currently, it's set to "white", hence the white color overrides the black color.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels