is there any way to do this things?
i have an html and php page
now i'm pressing command+p for print that page and save as pdf
but i dont want to download that pdf as text selectable and editable.
how should do with css and html?
Related
I want to generate pdf of my webpage. Is it possible? if not then what can be done to get a pdf form which has the data from the database.
Depending on what you need this for, you can create a PDF via the Print menu in Chrome (Save to PDF is a "printer").
I have embeded froala editor in my jsp and want to save all the content typed in the editor with all the formatting and images as PDF file .
I currently have embeded the editor and pass the content using the form submit button.
On submitting the parameters to servlet that uses a itext libraries , i created the pdf but the formatted text is not displayed as formatted in the pdf file.
Instead the formatted text printed in pdf with html tags like around them.
Please help
I believe that you should mark the HTML as safe to display. This has been answered in another question https://stackoverflow.com/a/7442668/1806855
When I am adjusting content, I click on the source I want the html to be in an uglified state, so it is easier to naivagte, without having to copy and paste the html into HTMLLint, then into Sublime Text (at least once for editing, but definitely in ST2 if I plan on doing several iterations of edits), and then back into the RTF body area.
How do you get it to show the source in an indented view like this:
Maybe also how do you just edit the content in HTML format only? Any Module?
How do you get it to show the source in an indented view
Well, you can't unless it is built into the Rich Text Editor module that you have installed. CK Editor, for example, does indent the HTML nicely.
how do you just edit the content in HTML format only? Any Module?
If you want to edit the content without the Rich Text Editor, you may
disable that particular module admin/config/modules
or make plain text your default by going to admin/config/content/formats and dragging 'Plain Text' to the top of the list.
I added an AJAX html editor to my ASP.NET web app and it is working fine. However, when I save the contents of the editor to my sql database it just saves the html. I need to save this as an html document. Is there a way to programatically save the contents as a document in the database, which can then be opened using my asp.net app? Also, is there a way to use the html editor to anchor sections of the text added in the editor?
Thank you for all your help,
Most html editors only insert snippets of html, so what you can do is take the contents of the editor and add into an html document, before inserting into the database.
string.Concat('<html><body>', editor_contents, '</body></html>');
You will have to modify this to suit your specific needs, but this should get you started. To anchor text you just need to add an id to the section you would like anchored.
Go to section
<div id="someID">Section</div>
I have used a tool to convert a pdf to a swf but i need to be able to select and hightlight the pdf's contents. How would I do this using flex/action script?
Thank you!
I think you could just use ordinar HTML page to display that pdf's content + iframe to display the page. It's really easy. Check this: Flex + HTML. Enjoy!