Best way to print HTML page that contains embed PDF - html

I have an application where im printing some information in a modal, and formatting the information with HTML.
At the bottom of the HTML page, I have an Embed pdf.
the idea of that info is that the user needs to print it, so they print the page.
Before I have the PDF embedded I was just printing the HTML code.
Now I'm facing a problem.
When i press print on the page, the HTML code is ok on the print preview, but the Embedded PDF doesn't appear.
What will be the best option to accomplish that?
I was thinking to convert the PDF to HTML code, but if the user uploads a PDF that is an image that wouldn't work.
Any suggestion!!
Thanks
this is an example of one of the forms.
if you see i will add some HTML code and down below the PDF embedded.

Related

How do we pass PDF Hyper Link value to HTML page or ASP.NET Page

I have a lot of PDF Documents and it contains inside Hyperlinks (EX: [EMP-001] on every page.
When the user clicks the link "EMP-001" in PDF, I would like to pass the value "EMP-001" on the web page (either HTML or ASP.NET Page).
pls. guide us on how to proceed...
we are struggling to find the exact solution...

How to get data from web page and preview them in my html page?

i need to get some data from external web page (specific text between and tags in this web page source code )
and then show this data in my html.
or get part of html code of another page
then put it in my html page by a button click for examle
This is really hard if it's somebody else's web page due to CORS. However, you should be able to if it's your web site.
Use XMLHttpRequest to get the page content.
Set the container element's .innerHTML to the textual representation of the HTML.

How do you extract data from a website's HTML code when its source code doesn't contain any text that appears on the site?

I'm trying to extract data from a particular site but when I read through the html code it contains none of the text that appears on the webpage. And all the webpages have the same code as the home page. I was wondering if it is possible to 'hide' data on your webpage somehow, and how I might be able to find it.
Thanks!

birt tool dynamic text with dynamic HTML having embedded image not showing in pdf

I am trying to display HTML content in PDF using eclipse Birt. Birt has Dynamic text(HTML format) pallets where we can display clob data. Here one of my HTML content is embedded image base64. While viewing in PDF the embeded html image is not displaying instead showing error msg "The resource content not found".
Birt expert please comment - On how to show Clob data embeded image dynamic HTML !
This is not going to work out of the box. BIRT HTML content is only meant for text formatting. Neither images nor HTML tables are supported (well, HTML tables actually are working to a minimal extent).
The best solution I can think of is: Parse the HTML yourself and extract the images yourself. But be warned, that's going to be tricky!
You would create two scripted DataSets, one for the text and one for the images.
Both DataSets would receive the HTML as input parameter.
The first one would just replace embedded images with a text like "see image #N" and return exactly one row.
The second one would extract the embedded images and return the image number, its URL and embedded data.
You could then use a List item in the layout to render the images after the text.
The script code will be complicated...

convert html page into editable pdf in iOS

I want to convert any HTML page into an editable PDF with its all contents like images. I don't want to create pdf of screenshots rather an editable pdf. Any links or ideas are welcome.