Skip to content

[Feature]: Support Visibility Setting in FPDF https://www.fpdf.org/en/script/script75.php #20201

@SPBCodes

Description

@SPBCodes

Is the feature relevant to the Firefox PDF Viewer?

No

Feature description

I'd like to be able to hide content on the PDF page when printed that is visible in the viewer on screen. This is supported by FDPF using this script: https://www.fpdf.org/en/script/script75.php

Currently, if this is applied:

$pdf->SetVisibility("all");

The content is displayed on both print and screen. This is the desired result.

However, if either of these are applied

$pdf->SetVisibility("screen");
$pdf->SetVisibility("print");

Nothing is displayed on both screen and print.

I am unaware of any work around.

Other PDF viewers

I can confirm that the visibility preference is honoured by the default Chrome PDF viewer on Windows 11.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions