Forum Replies Created
- 
		AuthorPosts
- 
		
			
				
in reply to: General questions / FAQ November 26, 2013 at 05:47#26893Hi All, 
 If there is a ‘&’ in the content then the character next to the ‘&’ is missing in the PDF after converting to PDF using pd4ml.Please help me to resolve this issue. Thanks, 
 Ajitin reply to: Automated testing – Random values November 26, 2013 at 10:27#29445Would you have an idea when this would be released? 1 month, 6 months, a year? in reply to: Automated testing – Random values November 27, 2013 at 08:05in reply to: Problem with ‘&’ character November 27, 2013 at 08:16#29448The issue is not reproducible with the actual versions of PD4ML. 
 Which version do you use?in reply to: Automated testing – Random values November 27, 2013 at 09:12#29447Awesome thanks. in reply to: Images with # in URL Don’t Render December 3, 2013 at 19:05#29400v385fx3 solves the issue. in reply to: Images with # in URL Don’t Render December 4, 2013 at 05:44#29401Thanks, the new version works great! I appreciate you addressing this. in reply to: HTML/CSS rendering issues December 10, 2013 at 09:45#26894Hi Support, we are using pd4ml to generate pdf from html . but we are facing performance issue 
 at render method .. its taking 7 mins for 5MB file .below is my code please help us to overcome this issue .============================= 
 java.io.FileOutputStream fos = new java.io.FileOutputStream(fileName);
 PD4ML pd4ml = new PD4ML();PD4PageMark header = new PD4PageMark(); header.setAreaHeight(-1); header.setHtmlTemplate(pdfHeader); PD4PageMark footer = new PD4PageMark(); footer.setAreaHeight(-1); footer.setHtmlTemplate(footer); 
 pd4ml.setPageSize(PD4ML.A4);pd4ml.interpolateImages(true); 
 pd4ml.overrideDocumentEncoding(“UTF-8”);
 pd4ml.generatePdfa(true);
 pd4ml.generatePdfForms(true, “Courier New”);
 pd4ml.enableImgSplit(false);
 pd4ml.setPageInsets(new Insets(10,40,10,40));
 pd4ml.setHtmlWidth(1080);
 pd4ml.adjustHtmlWidth();
 pd4ml.useTTF( “java:Fonts”, true );//./WebContent/WEB-INF/lib/fonts
 pd4ml.setDefaultTTFs(“Segoe UI”, “Arial”, “Courier New”);pd4ml.generateOutlines(true); 
 pd4ml.enableImgSplit( false );pd4ml.setPageHeader( header ); 
 pd4ml.setPageFooter(footer);pd4ml.render(new StringReader(pdfString),fos); ================== Thanks & Regards, 
 Vinay Choudharyin reply to: pdf generation performance issue December 10, 2013 at 10:14#29449A conversion duration primarily depends on HTML/CSS file size and its structure. So an HTML sample would help to analyze the issue in details. Typical reasons of such performance issues: – Huge CSS stylesheet: as we seen a couple of times, some “web optimised” HTML documents may include 2-3 Mb CSS style, tuned to suppress known banner exchange engines. The style makes no sense for HTML document layout, but makes CSS parser/runtime to spend quite a lot of resources to maintain the styles and it significantly slows down style resolving for a particular HTML element. Unfortunately CSS parser we use is not optimised to deal with extra big stylesheets. – The entire document layout is built as a single table with tens or hundred thousands of cells. If the table is nested to another table – rendering takes 3 times longer; 2 levels of nesting – 9 times longer etc. For big documents we recommend to split a huge table to a sequence of smaller ones and avoid a table nesting. If you are interested, a technical background of that is following: each cell width is calculated 3 times for MIN, MAX and optimal values. So every nesting level multiplies the “layouting” approaches to 3. If, lets say a content of a cell of a particular table row does not fit a column width calculated before, it needs to start table layouting again, taking into account a new condition. in reply to: pdf generation performance issue December 10, 2013 at 10:40#29450Hi Support, i have attached the html file which we are using to generate pdf . please have a look and guide me to solve the problem . Thanks, 
 Vinayin reply to: pdf generation performance issue December 12, 2013 at 13:12#29451I checked the document sources. Well, as I suspected the document layout is built as a single table. The table cells also include multi-nested tables (up to 4 nesting levels). It should help a lot if by the HTML document generation (hopefully you have a control over the process) you can omit the “main table” – just output its nested content. in reply to: Troubleshooting January 14, 2014 at 14:23#26895I am trying to make PDF&RTF files from html page. in example there is a string to set page orientation: 
 pd4ml.setPageSize( landscapeValue ? pd4ml.changePageOrientation( format ): format );it work perfect with PDF, but have no effect with RTF format. 
 What can be wrong?P.S. I am using PD4ML 385 Pro in reply to: changePageOrientation in RTF January 14, 2014 at 14:31#29452For the time being, PD4ML does not support the feature by RTF output. Also I am not sure if RTF file format implements such a feature. Do you have an RTF sample (probably created with MS Word or OpenOffice) to confirm it is possible? in reply to: changePageOrientation in RTF January 15, 2014 at 05:39#29453Thank you for your fast answer Attached file is .RTF, but it have landscape orientation in Word 2007 and OpenOffice 4.0.1 at my computer in reply to: changePageOrientation in RTF January 15, 2014 at 12:25#29454I guess I misunderstood you first time. PD4ML does not support a dynamic format change: for example, the first page is portrait, the second is landscape. To avoid possible code errors, try to define format explicitly, without conditions: Portrait: 
 pd4ml.setPageSize( PD4Constants.A4 );Landscape: 
 pd4ml.setPageSize( pd4ml.changePageOrientation( PD4Constants.A4 ) );
- 
		AuthorPosts

