PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Text running off the page and same email content repeating
   PostPosted: 19 Apr 2013, 13:48 
The text in the email is running off the page.Also the converted PDF has email content repeating.Sample file attached.Please help to resolve the issue.


Attachments:
Text running off the page.zip [40.98 KiB]
Downloaded 582 times
  Subject: Re: Text running off the page and same email content repeating
   PostPosted: 19 Apr 2013, 21:32 
In order to make the text fit the horizontal space try to increase pd4ml.setHtmlWidth() parameter.

See http://pd4ml.com/cookbook/pdf_page_formatting.htm for more details.

The content is repeating, because the MIME message includes two email versions: text only and HTML.


  Subject: Re: Text running off the page and same email content repeating
   PostPosted: 22 Apr 2013, 11:49 
1. If I increase the pd4ml.setHtmlWidth() parameter , this problem will be cured only for this file or for all the DXL files?

2. I don't want two email versions.Is it not possible to suppress the HTML version?Why only for specific files has this porblem?


  Subject: Re: Text running off the page and same email content repeating
   PostPosted: 22 Apr 2013, 15:27 
1. htmlWidth is a conversion parameter. If you change it for particular conversion call - it impacts the only conversion result. If you change it for all conversions (permanently in your agent code, for example) - it will impact all conversions.

In principle, you may measure the document right side edge with a fake conversion call (http://pd4ml.com/cookbook/pd4ml_conversion_status.htm ) and if it exceeds the default htmlWidth - increase its value.

Another approach would be to limit generated HTML width in XSL. Currently it is set to stretchable value "100%". Set it absolute in "px", more-less matching your htmlWidth parameter value.

...
<body>
<pd4ml-page-footer>
<table width="100%">
		<tr>
		<td>Page $[page] of $[total]</td>
		</tr>
</table>
</pd4ml-page-footer>
<div>
<table width="100%">
...


If the document has, for example, an image, which is wider than the table width/htmlWidth - the trick do not help.

2. DXL format (especially its embedded objects, like bitmaps, attachments, mime-messages) is not well-documented. We workaround problems, learning them by example, but unfortunately we cannot be sure we covered all the species of DXL's MIME format. In the particular case you faced with something, that does not match the patterns we worked on.


  Subject: Re: Text running off the page and same email content repeating
   PostPosted: 23 Apr 2013, 13:32 
Thanks.For the issue 1 I will try the solution you suggested and get back to you.For issue 2 is there no way to fix this type of issues?


  Subject: Re: Text running off the page and same email content repeating
   PostPosted: 06 May 2013, 10:54 
Thanks.Yes the solution provided by you really helped to overcome the pagewidth issue but the font size of the PDF content decreased.Is there any way to increase it?


  Subject: Re: Text running off the page and same email content repeating
   PostPosted: 07 May 2013, 16:32 
If some content does not fit a page width, you've got two options: either to extend htmlWidth (in the case the content is scaled down) or to narrow the content, using HTML means.

If the downscaling of the content is not acceptable, just enclose the content into a table and set the table width more-less matching htmlWidth parameter.

In DXL scenario the enclosing table is already there - just find it in XSL and change width="100%" to width="800", for example.



[Reply]     [ 7 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share