Changes for page Print-Service-Plugin


From version 4.4
edited by gru
on 02.09.2021, 08:03
Change comment: There is no comment for this version
To version 5.1
edited by sas
on 26.11.2021, 17:42
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.gru
1 +XWiki.sas
Content
... ... @@ -1,5 +1,9 @@
1 1  [[**Plugin-Download**>>url:https://customer.formcycle.eu/index.php/apps/files/?dir=/FORMCYCLE%20-%20Plugins%20Customer/fc-plugin-print-service&fileid=8194||rel="noopener noreferrer" target="_blank"]] (requires login)
2 2  
3 +{{info}}
4 +{{formcycle/}} Version 7 requires the //Print-Service// plugin version to be **4.0.0** or higher.
5 +{{/info}}
6 +
3 3  {{content/}}
4 4  
5 5  The plugin //Print Services// is available separately and lets you create a PDF document from a form that is optimized for printing. This plugin is subject to additional charge.
... ... @@ -113,6 +113,7 @@
113 113  In order for the plugin to be available in {{formcycle/}} as an action in the workflow, it must be deployed in the System Plugin section of the management interface. Instructions for installing plugins can be found [[here>>doc:Formcycle.UserInterface.Client.Plugins.WebHome]].
114 114  
115 115  If the old version of the print service plugin (phantom plugin) was already installed, the following procedure is recommended for installation:
120 +
116 116  * Disable the phantom plugin
117 117  * Delete the phantom plugin
118 118  * Upload new print service plugin
... ... @@ -159,9 +159,7 @@
159 159  ==== Downloading Chromium fails ====
160 160  
161 161  The following error message appears on the console after running "npm install":
162 -{{code language="none"}}
163 -Error: unable to verify the first certificate
164 -{{/code}}
167 +{{code language="none"}}Error: unable to verify the first certificate{{/code}}
165 165  
166 166  The described steps are only a workaround and the environment variables should be set back to the default values after the successful installation!
167 167  
... ... @@ -188,9 +188,10 @@
188 188  : Additional URL parameters added to the URL used when opening the form with Selenium. You can use URL parameters to [[prefill form fields>>Formcycle.Designer.Form.URLParameter]] or access them from within JavaScript.
189 189  
190 190  == CSS-Anpassungen für Druckbild ==
194 +
191 191  === Input elements ===
192 192  
193 -To optimize the form for printing, form elements of type [[input field>>Formcycle.FormDesigner.FormElements.Input]], [[text area>>Formcycle.FormDesigner.FormElements.Textarea]] und [[select>>Formcycle.FormDesigner.FormElements.Selection]] (Drop-Down) may be converted to plain text fields, if the print mode is set to Input elements as text.
197 +To optimize the form for printing, form elements of type [[input field>>Formcycle.Designer.Form.FormElements.Input]], [[text area>>Formcycle.Designer.Form.FormElements.Textarea]] und [[select>>Formcycle.Designer.Form.FormElements.Selection]] (Drop-Down) may be converted to plain text fields, if the print mode is set to Input elements as text.
194 194  
195 195  Additionally, the CSS classes //print// and //XSpan// are added to the converted input element that can be used for styling them. For example, in order to change the font size, you can use the following CSS:
196 196  
... ... @@ -223,6 +223,31 @@
223 223  }
224 224  {{/code}}
225 225  
230 +
231 +
232 +=== Avoid page break ===
233 +
234 +The default setting for printing is that a page break is inserted after each page of the form:
235 +
236 +{{code language="css"}}
237 +@media print {
238 + .CXPage:not(:first-child ), .page-break {
239 + display: block !important;
240 + page-break-before: always;
241 + }
242 +}
243 +{{/code}}
244 +
245 +In order to avoid breaks, the following rule needs to be defined in the CSS tab of the form:
246 +
247 +{{code language="css"}}
248 +@media print {
249 + .CXPage:not(:first-child ) {
250 + page-break-before: avoid;
251 + }
252 +}
253 +{{/code}}
254 +
226 226  === Usage of other fonts ===
227 227  
228 228  ==== Technical requirements ====