How do I embed a Google Docs chart in a Joomla 2.5 custom HTML module? When I publish a chart and receive the "script" I paste it into a module and then the editor seems to strip the code out. I have tried 4 different editors and also "no editor" and it still modifies the script. Can someone help?
Google Docs offers an undocumented feature that lets you embed PDF files and PowerPoint presentations in a web page. The files don't have to be uploaded to Google Docs, but they need to be available online.
Here's the code I used to embed the PDF file:
<iframe src="http://docs.google.com/gview?url=http://www.uom.mx/programas/Kinam%20programa.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>
but you should replace the bold URL with your own address. As I mentioned, the document viewer works for PDF and PPT files.
Related
I would like to add a feature to my Django website where the user can click on a link saying "Save as PDF". I would like this link to 1) produce a slightly different version of the page the user is currently on and 2) generate a PDF file in a separate window that the user can then save to wherever he or she wants.
All of the PDF functions I came across related to Django assumed that you already had a PDF that you wanted to render. In this case though, I want to create a PDF based on the content of the current page. Any idea how to do this? Thank you.
You can try this tool WeasyPrint. You can use it with Django
Any webpage is just a HTML basically so any html to pdf library would work. But this one is specifically built for django. Hope this helps.
Documentation for django-wkhtmltopdf
As I am new to dotCMS, just wondering is it support any script through which I can upload/publish my multiple contents(i.e well structured directory) as whole. For example I have multiple text files with contents to publish how can i do this in one shot ?
I know it support dynamic content page, but seems that works on already created content/page.
There are two ways:
You can either put all the content in an Excel file and use the "import content" option of the "Add new Content" button in the dotCMS admin "Content" tab. To know what the Excel structure should be, first download a piece of the content you plan to upload by clicking on the "Export button in the same page".
The second way is to use the Restfull content API. Check the documentation on how to use it.
I have various PDF documents as blobs in the App Engine blobstore. Now, I want to preview them on a HTML page. From various other questions, I figured the HTML setup should be:
<embed src="{{ url_to_my_pdf_blob }}" width="500" height="600">
While experimenting, I found that in the SDK the get_serving_url function will not only work for images but will also work for PDF blobs. This approach unfortunately fails in production.
I looked at the example using blobstore_handlers.BlobstoreDownloadHandler but could not figure out how to wire this to my view (my app is based on Django, the HTML file with the preview is served by a Django view class).
How do I get the url of the blob?
You need to define a ServeHandler, as described here:
https://developers.google.com/appengine/docs/python/blobstore/#Python_Serving_a_blob
For examples of the implementation, see Downloaded filename with Google App Engine Blobstore.
I would like to know if Google Docs API or any other spreadsheet (xls) API or any reporting tool works with GAE, Django & application data from BigTable. In other words, I would like to generate spreadsheet with rich formatting - colors, fonts and upto 50 sheets in each file. And send this spreadsheet as E-Mail attachment to user or download using browser.
Thanks a lot,
Sandeep
I've used openpyxl to good effect with Django + AppEngine. Openpyxl can do styles and sheets and formatting and all that stuff, and saves to an .xlsx file. If you need .xls files, then perhaps have a look at something like xlwt.
If your spreadsheets are under 1MB, then they can be saved in/served with the Datastore just fine. Otherwise, you can use the Blobstore, but that would require using the AppEngine API instead of pure Django.
Is it possible to find any open source template editors.. i wanted my site users to edit the contents of module as well as css. Once they click the edit, it should open a specific module or file name.. so the users can change the css and content and then click ok. Then after refresh the change in css and content should be reflected..
I am looking for something similar to the one in Wordpress Admin panel..where you can edit different files like header.php, style.css etc..
Any available scripts or demos or plugins or examples would be very helpful, as i can customize them to my needs
You can use html editor like fckeditor or tinymce and on server side save as php file and css file.
I on my site use JQuery rte editor and JSON RPC (Ajax -> PHP).
Finally i figured out the answer.. Some of them are
Bespin,
Ecoder
Ymacs
codemirror
emacs
they allow you to embed in your site.. and allow the users to edit the template of pages.