PDF Viewer redaction causes text to dissapear

In react if you use Sample PDF attached and try to redact the text, then apply the redactions, the text dissapears.


Here is my component code:

   <PdfViewerComponent
            ref={viewerRef}
            id="pdf-editor-viewer"
            documentPath={documentPath}
            resourceUrl = {window.location.origin + "/ej2-pdfviewer-lib"}
            toolbarSettings={{ toolbarItems: TOOLBAR_ITEMS, showTooltip: true }}
            enableAnnotation={true}
            documentLoad={handleDocumentLoaded}
            style={{ height: "100%", width: "100%" }}
          >
            <Inject
              services={[
                Toolbar,
                Magnification,
                Navigation,
                Annotation,
                LinkAnnotation,
                BookmarkView,
                ThumbnailView,
                Print,
                TextSelection,
                TextSearch,
                FormFields,
                FormDesigner,
              ]}
            />
          </PdfViewerComponent>

Attachment: sample_b51a28a2.pdf

5 Replies

VS Venkada Subramanian Durai Syncfusion Team April 1, 2026 08:24 AM UTC

Hi Jay,

Thank you for the update. We were able to reproduce the reported issue "After redacting the provided PDF document, the PDF content is not visible". We suspect this to be a defect and will perform further analysis. We will update you with more details by April 6, 2026.


Regards,

Venkada Subramanian D



VS Venkada Subramanian Durai Syncfusion Team April 6, 2026 04:14 AM UTC

HI Jay,

Thank you for your patience. We were able to reproduce the reported issue: "After redacting the provided PDF document, the PDF content is not visible" This issue originates from our PDF Library side. We have reported it to the respective team and will provide further details based on their response by April 7, 2026.


Regards,

Venkada Subramanian D



VS Venkada Subramanian Durai Syncfusion Team April 7, 2026 12:00 PM UTC

Hi Jay, 


Thank you for your patience. We have confirmed the issue "After redacting the provided PDF document, the PDF content is not visible" and logged it as a defect from PDF Library team

 

We will include the fix in our weekly release, which is estimated to be available on April 21, 2026.

 

Disclaimer: "Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization."


Regards,
Venkada Subramanian D



VS Venkada Subramanian Durai Syncfusion Team April 21, 2026 10:52 AM UTC

Hi Jay,

We sincerely apologize for the inconvenience caused. The PDF Library team is currently addressing certain stability‑related challenges, which prevented us from including the fix for the reported redaction issue in the latest release.

Please be assured that this fix remains a high priority and is planned to be included in our upcoming release, expected in the last week of April 2026. We truly appreciate your patience and understanding as we work toward delivering a stable and reliable solution.


Thank you for your continued support. Please feel free to reach out if you have any questions or need further clarification.


Regards,

Venkada Subramanian D



VS Venkada Subramanian Durai Syncfusion Team April 28, 2026 01:26 PM UTC

Hi Jay,
 

Thank you for your patience. We have fixed the reported issue "After redacting the provided PDF document, the PDF content is not visible" and the fix for the reported issue was included in our latest weekly release v33.2.4. Kindly upgrade to that version to get the issue resolved.

 

Root cause: As part of the shape redaction process, all re (rectangle) operators are converted into equivalent path operators such as m, l, and h. This conversion currently affects all re operators, including those used to define the media box.

 

Solution: Updated the logic to check whether the media box values match the rectangle values. When they are the same, the conversion of the re operator into path operators (m, l, h) is skipped.
 

Packages: 

@syncfusion/ej2-pdfviewer - npm (npmjs.com)

@syncfusion/ej2-react-pdfviewer - npm (npmjs.com)

 

CDN links:

https://cdn.syncfusion.com/ej2/33.2.4/material3.css

https://cdn.syncfusion.com/ej2/33.2.4/dist/ej2-pdfviewer-lib/pdfium.js

https://cdn.syncfusion.com/ej2/33.2.4/dist/ej2-pdfviewer-lib/pdfium.wasm


Regards,
Venkada Subramanian D


Loader.
Up arrow icon