Hi
I would like to create a pdf button that generates a pdf of a form I created comprising the hidden sections.
That is: I have a form with sections that are hidden or shown depending on particular conditions.
But when I press the PDF button I would like to get the pdf of the whole form, not only of the currently shown sections.
How can I do this? I was thinking of customizing the code of the PDF button: I searched here
https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/components/buttons.xsland inserted in my form this code:
<xsl:if test="not($has-pdf-template and not($is-pe))">
<fr:href-button
model="fr-persistence-model"
ref="instance('fr-triggers-instance')/strict-submit"
href="/fr/service/{$app}/{$form}/pdf/{{xxf:instance('fr-parameters-instance')/document}}/{{xxf:document-id()}}.pdf">
<xsl:copy-of select="@appearance"/>
<xf:label>
<xh:img width="16" height="16" src="/apps/fr/style/pdf.png" alt=""/>
<xf:output value="$fr-resources/detail/labels/print-pdf"/>
</xf:label>
</fr:href-button>
</xsl:if>
But the pdf button does not work: it opens an orbeon error page saying:
Not Found
Oops, the page requested was not found! Moreover: how could I obtain the pdf of the whole form? I think I should modify the line
<xsl:copy-of select="@appearance"/>
but how could I select all the sections and not only the appeared ones?