Forum Replies Created
-
AuthorPosts
-
in reply to: How to embedd PDF? February 19, 2015 at 15:05#29667
You can embed PDFs only as an attachment using
<pd4ml:attachment>tag.Some species of TIFFs (Fax) are supported by PD4ML directly, so a regular
tag can be used.
If not, there is a way to implement a custom resource loader to convert a TIFF to PNG, GIFF or JPEG on a fly.
in reply to: Trouble understanding differencies between Linux and Windows February 19, 2015 at 14:58#29620There is a minor difference in diagnostics data of the PDFs (encapsulated to the first PDF content object):
% PD4ML version: 394 Pro DMS % JDK version: 1.7.0_51 % OS version: Linux 3.2.0-76-generic-pae % File encoding: UTF-8 % insets: java.awt.Insets[top=0,left=0,bottom=0,right=0] % size: java.awt.Dimension[width=595,height=842] % ttf: java: % pro version % PD4ML version: 394 Pro DMS % JDK version: 1.7.0_71 % OS version: Windows 7 6.1 % File encoding: UTF-8 % insets: java.awt.Insets[top=0,left=0,bottom=0,right=0] % size: java.awt.Dimension[width=595,height=842] % ttf: java: % pro version
The difference explains also a shift in the object offset table (XREF).
Also the documents should differ in DOCIDs – unique document identifiers.
Probably a better way to compare the documents would be to use PD4Document API to collect metadata (i.e. number of pages) and to extract particular page content.
PD4Document doc1 = new PD4Document(new URL("file:o:/work/testdata/testsuite/pdf/doc5enc.pdf"), password); int pagenum = doc1.getNumberOfPages(); String content = doc1.getPageContent(1); String outlines = doc1.dumpOutlines(); String author = doc1.getAuthor()in reply to: HTML entities not rendered in PDF February 16, 2015 at 12:58#29339There is no HTML entities in the code above.
Constructs like
<?php echo $src[0]; ?>are to be substituted with HTML by a PHP runtime before the document is passed to PD4ML.in reply to: HTML entities not rendered in PDF February 16, 2015 at 12:13#29338<div class="box-a"> <div class="logo-a"><img alt="Image from the forum topic: HTML entities not rendered in PDF" src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="LOGO"/></div> <section> <div class="pro-img"><img alt="Image from the forum topic: HTML entities not rendered in PDF" src="<?php echo $src[0]; ?>" alt="Product" /></div> <div class="voucher-sec"> <h2>Product Name: <?php echo $ttt=$item;?></h2> <h2><b>Order Id:</b> <?php echo $orderid; ?></h2> </div> </section> <h2 class="part-a"><strong>Coupon Code:<?php echo $coupon; ?></strong></h2> <div style="clear:both;"></div> </div>in reply to: BufferedImage via ImageIO not schow in firefox preview February 13, 2015 at 08:54#29430In the servlet code I would try also to return a content lengths in HTTP header.
For that, you would probably need to print image to a ByteArrayOutputStream, measure resulting byte array length, set headers and only after that send it to HTTP output stream.
in reply to: Page is cut when is footer and html occupy all page. February 12, 2015 at 17:33#29660Forthcoming v395 is going to address the issue. If you send us (support pd4ml com) a document sample, we could test prior to the release if it solves the numbering problem in your particular case.
in reply to: Table of Contents Numbering off – BUG?? February 12, 2015 at 17:31#29632Forthcoming v395 is going to address the issue. If you send us (support pd4ml com) a document sample, we could test prior to the release if it solves the numbering problem in your particular case.
in reply to: It seems adjustHtmlWidth doesn’t work February 12, 2015 at 17:28#29594The issue is going to be solved with the forthcoming v395.
in reply to: Mangal font support February 12, 2015 at 17:20#29640PD4ML does not support a ligaturizing of Hindi fonts.
If you point us to a good algorithm, which describes it, we’ll implement it on our code.
in reply to: Problems with bullets in list, RTF file February 12, 2015 at 17:12#29661We still have no solution.
If you take a look at the RTF document source, you can see, all the bullets are defined absolutely identical way. But in MS Word some of them appears as they are defined with Times New Roman. The issue is not reproducible with OpenOffice.
Next days we’ll try to find a workaround, however it is still not obvious how.
in reply to: automatic scaling feature is not working January 22, 2015 at 16:13#29658@don ji wrote:
Before 3.8.5fx2, if set the html width to a big number(5000) , and the html page is 1200 width, it will generate the page render as 1200 width.
After 3.8.5fx2, the page will render in PDF as if it’s 5000px long, the rendered PDF content is very small although there’s no need for scaling.Looks like the adjustHtmlWidth is broken since 3.8.5fx2 and thereafter.
“adjustHtmlWidth() is needed in situations like the following: you have a wide table, whose width is not constant (depends on the table content). In order to avoid table cut right side, you may define very big htmlWidth value and trigger adjustHtmlWidth(). Lets’s say htmlWidth=1200, actual table width is 980. In the case PD4ML will render the document assuming htmlWidth=1200 and analyze a right edge location of the content. In our case it is 980, so it will auto-reduce htmlWidth to 980.
in reply to: Can add new line in the footer January 21, 2015 at 04:26#29648When i an trying to use
tag in footer then content of new line in hide.
Only first line contents are showing.<pd4ml:footer areaHeight="18" > <table align="right" width="100%" > <tr> <td align="left" valign="top"> <font size="2"> <% out.println(financeType+"-"+fullName+"nn");%> <br> <% out.println(ourRef +" CLIENT'S SIGNATURE:..............");%> </font> </td> <td align="right" width="15%" valign="top"> <font size="2"> page $[page] of $[total] </font> </td> </tr> </table> </pd4ml:footer>
Plz reply.
in reply to: Can i remove following url from the botton of the pages? January 20, 2015 at 04:31#29646Thanks
in reply to: pdf generated empty November 22, 2014 at 14:58#29602Is there an equivalent in Domino to Port 10039 in Websphere or are ports 80 and 443 enough?
in reply to: pdf generated empty November 19, 2014 at 13:07#29601I cannot find stdout or equivalent for Domino, I am looking at the Domino console, i.e., log.nsf.
If I create an error like change http://…. to htxx://… in the URL I get error information saying the protocol is wrong.what I get is:
19/11/2014 12:58:57 HTTP JVM: f:dataEW0008.pdf 19/11/2014 12:58:57 HTTP JVM: http://www.domain.com/v4/CTR0101.nsf/lookupParent/EW0008?OpenDocument 19/11/2014 12:58:57 HTTP JVM: version: PD4ML 380fx6 Pro (eval) 19/11/2014 12:58:57 HTTP JVM: done in 140ms.
But, the PDF is blank
-
AuthorPosts
