为什么 PDF 中的超链接在智能手机上不起作用?

Why does hyperlink in PDF not work on smartphones?

我正在使用 Jasper 报告生成 PDF 报告,当我使用 Adob​​e Acrobat 打开它时,生成的文件中有超链接无法在智能手机上使用 Reader。

创建超链接的代码

<textField hyperlinkType="Reference" hyperlinkTarget="Blank">
            <reportElement mode="Opaque" x="450" y="80" width="100" height="20" forecolor="#0080FF" uuid="d11cac12-8769-450c-b9e8-f512179f33e3">
                <printWhenExpression><![CDATA[$V{PAGE_NUMBER} == 1]]></printWhenExpression>
            </reportElement>
            <textElement textAlignment="Left">
                <font size="10" isUnderline="true"/>
            </textElement>
            <textFieldExpression><![CDATA["Go"]]></textFieldExpression>
            <hyperlinkReferenceExpression><![CDATA["https://www.google.com"]]></hyperlinkReferenceExpression>
        </textField>

在 Jaspersoft Studio 中,将 Link 目标设置为“self”,它对我有用。 Link 类型是“参考”。