printing to pdf problem - content too wide run out of page
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
printing to pdf problem - content too wide run out of page
Hi,
I have forms like to print in pdf format, however, the width of the form does not adjust to the size of the pdf.
some of the content run out of the page width.
How can this be fixed?
Thanks
I have forms like to print in pdf format, however, the width of the form does not adjust to the size of the pdf.
some of the content run out of the page width.
How can this be fixed?
Thanks
0 x
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi,
The PDF with has a set width which is usually set to A4. The HTML generated to generate the PDF (this is the same as the rendering to the browser) will honor any width specified in the HTML.
In the designer you can normally see whether the content will fit the PDF page. There is a 'switch to print view' button on the page toolbar. This will overlay grid lined to give you an help grid lines to indicate whether the content will fit onto the PDF.
If you have wide tables and explicit widths set e.g width: 400px;, this can make the content wider than the available width.
Do you have any widths values set in the HTML? Or maybe a table with many columns?
I have suggested to people in the past with wide forms to print the form in landscape mode if that is an acceptable solution?
Kind regards
Steve
The PDF with has a set width which is usually set to A4. The HTML generated to generate the PDF (this is the same as the rendering to the browser) will honor any width specified in the HTML.
In the designer you can normally see whether the content will fit the PDF page. There is a 'switch to print view' button on the page toolbar. This will overlay grid lined to give you an help grid lines to indicate whether the content will fit onto the PDF.
If you have wide tables and explicit widths set e.g width: 400px;, this can make the content wider than the available width.
Do you have any widths values set in the HTML? Or maybe a table with many columns?
I have suggested to people in the past with wide forms to print the form in landscape mode if that is an acceptable solution?
Kind regards
Steve
0 x
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
Hi Steve,
For my forms, the user prefer not use landscape.
when switch to print view, the form width passed the width of the A4 paper(210), however, the forms do not have a fixed pixel width on any panel or table, etc. The choice are all Maximum (use parent width)
And some of the fields in grid or table can have very long text.
Xiaoli
For my forms, the user prefer not use landscape.
when switch to print view, the form width passed the width of the A4 paper(210), however, the forms do not have a fixed pixel width on any panel or table, etc. The choice are all Maximum (use parent width)
And some of the fields in grid or table can have very long text.
Xiaoli
0 x
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi,
Are you printing these in report mode?
For the long label texts you could try applying a CSS3 style:
I am not sure if this works.
Steve[/code]
Are you printing these in report mode?
For the long label texts you could try applying a CSS3 style:
Code: Select all
white-space: pre-wrap;
Steve[/code]
0 x
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi,
I think the best thing is to export the form and send it to support@ebasetech.com
I will take a look and see if I can help you with this.
Steve
I think the best thing is to export the form and send it to support@ebasetech.com
I will take a look and see if I can help you with this.
Steve
0 x
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi Xiaoli,
I responded to the email asking you to export all the entities that are associated to the form e.g Presentation Template, Business views etc...
I cannot get the TEST form to run without all these bits. I could write these myself, but that will require more time and guess work with what is in your presentation template.
If you could repackage this for me, that will be great.
Also, in the email could you show me the text you are testing with?
Kind regards
Steve
I responded to the email asking you to export all the entities that are associated to the form e.g Presentation Template, Business views etc...
I cannot get the TEST form to run without all these bits. I could write these myself, but that will require more time and guess work with what is in your presentation template.
If you could repackage this for me, that will be great.
Also, in the email could you show me the text you are testing with?
Kind regards
Steve
0 x
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
An A4 PDF is 595 pixels wide.
The problem with the form is that there are 3 panels with explicit widths set on them, these values are:
250px
250px
280px
The width of the 3 panels is greater than the width of the PDF width.
I changed the panel widths to percentages and changed the container panel's layout property to fill the content.
Steve
The problem with the form is that there are 3 panels with explicit widths set on them, these values are:
250px
250px
280px
The width of the 3 panels is greater than the width of the PDF width.
I changed the panel widths to percentages and changed the container panel's layout property to fill the content.
Steve
0 x
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
Hi Steve,
This is replying your email regarding Test form. The CSS is not important.
I just created a test business project and created a test form, then one text area field with maximum length 1024, then a print page - the copy of the first page. then a print button on first page. When click it generate pdf using print page and display.
I input a long text to the text area fields. then click print, the pdf only show part of the text.
Xiaoli
This is replying your email regarding Test form. The CSS is not important.
I just created a test business project and created a test form, then one text area field with maximum length 1024, then a print page - the copy of the first page. then a print button on first page. When click it generate pdf using print page and display.
I input a long text to the text area fields. then click print, the pdf only show part of the text.
Xiaoli
0 x
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
Hi Steve,
I know what is wrong with the test form. I need put a panel to the text field and give it a fixed width. Then it is ok.
However, my intake form still have problem with printing.
Some text fields still run out of page even I put it under a panel with fixed width e..g 300px.
I have send you the form to support email box.
Can you take a look?
Thanks,
Xiaoli
I know what is wrong with the test form. I need put a panel to the text field and give it a fixed width. Then it is ok.
However, my intake form still have problem with printing.
Some text fields still run out of page even I put it under a panel with fixed width e..g 300px.
I have send you the form to support email box.
Can you take a look?
Thanks,
Xiaoli
0 x
Who is online
Users browsing this forum: No registered users and 11 guests