RichText with HTML markup in PDF
Hello
I've come to the point, when I need to display rich text with html markups in output PDF.
PDF is going to be printed and I don't want anything to be editable.
I've started with xsd schema for the xdp template, where particular element looks like this:
<xs:element name="note">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xfa:contentType" fixed="text/html"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
in xdp form, I am using TextField with RichText option switched on, value type: Read Only
as a test, xml data, which I am passing into it, looks like this:
<note>
<body xmlns="http://www.w3.org/1999/xhtml">
<b>Note</b>
<a href='http://somepage.com'>homepage</a>
<img src = 'pdficon.png'/>
</body>
</note>
It comes from the html snippet, which is also displayed in java web application using the wicket framework, so no problem with that in web browser.
In general, it works, I am not getting any parsing errors or other exceptions from LC.
Now, my questions are:
1.hyperlink is displayed correctly in blue color and underlined, but it is not clickable ... is it because of the ReadOnly option?
2. Obviously, image is skipped. I don't expect that to be shown in textField, also there is not real path to that image, but I wonder, is it
possible to display it in some other way? Or, to be more precise, is it possible to interpret <img src... correctly in PDF?
3. I understand from some other thread in this forum, that it is not possible to paste html snippet into PDF directly?
Many thanks
Martin
Hi Abhinav
What my question your reply does apply to? Nr. 3?
Martin
Similar Messages
-
Loading .txt with html markup in AS3.. grrrrrrr
I'm having real trouble in as3.
This used to be simple but....
I have a flash file with 5 dynamic text fields with instance names... textfield1, textfield2, textfield3, textfield4, textfield5
I really need to have one simple .txt file that someone who doesn't know anything about html or xml can easily edit INCLUDING the addition of simple formatting like <a href="">
In previous versions of AS it was as simple as referencing a txt file that included...
&textfield1=<a href="http://yourdomain.com">Hi there!</a>
&textfield2=
&textfield3=
and so on....
For the life of me I can't find an easy way of doing this. Can anyone help?
Much appreciated!
Aaronyour textfile should look like:
textfield1=<a href="http://yourdomain.com">Hi there!</a>&textfield2=abc&textfield3=def
and your a.s. should look like:
var urlLDR=new URLLoader();
var urlR:URLRequest=new URLRequest("yourtextfile.txt");
urlLDR.addEventListener(Event.COMPLETE,f);
urlLDR.dataFormat = URLLoaderDataFormat.VARIABLES;
urlLDR.load(urlR);
function f(e:Event){
textfield1.text = e.currenTarget.data.textfield1;
//etc -
Starting some time late last night (Eastern time), it appears that email notifications started getting sent with HTML markup (i.e. carriage returns are being replaced with < br />). The MIME type of the message, though, still indicates that the message is text, not HTML, so email readers don't render the tags as HTML. This makes it somewhat difficult to read these messages.
Is this an expected/ intended behavior change?
JustinAnd it appears that the formatting tags are also changed. What was asterick (*) few days back to make text bold, now it appears to be traditional mark up tag .
Aman.... -
Got 11g up and running without too much difficulty (Win2003) but I'm having trouble getting HTML content to render. For example, create a simple analysis, add a narrative view, check the "Contains HTML Markup" button, and put HTML in there, but it comes out escaped anyway?
I couldn't find much mention of this in the docs, other than the usual about XSS hardening. I verified that I have the "Save Actions containing embedded HTML" and "Save Content with HTML Markup" privileges - just to make sure, I even granted them to AuthenticatedUsers.
Any ideas?Hi All,
It seems like this problem is specific to the "Narrative View". If I try the following in the "Static View" it works like expected;
<hr size="15" width="100%" shade align="right">
In the "Narrative View" I did not get it to work yet.
Cheers,
Daan Bakboord
http://obibb.wordpress.com -
Hi!
I have problem with creating text object which should be java script (for enabling one go button on dashboard).
I have no option for enable HTML Markup.
I see in documentation that check box for that should be marked, but I don't have that box.
Is this option only available for enterprise edition?
I have version OBI Standard Edition one 10.1.3.2.1 installed.No idea, why you don\t have the check box.
Normally when you don't have the privilege, you receive a message when you want save it but you can see the check box.
To check your privileges :
Setting / Administration / Manage Privileges / Answers / Save Content with HTML Markup
You must have the right. If not, you will not see the checkbox.
Normally, if you log as administrator, you belong to the presentation server administrator and you can save content with HTML markup.
Cheers
Nico -
HTML markup in newsfeed when using SocialCommentWebPart
Hi,
I have created a brand new publishing site. I have added the SocialCommentWebPart to allow users to add comments on news. I use the default page layouts that ships with SharePoint publishing sites. The only thing I have added to the page layouts is this:
In the top of the page:
<%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
In the bottom of the page:
<SPSWC:SocialCommentWebPart ID="Comments" WebPartPropertyDisplayItems="5" ChromeType="None" runat="server" Title="Comments" __WebPartId="{B8B35A9A-1688-4E42-AE0F-8064E89CEAD7}" />
This works as expected and users are able to add comments to the pages using this page layou. Looks like this (this site collection is in norwegian so don't mind some of the strange words):
The problem is when I navigate to MySite. In MySite it renders with HTML markup like this:
Anyone knows if it's possible to solve this?I'm having the same issue with html markup in the SocialCommentWebPart appearing escaped in the MySite news feed MicroFeedWebPart.
-
Any way to make markup on pdf file with optical pen
I am looking for some way to make markups on pdf files by using a optical pen to avoid printing and then making markup with normal pen or by making them onscreen using a regular mouse.
there are optical pens in market which can make markups on new documents but i am looking to work on pdf files.I have exactly the same quesiton.
-
While downloading an eBook from internet, I found a book in a folder containing around 123 files, which is equivalent to the number of pages of the book.
My interest is to bring them together in one file so that I can read it at a time. As the interface is not comfortable with html, I also like to convert it into another more suitable file format.Hello djensen1x,
Could you please let me know what version of Acrobat are you using.
Also, tell me your workflow of combining those PDF files?
Please share the screenshot of the error message that you get.
Hope to get your response.
Regards,
Anubha -
Email with html body and a pdf attachment
Hi,
i try to send a email with html body and one attach in pdf
in release 4.6c using the SO_DOCUMENT_SEND_API1.
I've put the html in the txt table and the pdf in bin table but i obtain the following situation:
1) with only the html in the body i see a right email in html
2) with the html body AND the pdf attach i obtain a empty mail with two attach.
what can i do ? I's possible to do this.
Thanks in advance.Contact my basis guy is a problem !!
maybe a need a function similar to SX_OBJECT_CONVERT_RAW_TXT to convert raw (containing html text) into real html ?
my view V_SXCONV contain:
ALI HTM 2 SX_OBJECT_CONVERT_ALI_HTM
ALI PS 4 SX_OBJECT_CONVERT_ALI_PRT
ALI RAW 1 SX_OBJECT_CONVERT_ALI_RAW
ALI TXT 2 SX_OBJECT_CONVERT_ALI_TXT
ICS RAW 8 SX_OBJECT_CONVERT_ICS_RAW
INT RAW 8 SX_OBJECT_CONVERT_INT_RAW
OBJ HTM 2 SX_OBJECT_CONVERT_OBJ_HTM
OTF PCL 3 SX_OBJECT_CONVERT_OTF_PRT
OTF PDF 1 SX_OBJECT_CONVERT_OTF_PDF
OTF PS 2 SX_OBJECT_CONVERT_OTF_PRT
OTF RAW 9 SX_OBJECT_CONVERT_OTF_RAW
RAW SCR 6 SX_OBJECT_CONVERT_RAW_SCR
RAW TXT 7 SX_OBJECT_CONVERT_RAW_TXT
SCR OTF 1 SX_OBJECT_CONVERT_SCR_OTF
TXT INT 7 SX_OBJECT_CONVERT_TXT_INT
URL HTM 2 SX_OBJECT_CONVERT_OBJL_HTM
thanks a lot. -
What does HTML have over PDFs when working with data?
I'm doing some research for a client whose company is moving from PDFs to HTML for their in-house user interfaces.
What does HTML have over PDFs when working with data?
Thanks!
LukePDFs can indeed work with data and can be programmed with javascript. You can do some pretty interesting things with it. It is even possible to create interactive forms on the web using PDF, however it requires server-side support. As a general rule, though, PDFs are terrible as a web interface and it's far easier to work with HTML and PHP.
HTML is lightweight and PDF isn't (in case that seems like a small thing, it's actually a big negative for PDFs). The success of your PDFs will depend on the versions of acrobat your users use, and getting data in and out of the PDFs will require learning far more about Acrobat's FDF format and XML implementation than you may want to know. -
Trouble converting HTML with multiple layers to PDF
Acrobat has a great feature where you can convert a webpage with multiple layers into a multi-page PDF. I've run into a couple example web pages that are giving me problems:
1) Colorado Department of Regulatory Agencies
https://doraimage.state.co.us/LibertyIMS::/sidr6B2n5OW4s40hEk6/Cmd%3D%24%24DF63GVEbxAIjDRp jm%3BGPZ1%3D%23k2I
I try to convert a page with 28 links to PDF's that are multi-page PDF's, but it looks like all of the pages start importing into acrobat out of order. I get page 1, page 2, then it jumps to page 6, etc... What am I doing wrong or is it something with how the site is storing the images on the server?
2) Indiana License Litigation
http://www.in.gov/apps/pla/litigation/
I'm unable to select a profession/board type from a drop down menu and successfully convert the pages contained therein from HTML to PDF. Does the 'convert multple layers' feature of acrobat not support pages that are built as a "dropdown database" type search?
Thanks!you can use this html to pdf solution to convert multiple html layers to the same pdf
-
Help converting html/xhtml to pdf with bfo pdf lib or other tools?
Hi,
I need to convert from xhtml to pdf. I tried parsing it with xerces and crimson but wouldnt work. So the samples coming with big faceless pdf library dosent work. Is there any other method to convert html/xhtml to pdf - any libraries for direct conversion. BFO pdf report generator takes xml as i/p to convert to pdf.
Thanks for any helpLook here:
http://www.adobe.com/sea/products/server/pdfgenerator/ -
PDF Article with HTML Animation
Hi all,
Is it possible to have a article in pdf format but have the HTML animation from Adobe edge appear in better resolution?
Currently to get the Animation to appear with transparent background I have to build the article as a JPG, PNG article.
Is this right?Is it possible to have a article in pdf format but have the HTML animation from Adobe edge appear in better resolution?
u can have html animation inside pdf folio. Note web content overlays are not resampled which means when u zoom in ur animation will look pixelated.
Currently to get the Animation to appear with transparent background I have to build the article as a JPG, PNG article.
Does not matter as long as the original edge animation comes with transparent background. -
Bitmap image won't show after converting HTML file to pdf
I have a program which saves a technical report as a HTML file. I don't have another choice as to file type to save as. This program has a template which generates the report....and there are fields which are filled in...some text fields, and one is a company logo. Just to be clear the logo itself is not in the template, a holding place is there which points to the location of the logo on my drive. This is all set up by the program and can't be altered.
If I save the logo as a jpg, png or tiff file, the logo shows up in the final HTML report and if I use Adobe Professional (version 7.0 on Win XP) to create a pdf the image also shows up - a perfect replica of the report is created in pdf, making it convenient for printing and email.
If I save the logo as a bitmap file (which creates a higher resolution and sharper looking logo) the logo shows up in the initial HTML technical report, but when I convert this to pdf the file is not found, instead it shows as a small square red box with the error "Bad file image" or "unable to download image".
I can't understand why this would be the case as the logo is saved in the same location whether it is jpg, png, tiff or bmp. It just seems that the Adobe Pro doesn't know how to "find" the bitmap logo from the HTML template.
I did try converting the HTML document to Word but it threw the formatting out and when it was converted to pdf it cropped the page & I wasn't able to resolve this...maybe it can be done but it is a long way around in any case, particularly if steps then need to be taken to correct the formatting.
At the moment the document can be printed with success from the original format - then it's a matter of scanning the printed document in order to email. It can't be emailed directly because of the embedded information which is lost if then sent to the recipient's computer. However it would be nice if the doc could be converted to pdf which would then make it easier to transfer the file to a backup drive or for email. Any ideas? ThanksThanks for your response. Yes I did mean .bmp files.
The problem is not getting it to show in HTML - but Adobe then picking it up from there. I guess though if it is not a standard format for HTML then maybe Adobe has trouble recognising it if it is there. Also, it is possible for Adobe to convert .bmp files if they are inserted in the HTML file, but I have instead a template with the code for the location of the file rather than the graphic itself. I don't have this problem using the other file formats and getting them into pdf...it's just that the images aren't as sharp as the bmp. I have tried various formats and resolutions so if there isn't a way I can get the bmp from the HTML file into pdf I might just have to live with printing and scanning from the original. Thanks for your input, it confirms what I was thinking. I'll leave this unanswered for now in case someone else has further information. -
JasperReportIntegration tool - Report coming back as HTML instead of PDF
Using:
* Apex 4.1.1 (using EPG)
* 11G SE
* Apache FOP as print Server
* Dietmar Aust's free tool on integrating JasperReports
I've recently created a second APEX instance locally (from externally hosted instance) and copied the application (via application export) and parsing schema (using exp/imp). Everything works fine except when I try to print reports (for JasperReports) it comes up as garbled HTML instead of PDF.
In my hosted instance it all works fine.
Since the necessary packages to integrate with Jasper reports goes into the parsing schema for application, all necessary objects are imported as well during the exp/imp.
The only thing different about the hosted and my local instance is that the hosted one is XE where as my local one is SE but I don't think this is a factor at all.
The other difference is the hosted instance uses Apex Listener while mine doesn't. Again don't think this a factor as well.
My print server is enabled and working and I can print tables as PDF reports.
I am not sure if I need to enable something or missed a step needed so the reports come up as expected as is the case in hosted instance. Any hints or suggestions welcome.
Cheers.Hi Dietmar, I couldn't do it as I couldn't find that line I needed to modify. The XLIB_HTTP package goes upto line 45 and those lines referred in that post goes upto 89,90.
But then I was due to change from EPG to Web Server + Apex Listener (for other reasons) which in turn solved my issue anyway.
create or replace PACKAGE "XLIB_HTTP"
AS
/*=========================================================================
$Id: xlib_http.pks 21 2010-01-07 07:41:27Z dietmar.aust $
Purpose : Make http callouts
License : Copyright (c) 2010 Dietmar Aust (opal-consulting.de)
Licensed under a BSD style license (license.txt)
http://www.opal-consulting.de/pls/apex/f?p=20090928:14
$LastChangedDate: 2010-01-07 08:41:27 +0100 (Thu, 07 Jan 2010) $
$LastChangedBy: dietmar.aust $
Date Author Comment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19.02.2007 D. Aust initial creation
07.08.2008 D. Aust added check_get_request
display_url_raw: pass all request headers
to the client
=========================================================================*/
c_success CONSTANT CHAR (1) := '1';
c_fail CONSTANT CHAR (1) := '0';
PROCEDURE display_url_raw (
p_url VARCHAR2,
p_mime_type_override IN VARCHAR2 DEFAULT NULL,
p_charset IN VARCHAR2 DEFAULT NULL
PROCEDURE retrieve_blob_from_url (
p_url VARCHAR2,
o_blob OUT BLOB,
o_mime_type OUT VARCHAR2
FUNCTION escape_form_data (s VARCHAR2)
RETURN VARCHAR2;
FUNCTION check_get_request (p_url VARCHAR2)
RETURN CHAR;
END;Edited by: Arc_x on 11-Sep-2012 21:17
Maybe you are looking for
-
Custom button ALV to download data to excel and word.
Hai Experts, I have a requirement in which i need to add a button on the alv tool bar which has the functionality of downloading the data in the alv to word/excel/notepad.. i got the prcedure to download the data but my problemis how to
-
Backend RFC change makes all MBO's stop working
I created an MBO using a SAP RFC. I had to later change the RFC and remove one field (PRODUCT_GUID) from the return list. I then deleted and recreated the MBO with the changed RFC signature. Now, whenever I make an MBO call, I get an error saying the
-
Hi pls tell me how to create customizaton request at development client n how to transport it
-
We are testing out the DST changes that will be occurring on 3/11 on our B2B development box. We have changed the Linux date to 3/11/07. B2B has been recycled. When I drop a document in B2B, however, it is still getting a date/timestamp for the actua
-
Hello, We are planning to move to Windows Server 2012 DataCanter Edition, and we are aware it suppports unlimited guests OS and it will provide us also free multiple Activation keys, what if we install Windows Server 2008 R2 edition and Windows Serv