Handling CR/LF and double quotation in gererating pdf file

98 views
Skip to first unread message

al...@wedosoft.net

unread,
May 28, 2015, 6:44:58 PM5/28/15
to suppor...@runmyprocess.com
Hi Team,

I applied pdf creation process in our customer system. It works well almost cases. But sometimes, when a user input quotation mark or enter key, it generate error on making pdf file.

Regarding UX, it needs quotation mark and enter key or any mark in compse form. So we can't recommend to restrict input these characters. How to handle these character to make pdf file?

Regards,
Alan.

al...@wedosoft.net

unread,
May 31, 2015, 11:47:51 PM5/31/15
to suppor...@runmyprocess.com, al...@wedosoft.net
Hi, If it must show value of variable like this gererating pdf file,
{
"my_var_main": {

"variable1": "* aaa

bbb

ccc


"
}
}

How to show CR/LF in pdf file?

Please check this up.

Sweta Suman

unread,
Jun 1, 2015, 5:11:00 AM6/1/15
to suppor...@runmyprocess.com, Alan Lee
Hi Alan,

I tried above code provided by you and its working fine on my end.(refer attachment)

Kindly, let us know how you have configured and error you are getting on console .




--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/20ba0858-329f-4308-b5bc-d5b7f4159aba%40runmyprocess.com.



--
Thanks,
Sweta 
Fujitsu RunMyProcess Support
pdf_output.PNG

al...@wedosoft.net

unread,
Jun 1, 2015, 11:18:02 PM6/1/15
to suppor...@runmyprocess.com, al...@wedosoft.net
Hi Sweta,

I tried to figure out new line value in pdf document. As you show sample document, all new line value is removed in pdf document.

* original value
aaa

bbb

ccc

* pdf document value
aaa bbb ccc

Is it possible to do like this on generation pdf file?

Regards,
Alan.

Sweta Suman

unread,
Jun 2, 2015, 6:21:58 AM6/2/15
to suppor...@runmyprocess.com, Alan Lee
Hi Alan,

Add below block in XSL to allow Line break and white spaces for values entered from Web Form.

<fo:block wrap-option="wrap" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="preserve"/>


Excerpt from XSL:

<fo:block space-after="10pt" space-after.conditionality="retain" line-height="1.3190500000000002" font-family="Calibri" font-size="11pt" language="FR" xmlns:st1="urn:schemas-microsoft-com:office:smarttags">
<fo:block wrap-option="wrap" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="preserve">
<fo:inline>
<fo:inline font-weight="bold">
<fo:leader leader-length="0pt" />Varaible:<fo:leader leader-length="0pt" /></fo:inline> <xsl:value-of select="variable"/>
</fo:inline>
</fo:block>
</fo:block>


Hope this helps you.


Lee, Woo-Seok

unread,
Jun 4, 2015, 4:36:02 AM6/4/15
to Sweta Suman, suppor...@runmyprocess.com
Hi Sweta,

Thanks for your comments. I'll try as you guided.

Thanks again,

Regards,
Alan.
Reply all
Reply to author
Forward
0 new messages