Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
5 subscribers
Views
1925 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
#Risk at meet the deadline# -----------------------------------------------
vikrams290
over 8 years ago
#Risk at meet the deadline#
-----------------------------------------------------
Hi all,
it is very important and because of this, my application is not going in signOff.
i am doing pdf conversion of email template, in this email template some images are there and after conversion these images come as dummy image in converted pdf and some time i am getting some special character in converted pdf .
please help me to come out from below problem:-
1. to remove the <img tag from email template in process model
2.Sometimes the whole content of the pdf becomes blue.
3. to remove the special character also.
Discription:-
------------------
we are converting email template, two times. 1st at the time of request initiation and 2nd at time of request completion. In both time i am using email template, which have some format and i want the same format in converted pdf.
i am getting above problem in converted pdf.
your every suggestion will be valuable...
OriginalPostID-216518
OriginalPostID-216518
Discussion posts and replies are publicly visible
0
vikrams290
over 8 years ago
....
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vikrams290
over 8 years ago
i am storing whole email template in a process variable and passing the same pv for conversion and type of 'pv, is "text" . i want to edit that pv's value in process model.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Matthew Kornfield
Appian Employee
over 8 years ago
Vikram, would you mind attaching a text file that has the email contents in it (i.e. the input into the PV)? Also are you using the striphtml() function?
forum.appian.com/.../Text_Functions.html
If the striphtml does not help, using substitute() might be necessary.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vikrams290
over 8 years ago
Thanks Matthew, but I have already tried with substitute() function, it is asking about "start delimiter" and "end delimiter". I am not able to figure it out that how I will find both things("start delimiter" and "end delimiter"), as whole html template is in text paragraph.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vikrams290
over 8 years ago
means first I extract the substring from text and later I substitute with <br> but it is not working. I have multiple email template and I want to do same thing with all template.
pv's text value is like html code.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Matthew Kornfield
Appian Employee
over 8 years ago
Substitute looks for a string or strings within the text and replaces it with the string that you supply, i.e. substitute ( text, find, replace_with ). It could look something like substitute(pv!htmlText,"<img","<br>"). Though this is probably not exactly what you need. Did stripHtml not help either?
forum.appian.com/.../Text_Functions.html
You could use search() and find(), the former being case-insensitive and the latter case sensitive, to find locations in the text, but this might not accomplish what you need in a simple manner. An idea could be to use split() and then remove the artifact pieces in between (the contents of the <img tag), but I wouldn't be able to say much more without seeing what the html looks like that you need to clean up.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel