Forum Replies Created
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
in reply to: German umlauts within custom JSP tag March 18, 2015 at 14:16in reply to: German umlauts within custom JSP tag March 18, 2015 at 13:48#29692
@PD4ML wrote:
Hmm… Try to add enable=”false” to
<pd4ml:transform>– it should return HTML instead of PDF. Check if all placeholders are substituted with data correctly. I would suspect some of them appear as ISO-8859-1, others as UTF-8 – encoded.Just checked the database data – everything stored as UTF..
With enable=”false” shows the valid valuesin reply to: German umlauts within custom JSP tag March 18, 2015 at 13:16#29690Nope.. The issue that header/footer shows the umlauts without any problems.. But body sometime fails with ä as I said.
The code looks like that:<pd4ml:usettf from="java:fonts" serif="Times New Roman" sansserif="Arial" monospace="Courier New" /> <pd4ml:page.header> <t:pdf-header companyName="${companyName}" personName="${personName}" address="${companyAddress}" /> </pd4ml:page.header> <pd4ml:page.footer height="50"> <t:pdf-footer partner="${invoice.partner}" /> </pd4ml:page.footer> <t:pdf-invoice invoice="${invoice}"> <jsp:attribute name="title">${title}</jsp:attribute> <jsp:body> <table class="table padded"> <tr class="header"> <th width="10%" class="first"><spring:message code="pdf.finance.invoices.executionDate" /></th> <th width="50%"><spring:message code="pdf.finance.invoices.product" /></th> <th width="5%" class="text-right"><spring:message code="pdf.finance.invoices.quantity" /></th> <th width="15%" class="text-right"><spring:message code="pdf.finance.invoices.pricePerItem" /></th> <th width="10%" class="text-right"><spring:message code="pdf.finance.invoices.vat" /></th> <th width="10%" class="text-right"><spring:message code="pdf.common.finance.amount" /></th> </tr></table> </jsp:body> </t:pdf-invoice>So inside
<jsp:body>there are issues..in reply to: How to embedd PDF? February 20, 2015 at 10:28#29668https://pd4ml.com/cookbook/pdf-attachments.htm
So I tried the inline option but pdf:attachment tag always asks for src attribute.. If I leave it empty:
<pd4ml:attachment description="attached.txt" src=""> data:base64,YSxiLGMsZCxlDQp2YWx1ZSAxLCB2YWx1ZSAyLCB2YWx1ZSAzLCB2YWx1ZSA0 </pd4ml:attachment>
I see just an icon and not the attachment. Do I do something wrong?
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
