Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-31759

PDF macro is rendered with blank page when used with scanned PDFs

      After the upgrade to 5.3, there are some pdf files which are being rendered blank by the pdf macro.

      This works without problems in a 5.2.5 version.

      The attachment in this page can be used to reproduce the behavior.

      Steps to reproduce.
      1) Attach the pdf file of this ticket to a confluence page
      2) Insert a pdf macro and load the pdf file
      3) The macro will show a blank page and nothing more.

      workaround

      You can start confluence with `-Dpdf.render.memory.guard.disabled=true` system property in order to disable memory guard. That will make all pdfs to be rendered.
      More information on how to set system properties in confluence can be found here

      If the PDF doesn't render with the workaround in place, you must delete and recreate the PDF macro after placing the system property above and restarting Confluence.

        1. About Confluence.pdf
          34 kB
        2. bug.JPG
          bug.JPG
          54 kB

            [CONFSERVER-31759] PDF macro is rendered with blank page when used with scanned PDFs

            Still exist in Confluence 6.1.3, applied workaround mentioned and fixed the issue.

            manuel.bravo added a comment - Still exist in Confluence 6.1.3, applied workaround mentioned and fixed the issue.

            I see this issue was included in the Bug fixes in the 5.9 release notes (https://confluence.atlassian.com/doc/confluence-5-9-release-notes-785333580.html), but I just installed this version and the bug still exists.

            Cheryl Fogle added a comment - I see this issue was included in the Bug fixes in the 5.9 release notes ( https://confluence.atlassian.com/doc/confluence-5-9-release-notes-785333580.html ), but I just installed this version and the bug still exists.

            psemeniuk this issue is mentioned in release Confluence 6.0.0-OD-2015.48.0-0523 just promoted to jirastudio-dev

            Deleted Account (Inactive) added a comment - psemeniuk this issue is mentioned in release Confluence 6.0.0-OD-2015.48.0-0523 just promoted to jirastudio-dev

            psemeniuk this issue is mentioned in commits included in the Confluence 5.9.1-OD-2015.47.1-0002 release being approved for production: CPU-64

            Deleted Account (Inactive) added a comment - psemeniuk this issue is mentioned in commits included in the Confluence 5.9.1-OD-2015.47.1-0002 release being approved for production: CPU-64

            Petro Semeniuk (Inactive) added a comment - https://confluence.atlassian.com/display/CONFKB/Background+images+on+PDF+do+not+render+correctly+when+using+PDF+macro has been updated to reflect version range.

            All,

            I re-opened issue and submitted patch where system property is not needed anymore for BTF customers.

            That's just to avoid confusion and extra work everyone need to do after 5.x upgrade.

            Workaround is still valid for 5.x version till 5.9.1.

            Cheers
            Petro

            Petro Semeniuk (Inactive) added a comment - All, I re-opened issue and submitted patch where system property is not needed anymore for BTF customers. That's just to avoid confusion and extra work everyone need to do after 5.x upgrade. Workaround is still valid for 5.x version till 5.9.1. Cheers Petro

            Workaround doesn't seem to work. We are being hit by this bug.

            Honeywell JIRA Admin added a comment - Workaround doesn't seem to work. We are being hit by this bug.

            it.support7 are you using workaround listed in issue description?

            Petro Semeniuk (Inactive) added a comment - it.support7 are you using workaround listed in issue description?

            DataforceI added a comment -

            5.8.10 affected too

            DataforceI added a comment - 5.8.10 affected too

            Thank you, Denise.

            Joe Westcott (ITDP) added a comment - Thank you, Denise.

              psemeniuk Petro Semeniuk (Inactive)
              rgadami Rodrigo Girardi Adami
              Affected customers:
              49 This affects my team
              Watchers:
              59 Start watching this issue

                Created:
                Updated:
                Resolved: