Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

 

Section
Column

Print View

By selecting a form's printable checkbox a print icon will be displayed at the top of your form. When the form is used and the printer icon is clicked the form is rendered in a new browser tab and a pdf document is generated and downloaded depending on your browser settings. The name of the pdf file will be <form name>.pdf unless the form was designed to name the pdf something different. The form pdf file can then be printed. Only PDFs are supported.

Info

Workflows do not currently support this print feature. See Printing Flows for other options.

All controls also have a printable property. A control's Printable property is checked by default. If you un-check this property then the control will not appear in the pdf. This property can also be set dynamically via a business rule by setting <control>.printable = [true|false]. 

There are a few differences between the browser view and the print view. For instance, decorators and placeholders do not appear in the pdf document; collapsed sections will appear expanded; and tabs will be rendered one tab under another. 

Print Styles, (font, orientation, margins and header/footer content) for PDFs generated as part of a submission can be selected by the designer.

Note

If you are trying to make the print view of a table control consistent with the browser view, set the column widths explicitly at either the column cell level or at the table level. 

Use the PDF generation feature if you need a "Pixel Perfect" representation of your form.

Column
width240px

On This Page:

Table of Contents
maxLevel2

...

The font set that you are going to use must be available to at PDF rendering time. This is accomplished by placing the fonts in the /WEB-INF/fonts folder after expanding the frevvo.war.  

 Follow these steps:

  1. Stop the  server
  2. Uncompress/expand the <frevvo-home>/tomcat/webapps/frevvo.war file to a temporary location on your desktop.
  3. Add your font file (unifont.tff file is an example) to the WEB-INF/fonts directory.
  4. Re-WAR to create a new updated frevvo.war file.
  5. Replace the original frevvo.war file with the new updated frevvo.war file, typically located in this directory: <frevvo-home>/tomcat/webapps.
  6. Re-start your   server.
  7. Select the Print Font for PDFs in the Forms Designer as discussed below. 

...

  1. Add a message control to your form
  2. Add the following HTML to your message control

    Info

    When adding HTML to a message control you must add it in Source View. Click the Source button, add the html, then save the text. Refer to the Palette Controls topic for details on Source View.

Code Block
<center>
<a titlehref="Print this form" onclick="_frevvo.api.printFlowStep(this);" href="#" class="f?print=true&amp;format=pdf"><span id="f-form-tb-print-span">Print Form</a>

...

PDF</span></a>
</center>
Info

The same technique above can also be used for flows. In the case of a flow the custom print button will print the currently visible workflow step and not the combination of all the steps in the workflow. The current activity will print even if the activity's print property is unchecked.

...