Sometimes it generates a jagged pdf

26 views
Skip to first unread message

Patxi Alba

unread,
Oct 30, 2020, 8:56:23 AM10/30/20
to Orbeon Forms
Hi,

Performing various tests to generate a pdf, I have seen that it depends on the elements, it is generated by cutting the elements.

Is there any way to avoid it? I have forced fromato A4, letter, etc. with the same result.

Attached screenshot and xHtml for testing.

Greetings and thanks.



         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:ev="http://www.w3.org/2001/xml-events"
         xmlns:xi="http://www.w3.org/2001/XInclude"
         xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
         xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
         xmlns:map="http://www.w3.org/2005/xpath-functions/map"
         xmlns:array="http://www.w3.org/2005/xpath-functions/array"
         xmlns:exf="http://www.exforms.org/exf/1-0"
         xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
         xmlns:saxon="http://saxon.sf.net/"
         xmlns:sql="http://orbeon.org/oxf/xml/sql"
         xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
         xmlns:fb="http://orbeon.org/oxf/xml/form-builder">
    <xh:head>
        <xh:title>Un PDF llarg per veure com queda</xh:title>
        <xf:model id="fr-form-model" xxf:expose-xpath-types="true" xxf:analysis.calculate="true">

            <!-- Main instance -->
            <xf:instance id="fr-form-instance" xxf:exclude-result-prefixes="#all" xxf:index="id">
                <form>
                    <section-2>
                        <grid-2>
                            <control-1/>
                            <control-2/>
                            <control-3/>
                            <control-4/>
                            <control-5/>
                            <control-6/>
                            <control-7/>
                            <control-8/>
                            <control-9/>
                            <control-10/>
                            <control-11/>
                            <control-12/>
                            <control-13/>
                            <control-14/>
                            <control-15/>
                            <control-16/>
                            <control-17/>
                            <control-18/>
                            <control-19/>
                            <control-20/>
                            <control-21/>
                            <control-22/>
                            <control-23/>
                            <control-24/>
                            <control-25/>
                            <control-26/>
                            <control-27/>
                            <control-28/>
                            <control-29/>
                            <control-30/>
                            <control-31/>
                            <control-32/>
                            <control-33/>
                        </grid-2>
                    </section-2>
                    <section-1>
                        <grid-1>
                            <control-4/>
                            <control-5/>
                            <control-2/>
                            <control-1/>
                            <control-3/>
                        </grid-1>
                        
                    </section-1>
                </form>
            </xf:instance>

            <!-- Bindings -->
            <xf:bind id="fr-form-binds" ref="instance('fr-form-instance')">
                <xf:bind id="section-2-bind" ref="section-2" name="section-2"/>
                <xf:bind id="section-1-bind" name="section-1" ref="section-1">
                    <xf:bind id="grid-1-bind" ref="grid-1" name="grid-1">
                        <xf:bind id="control-2-bind" ref="control-2" name="control-2"/>
                        <xf:bind id="control-1-bind" ref="control-1" name="control-1"/>
                        <xf:bind id="control-3-bind" ref="control-3" name="control-3"/>
                        <xf:bind id="control-4-bind" ref="control-4" name="control-4" xxf:whitespace="trim"/>
                        <xf:bind id="control-5-bind" ref="control-5" name="control-5" xxf:whitespace="trim"/>
                    </xf:bind>
                    
                </xf:bind>
            </xf:bind>

            <!-- Metadata -->
            <xf:instance id="fr-form-metadata" xxf:readonly="true" xxf:exclude-result-prefixes="#all">
                <metadata>
                    <application-name>Proves</application-name>
                    <form-name>PDFllarg</form-name>
                    <title xml:lang="en">Un PDF llarg per veure com queda</title>
                    <description xml:lang="en"/>
                    <created-with-version>2019.2.0.201912301747 CE</created-with-version>
                    <library-versions>
                        <orbeon>1</orbeon>
                        <app>1</app>
                    </library-versions>
                    <rendered-page-orientation>portrait</rendered-page-orientation>
                    <rendered-page-size>a4</rendered-page-size>
                </metadata>
            </xf:instance>

            <!-- Attachments -->
            <xf:instance id="fr-form-attachments" xxf:exclude-result-prefixes="#all">
                <attachments/>
            </xf:instance>

            <!-- All form resources -->
            <xf:instance xxf:readonly="true" id="fr-form-resources" xxf:exclude-result-prefixes="#all">
                <resources>
                    <resource xml:lang="en">
                        <control-4>
                            <label>Camp per descuadrar</label>
                            <hint/>
                        </control-4>
                        <control-5>
                            <label>Camp per descuadrar 2</label>
                            <hint/>
                        </control-5>
                        <control-2>
                            <label>Opció 1</label>
                            <hint/>
                            <item>
                                <label>First choice</label>
                                <hint/>
                                <value>1</value>
                            </item>
                            <item>
                                <label>Second choice</label>
                                <hint/>
                                <value>2</value>
                            </item>
                            <item>
                                <label>Third choice</label>
                                <hint/>
                                <value>3</value>
                            </item>
                            <item>
                                <label>4</label>
                                <hint/>
                                <value>4</value>
                            </item>
                        </control-2>
                        <control-1>
                            <label>Opció 2</label>
                            <hint/>
                            <item>
                                <label>First choice</label>
                                <value>1</value>
                                <hint/>
                            </item>
                            <item>
                                <label>Second choice</label>
                                <value>2</value>
                                <hint/>
                            </item>
                            <item>
                                <label>Third choice</label>
                                <value>3</value>
                                <hint/>
                            </item>
                        </control-1>
                        <control-3>
                            <label>Opció 3</label>
                            <hint/>
                            <item>
                                <label>First choice</label>
                                <value>1</value>
                                <hint/>
                            </item>
                            <item>
                                <label>Second choice</label>
                                <value>2</value>
                                <hint/>
                            </item>
                            <item>
                                <label>Third choice</label>
                                <value>3</value>
                                <hint/>
                            </item>
                        </control-3>
                        <section-2>
                            <label>Interessat</label>
                            <help/>
                        </section-2>
                        <section-1>
                            <label>Descuadra</label>
                        </section-1>
                        
                    </resource>
                </resources>
            </xf:instance>

        </xf:model>
    </xh:head>
    <xh:body>
        <fr:view>
            <fr:body xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:p="http://www.orbeon.com/oxf/pipeline"
                     xmlns:oxf="http://www.orbeon.com/oxf/processors">
                <fr:section id="section-2-section" bind="section-2-bind">
                    <xf:label ref="$form-resources/section-2/label"/>
                    <component:interessatPerOmplir xmlns:component="http://orbeon.org/oxf/xml/form-builder/component/Proves/library"
                                                   xmlns="http://orbeon.org/oxf/xml/form-builder"
                                                   xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"
                                                   xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
                                                   xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi"/>
                </fr:section>
                <fr:section id="section-1-section" bind="section-1-bind">
                    <xf:label ref="$form-resources/section-1/label"/>
                    <fr:grid id="grid-1-grid" bind="grid-1-bind">
                        <fr:c x="1" y="1" w="12">
                            <xf:input id="control-4-control" bind="control-4-bind">
                                <xf:label ref="$form-resources/control-4/label"/>
                                <xf:hint ref="$form-resources/control-4/hint"/>
                        
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="1" y="2" w="12">
                            <xf:input id="control-5-control" bind="control-5-bind">
                                <xf:label ref="$form-resources/control-5/label"/>
                                <xf:hint ref="$form-resources/control-5/hint"/>
                        
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c y="3" x="1" w="12">
                            <xf:select1 id="control-2-control" appearance="full" bind="control-2-bind">
                                <xf:label ref="$form-resources/control-2/label"/>
                                <xf:hint ref="$form-resources/control-2/hint"/>
                        
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                                <xf:itemset ref="$form-resources/control-2/item">
                                    <xf:label ref="label"/>
                                    <xf:value ref="value"/>
                                    <xf:hint ref="hint"/>
                                </xf:itemset>
                            </xf:select1>
                                
                            </fr:c>
                        <fr:c x="1" y="4" w="12">
                            <xf:select1 id="control-1-control" appearance="full" bind="control-1-bind">
                                <xf:label ref="$form-resources/control-1/label"/>
                                <xf:hint ref="$form-resources/control-1/hint"/>
                        
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                                <xf:itemset ref="$form-resources/control-1/item">
                                    <xf:label ref="label"/>
                                    <xf:value ref="value"/>
                                    <xf:hint ref="hint"/>
                                </xf:itemset>
                            </xf:select1>
                        </fr:c>
                        <fr:c x="1" y="5" w="12">
                            <xf:select1 id="control-3-control" appearance="full" bind="control-3-bind">
                                <xf:label ref="$form-resources/control-3/label"/>
                                <xf:hint ref="$form-resources/control-3/hint"/>
                        
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                                <xf:itemset ref="$form-resources/control-3/item">
                                    <xf:label ref="label"/>
                                    <xf:value ref="value"/>
                                    <xf:hint ref="hint"/>
                                </xf:itemset>
                            </xf:select1>
                        </fr:c>
                        <fr:c x="1" y="6" w="12"/>
                    </fr:grid>
                </fr:section>
            </fr:body>
        </fr:view>
    </xh:body>
</xh:html>

Alessandro Vernet

unread,
Nov 4, 2020, 12:02:00 AM11/4/20
to orb...@googlegroups.com
Hi Patxi,

I am unable to run your form as-is because it uses a custom component or
section template. I've tried to replace it with something else to take some
space, but couldn't get the result that you are showing there. Could you
update your example not to use any custom XBL or section templates? And are
you also getting this with 2019.2.2?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

Patxi Alba

unread,
Nov 5, 2020, 6:08:27 AM11/5/20
to Orbeon Forms
Sorry for the question with errors.

It is with version 2019.2.0.201912301747 CE in local tomcat 9.0.33 for testing, with embedded eXistDB.

This is the code with the merged template, does it serve or do I make an example from 0?

<xh:html xmlns:xh="http://www.w3.org/1999/xhtml"
         xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
         xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
         xmlns:saxon="http://saxon.sf.net/"
         xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
         xmlns:xf="http://www.w3.org/2002/xforms"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:sql="http://orbeon.org/oxf/xml/sql"
         xmlns:ev="http://www.w3.org/2001/xml-events"
         xmlns:xi="http://www.w3.org/2001/XInclude"
         xmlns:exf="http://www.exforms.org/exf/1-0"
         xmlns:array="http://www.w3.org/2005/xpath-functions/array"
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
         xmlns:map="http://www.w3.org/2005/xpath-functions/map"
         xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
         fr:data-format-version="4.0.0">
    <xh:head>
        <xh:title>Un PDF llarg per veure com queda</xh:title>
        <xf:model id="fr-form-model" xxf:expose-xpath-types="true" xxf:analysis.calculate="true">

            <!-- Main instance -->
            <xf:instance id="fr-form-instance" xxf:exclude-result-prefixes="#all" xxf:index="id">
                <form>
                    
                    <section-2>
                        <interessat-grid-2>
                            <interessat-control-1/>
                            <interessat-control-2/>
                            <interessat-control-3/>
                            <interessat-control-4/>
                            <interessat-control-5/>
                            <interessat-control-6/>
                            <interessat-control-7/>
                            <interessat-control-8/>
                            <interessat-control-9/>
                            <interessat-control-10/>
                            <interessat-control-11/>
                            <interessat-control-12/>
                            <interessat-control-13/>
                            <interessat-control-14/>
                            <interessat-control-15/>
                            <interessat-control-16/>
                            <interessat-control-17/>
                            <interessat-control-18/>
                            <interessat-control-19/>
                            <interessat-control-20/>
                            <interessat-control-21/>
                            <interessat-control-22/>
                            <interessat-control-23/>
                            <interessat-control-24/>
                            <interessat-control-25/>
                            <interessat-control-26/>
                            <interessat-control-27/>
                            <interessat-control-28/>
                            <interessat-control-29/>
                            <interessat-control-30/>
                            <interessat-control-31/>
                            <interessat-control-32/>
                            <interessat-control-33/>
                        </interessat-grid-2>
                    </section-2>
                    <section-1>
                        <grid-1>
                            <control-4/>
                            <control-5/>
                            <control-2/>
                            <control-1/>
                            <control-3/>
                        </grid-1>
                    </section-1>
                </form>
            </xf:instance>

            <!-- Bindings -->
            <xf:bind id="fr-form-binds" ref="instance('fr-form-instance')">
                
                <xf:bind id="section-2-bind" ref="section-2" name="section-2">
                    <xf:bind id="interessat-grid-2-bind" ref="interessat-grid-2" name="interessat-grid-2">
                        <xf:bind id="interessat-control-1-bind" ref="interessat-control-1"
                                 name="interessat-control-1"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-2-bind" ref="interessat-control-2"
                                 name="interessat-control-2"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-3-bind" ref="interessat-control-3"
                                 name="interessat-control-3"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-4-bind" ref="interessat-control-4"
                                 name="interessat-control-4"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-7-bind" ref="interessat-control-7"
                                 name="interessat-control-7"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-8-bind" ref="interessat-control-8"
                                 name="interessat-control-8"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-9-bind" ref="interessat-control-9"
                                 name="interessat-control-9"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-10-bind" ref="interessat-control-10"
                                 name="interessat-control-10"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-11-bind" ref="interessat-control-11"
                                 name="interessat-control-11"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-12-bind" ref="interessat-control-12"
                                 name="interessat-control-12"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-13-bind" ref="interessat-control-13"
                                 name="interessat-control-13"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-14-bind" ref="interessat-control-14"
                                 name="interessat-control-14"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-15-bind" ref="interessat-control-15"
                                 name="interessat-control-15"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-16-bind" ref="interessat-control-16"
                                 name="interessat-control-16"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-17-bind" ref="interessat-control-17"
                                 name="interessat-control-17"/>
                        <xf:bind id="interessat-control-18-bind" ref="interessat-control-18"
                                 name="interessat-control-18"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-19-bind" ref="interessat-control-19"
                                 name="interessat-control-19"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-20-bind" ref="interessat-control-20"
                                 name="interessat-control-20"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-21-bind" ref="interessat-control-21"
                                 name="interessat-control-21"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-22-bind" ref="interessat-control-22"
                                 name="interessat-control-22"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-23-bind" ref="interessat-control-23"
                                 name="interessat-control-23"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-24-bind" ref="interessat-control-24"
                                 name="interessat-control-24"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-25-bind" ref="interessat-control-25"
                                 name="interessat-control-25"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-26-bind" ref="interessat-control-26"
                                 name="interessat-control-26"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-27-bind" ref="interessat-control-27"
                                 name="interessat-control-27"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-28-bind" ref="interessat-control-28"
                                 name="interessat-control-28"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-29-bind" ref="interessat-control-29"
                                 name="interessat-control-29"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-30-bind" ref="interessat-control-30"
                                 name="interessat-control-30"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-31-bind" ref="interessat-control-31"
                                 name="interessat-control-31"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-32-bind" ref="interessat-control-32"
                                 name="interessat-control-32"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-33-bind" ref="interessat-control-33"
                                 name="interessat-control-33"/>
                        <xf:bind id="interessat-control-6-bind" ref="interessat-control-6"
                                 name="interessat-control-6"
                                 xxf:whitespace="trim"/>
                        <xf:bind id="interessat-control-5-bind" ref="interessat-control-5"
                                 name="interessat-control-5"
                                 xxf:whitespace="trim"/>
                    </xf:bind>
                </xf:bind>
                <xf:bind id="section-1-bind" name="section-1" ref="section-1">
                    <xf:bind id="grid-1-bind" ref="grid-1" name="grid-1">
                        <xf:bind id="control-2-bind" ref="control-2" name="control-2"/>
                        <xf:bind id="control-1-bind" ref="control-1" name="control-1"/>
                        <xf:bind id="control-3-bind" ref="control-3" name="control-3"/>
                        <xf:bind id="control-4-bind" ref="control-4" name="control-4" xxf:whitespace="trim"/>
                        <xf:bind id="control-5-bind" ref="control-5" name="control-5" xxf:whitespace="trim"/>
                    </xf:bind>
                </xf:bind>
            </xf:bind>

            <!-- Metadata -->
            <xf:instance id="fr-form-metadata" xxf:readonly="true" xxf:exclude-result-prefixes="#all">
                <metadata>
                    <application-name>Proves</application-name>
                    <form-name>PDFllargSenseTemplates</form-name>
                    <title xml:lang="en">Un PDF llarg per veure com queda</title>
                    <description xml:lang="en"/>
                    <created-with-version>2019.2.0.201912301747 CE</created-with-version>
                    <updated-with-version>2019.2.0.201912301747 CE</updated-with-version>
                        <section-1>
                            <label>Descuadra</label>
                        </section-1>
                        <section-2>
                            <label>Interessat</label>
                            <help/>
                        </section-2>
                        <interessat-control-1>
                            <label>Tipuss de Persona</label>
                            <hint/>
                        </interessat-control-1>
                        <interessat-control-2>
                            <label>Tipus identificador</label>
                            <hint/>
                        </interessat-control-2>
                        <interessat-control-3>
                            <label>DNI, NIF, Altres</label>
                            <hint/>
                        </interessat-control-3>
                        <interessat-control-4>
                            <label>Nom o Rao social</label>
                            <hint/>
                        </interessat-control-4>
                        <interessat-control-7>
                            <label>Codi pais</label>
                            <hint/>
                        </interessat-control-7>
                        <interessat-control-8>
                            <label>País representant</label>
                            <hint/>
                        </interessat-control-8>
                        <interessat-control-9>
                            <label>Codi provincia</label>
                            <hint/>
                        </interessat-control-9>
                        <interessat-control-10>
                            <label>Provincia</label>
                            <hint/>
                        </interessat-control-10>
                        <interessat-control-11>
                            <label>Codi municipi</label>
                            <hint/>
                        </interessat-control-11>
                        <interessat-control-12>
                            <label>Municipi</label>
                            <hint/>
                        </interessat-control-12>
                        <interessat-control-13>
                            <label>Codi postal</label>
                            <hint/>
                        </interessat-control-13>
                        <interessat-control-14>
                            <label>Adreça</label>
                            <hint/>
                        </interessat-control-14>
                        <interessat-control-15>
                            <label>Email</label>
                            <hint/>
                        </interessat-control-15>
                        <interessat-control-16>
                            <label>Teléfon</label>
                            <hint/>
                        </interessat-control-16>
                        <interessat-control-17>
                            <label>Canal comunicacions</label>
                            <hint/>
                            <item>
                                <label>Electrònic</label>
                                <hint/>
                                <value>electronic</value>
                            </item>
                            <item>
                                <label>Postal</label>
                                <hint/>
                                <value>postal</value>
                            </item>
                        </interessat-control-17>
                        <interessat-control-18>
                            <label>Tipus de representant</label>
                            <hint/>
                        </interessat-control-18>
                        <interessat-control-19>
                            <label>Tipus de identificador repre</label>
                            <hint/>
                        </interessat-control-19>
                        <interessat-control-20>
                            <label>Identificador repre</label>
                            <hint/>
                        </interessat-control-20>
                        <interessat-control-21>
                            <label>Nom representant</label>
                            <hint/>
                        </interessat-control-21>
                        <interessat-control-22>
                            <label>Cognom 1 representant</label>
                            <hint/>
                        </interessat-control-22>
                        <interessat-control-23>
                            <label>Cognom 2 representant</label>
                            <hint/>
                        </interessat-control-23>
                        <interessat-control-24>
                            <label>Codi país representant</label>
                            <hint/>
                        </interessat-control-24>
                        <interessat-control-25>
                            <label>País representant</label>
                            <hint/>
                        </interessat-control-25>
                        <interessat-control-26>
                            <label>Codi provincia representant</label>
                            <hint/>
                        </interessat-control-26>
                        <interessat-control-27>
                            <label>Provincia representant</label>
                            <hint/>
                        </interessat-control-27>
                        <interessat-control-28>
                            <label>Codi municipi representant</label>
                            <hint/>
                        </interessat-control-28>
                        <interessat-control-29>
                            <label>Municipi representant</label>
                            <hint/>
                        </interessat-control-29>
                        <interessat-control-30>
                            <label>Codi postal representant</label>
                            <hint/>
                        </interessat-control-30>
                        <interessat-control-31>
                            <label>Email representant</label>
                            <hint/>
                        </interessat-control-31>
                        <interessat-control-32>
                            <label>Telèfon representant</label>
                            <hint/>
                        </interessat-control-32>
                        <interessat-control-33>
                            <label>Canal comunicacions representant</label>
                            <hint/>
                            <item>
                                <label>Electrònic</label>
                                <hint/>
                                <value>electronic</value>
                            </item>
                            <item>
                                <label>Postal</label>
                                <hint/>
                                <value>Postal</value>
                            </item>
                        </interessat-control-33>
                        <interessat-control-6>
                            <label>Cognom 2</label>
                            <hint/>
                        </interessat-control-6>
                        <interessat-control-5>
                            <label>Cognom 1</label>
                            <hint/>
                        </interessat-control-5>
                    </resource>
                </resources>
            </xf:instance>
        </xf:model>
    </xh:head>
    <xh:body>
        <fr:view>
            <fr:body xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xbl="http://www.w3.org/ns/xbl"
                     xmlns:oxf="http://www.orbeon.com/oxf/processors">
                
                <fr:section id="section-2-section" bind="section-2-bind">
                    <xf:label ref="$form-resources/section-2/label"/>
                    <fr:grid id="interessat-grid-2-grid" bind="interessat-grid-2-bind">
                        <fr:c x="1" y="1" w="3">
                            <xf:input id="interessat-control-1-control" bind="interessat-control-1-bind">
                                <xf:label ref="$form-resources/interessat-control-1/label"/>
                                <xf:hint ref="$form-resources/interessat-control-1/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="4" y="1" w="3" h="1">
                            <xf:input id="interessat-control-2-control" bind="interessat-control-2-bind">
                                <xf:label ref="$form-resources/interessat-control-2/label"/>
                                <xf:hint ref="$form-resources/interessat-control-2/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="7" y="1" w="6">
                            <xf:input id="interessat-control-3-control" bind="interessat-control-3-bind">
                                <xf:label ref="$form-resources/interessat-control-3/label"/>
                                <xf:hint ref="$form-resources/interessat-control-3/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="1" y="2" w="4">
                            <xf:input id="interessat-control-4-control" bind="interessat-control-4-bind">
                                <xf:label ref="$form-resources/interessat-control-4/label"/>
                                <xf:hint ref="$form-resources/interessat-control-4/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="5" y="2" w="4" h="1">
                            <xf:input id="interessat-control-5-control" bind="interessat-control-5-bind">
                                <xf:label ref="$form-resources/interessat-control-5/label"/>
                                <xf:hint ref="$form-resources/interessat-control-5/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="9" y="2" w="4" h="1">
                            <xf:input id="interessat-control-6-control" bind="interessat-control-6-bind">
                                <xf:label ref="$form-resources/interessat-control-6/label"/>
                                <xf:hint ref="$form-resources/interessat-control-6/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="1" y="3" w="3">
                            <xf:input id="interessat-control-7-control" bind="interessat-control-7-bind">
                                <xf:label ref="$form-resources/interessat-control-7/label"/>
                                <xf:hint ref="$form-resources/interessat-control-7/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="4" y="3" w="3">
                            <xf:input id="interessat-control-8-control" bind="interessat-control-8-bind">
                                <xf:label ref="$form-resources/interessat-control-8/label"/>
                                <xf:hint ref="$form-resources/interessat-control-8/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="7" y="3" w="3">
                            <xf:input id="interessat-control-9-control" bind="interessat-control-9-bind">
                                <xf:label ref="$form-resources/interessat-control-9/label"/>
                                <xf:hint ref="$form-resources/interessat-control-9/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="10" y="3" w="3" h="1">
                            <xf:input id="interessat-control-10-control" bind="interessat-control-10-bind">
                                <xf:label ref="$form-resources/interessat-control-10/label"/>
                                <xf:hint ref="$form-resources/interessat-control-10/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="1" y="4" w="3">
                            <xf:input id="interessat-control-11-control" bind="interessat-control-11-bind">
                                <xf:label ref="$form-resources/interessat-control-11/label"/>
                                <xf:hint ref="$form-resources/interessat-control-11/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="4" y="4" w="6">
                            <xf:input id="interessat-control-12-control" bind="interessat-control-12-bind">
                                <xf:label ref="$form-resources/interessat-control-12/label"/>
                                <xf:hint ref="$form-resources/interessat-control-12/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="10" y="4" w="3">
                            <xf:input id="interessat-control-13-control" bind="interessat-control-13-bind">
                                <xf:label ref="$form-resources/interessat-control-13/label"/>
                                <xf:hint ref="$form-resources/interessat-control-13/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="1" y="5" w="12">
                            <xf:input id="interessat-control-14-control" bind="interessat-control-14-bind">
                                <xf:label ref="$form-resources/interessat-control-14/label"/>
                                <xf:hint ref="$form-resources/interessat-control-14/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="1" y="6" w="6">
                            <xf:input id="interessat-control-15-control" bind="interessat-control-15-bind">
                                <xf:label ref="$form-resources/interessat-control-15/label"/>
                                <xf:hint ref="$form-resources/interessat-control-15/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="7" y="6" w="6" h="1">
                            <xf:input id="interessat-control-16-control" bind="interessat-control-16-bind">
                                <xf:label ref="$form-resources/interessat-control-16/label"/>
                                <xf:hint ref="$form-resources/interessat-control-16/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="1" y="7" w="12">
                            <xf:select1 id="interessat-control-17-control" appearance="full"
                                        bind="interessat-control-17-bind">
                                <xf:label ref="$form-resources/interessat-control-17/label"/>
                                <xf:hint ref="$form-resources/interessat-control-17/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                                <xf:itemset ref="$form-resources/interessat-control-17/item">
                                    <xf:label ref="label"/>
                                    <xf:value ref="value"/>
                                    <xf:hint ref="hint"/>
                                </xf:itemset>
                            </xf:select1>
                        </fr:c>
                        <fr:c x="1" y="8" w="3">
                            <xf:input id="interessat-control-18-control" bind="interessat-control-18-bind">
                                <xf:label ref="$form-resources/interessat-control-18/label"/>
                                <xf:hint ref="$form-resources/interessat-control-18/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="4" y="8" w="5" h="1">
                            <xf:input id="interessat-control-19-control" bind="interessat-control-19-bind">
                                <xf:label ref="$form-resources/interessat-control-19/label"/>
                                <xf:hint ref="$form-resources/interessat-control-19/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="9" y="8" w="4" h="1">
                            <xf:input id="interessat-control-20-control" bind="interessat-control-20-bind">
                                <xf:label ref="$form-resources/interessat-control-20/label"/>
                                <xf:hint ref="$form-resources/interessat-control-20/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="1" y="9" w="3">
                            <xf:input id="interessat-control-21-control" bind="interessat-control-21-bind">
                                <xf:label ref="$form-resources/interessat-control-21/label"/>
                                <xf:hint ref="$form-resources/interessat-control-21/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="4" y="9" w="5">
                            <xf:input id="interessat-control-22-control" bind="interessat-control-22-bind">
                                <xf:label ref="$form-resources/interessat-control-22/label"/>
                                <xf:hint ref="$form-resources/interessat-control-22/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="9" y="9" w="4" h="1">
                            <xf:input id="interessat-control-23-control" bind="interessat-control-23-bind">
                                <xf:label ref="$form-resources/interessat-control-23/label"/>
                                <xf:hint ref="$form-resources/interessat-control-23/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="1" y="10" w="3">
                            <xf:input id="interessat-control-24-control" bind="interessat-control-24-bind">
                                <xf:label ref="$form-resources/interessat-control-24/label"/>
                                <xf:hint ref="$form-resources/interessat-control-24/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="4" y="10" w="3">
                            <xf:input id="interessat-control-25-control" bind="interessat-control-25-bind">
                                <xf:label ref="$form-resources/interessat-control-25/label"/>
                                <xf:hint ref="$form-resources/interessat-control-25/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="7" y="10" w="3" h="1">
                            <xf:input id="interessat-control-26-control" bind="interessat-control-26-bind">
                                <xf:label ref="$form-resources/interessat-control-26/label"/>
                                <xf:hint ref="$form-resources/interessat-control-26/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="10" y="10" w="3" h="1">
                            <xf:input id="interessat-control-27-control" bind="interessat-control-27-bind">
                                <xf:label ref="$form-resources/interessat-control-27/label"/>
                                <xf:hint ref="$form-resources/interessat-control-27/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="1" y="11" w="3">
                            <xf:input id="interessat-control-28-control" bind="interessat-control-28-bind">
                                <xf:label ref="$form-resources/interessat-control-28/label"/>
                                <xf:hint ref="$form-resources/interessat-control-28/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="4" y="11" w="6">
                            <xf:input id="interessat-control-29-control" bind="interessat-control-29-bind">
                                <xf:label ref="$form-resources/interessat-control-29/label"/>
                                <xf:hint ref="$form-resources/interessat-control-29/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="10" y="11" w="3">
                            <xf:input id="interessat-control-30-control" bind="interessat-control-30-bind">
                                <xf:label ref="$form-resources/interessat-control-30/label"/>
                                <xf:hint ref="$form-resources/interessat-control-30/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="1" y="12" w="6">
                            <xf:input id="interessat-control-31-control" bind="interessat-control-31-bind">
                                <xf:label ref="$form-resources/interessat-control-31/label"/>
                                <xf:hint ref="$form-resources/interessat-control-31/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="7" y="12" w="6" h="1">
                            <xf:input id="interessat-control-32-control" bind="interessat-control-32-bind">
                                <xf:label ref="$form-resources/interessat-control-32/label"/>
                                <xf:hint ref="$form-resources/interessat-control-32/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                        <fr:c x="1" y="13" w="6">
                            <xf:select1 id="interessat-control-33-control" appearance="full"
                                        bind="interessat-control-33-bind">
                                <xf:label ref="$form-resources/interessat-control-33/label"/>
                                <xf:hint ref="$form-resources/interessat-control-33/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                                <xf:itemset ref="$form-resources/interessat-control-33/item">
                                    <xf:label ref="label"/>
                                    <xf:value ref="value"/>
                                    <xf:hint ref="hint"/>
                                </xf:itemset>
                            </xf:select1>
                        </fr:c>
                        <fr:c x="7" y="13" w="6"/>

Alessandro Vernet

unread,
Nov 18, 2020, 12:38:10 AM11/18/20
to orb...@googlegroups.com
Hi Patxi,

Thank you for the source of the form, and I can indeed reproduce the problem
with 2019.2 CE:
With_2019.png <http://discuss.orbeon.com/file/t119778/With_2019.png>

The good news is that this is fixed in the upcoming 2020.1 CE:
With_2020.png <http://discuss.orbeon.com/file/t119778/With_2020.png>

And if you'd like to do your own testing before it is released, just let me
know, and I can send you a test build.

-Alex

fal...@gmail.com

unread,
Nov 18, 2020, 6:18:21 AM11/18/20
to Orbeon Forms
Thanks for the answers.

I'd be interested in trying the new version. Could the JavaScript API be tested?

Alessandro Vernet

unread,
Nov 19, 2020, 12:52:33 AM11/19/20
to orb...@googlegroups.com
Hi Patxi,

You can download a test build of 2020.1 CE below. And were you referring to
the JavaScript embedding API? If so, that feature is PE-only (and just let
me know if you'd like to have a 2020.1 PE test build instead).

https://orbeon-builds.s3.amazonaws.com/orbeon/orbeon-forms/5729/5729.2/build/distrib/orbeon-2020.1-SNAPSHOT.202011140302-CE.zip

Alessandro Vernet

unread,
Nov 25, 2020, 3:09:14 PM11/25/20
to orb...@googlegroups.com
Hi Patxi,

Just curious: did you get a chance to try the PDF generation with the 2020.1
CE test build? If so, have page breaks improved for you in that build?
Message has been deleted
Message has been deleted

fal...@gmail.com

unread,
Nov 26, 2020, 7:13:44 AM11/26/20
to Orbeon Forms
Hi, sorry for the delay.

I just tried it and with a modification I have generated the error again.

Screenshot_1.jpg
JaggedPDF.xhtml

Alessandro Vernet

unread,
Dec 2, 2020, 12:37:19 AM12/2/20
to orb...@googlegroups.com
Hi Patxi,

Yes, I can reproduce this with form you attached a 2020.1 pre-release build.
For now I've created the issue linked below.

https://github.com/orbeon/orbeon-forms/issues/4715
Reply all
Reply to author
Forward
0 new messages