Easy way to export Vega interactive Visualization into PowerPoint (and keep interactivity) - vega

Looking to export Vega (or Vega-Lite) into PowerPoint as an interactive visualization. Are there any known libraries/techniques to do this easily? If not with Vega, are there other interactive visualization libraries you would recommend with this capability?

Interactive Vega/Vega-Lite charts are rendered via HTML and Javascript, so your question is equivalent to asking whether arbitrary HTML/JS documents can be displayed in Powerpoint. The answer appears to be yes, if you're using Powerpoint Online with the WebViewer addon; see Editable HTML, CSS and Javascript within Powerpoint Presentation?
You can create an HTML view of your chart using Vega-Embed, and then use this in the online powerpoint.

Related

Update an existing PDF

I have an existing PDF template, and I want to add some text over the top of it in a specific location on a specific page. For example, an invoice template or a scanned document.
How would I go about this? I'm using Sheets if that narrows my options.
There is a lot of documentation on how to create PDFs from documents, but nothing that will take a particular PDF and put text over it.
A bit of blue sky thinking from my side. What if you were to do the following?
Manually:
Export the PDF as an image
Resize a Google slide to be the same shape as the image
Add the image to the google slide as a background image
In Code:
Make a copy of the google slide as needed
Add your Google sheets data to the slide positioned as needed on the slide
Export the Google slide as a pdf
I mention google slides, because Google docs to not have allow background images.
Another possibility with using Google docs is to build a document that looks like your invoice, then add to it tags. In your code search for the tags and replace them with data from your sheet. Even you could use a mail merge addon to do this if you didn't fancy writing any code.
In your Google Drive right-click on your PDF;
Open With > Connect More Apps > Search docusign > Left-click blue connect button and this should take you to Docusign.
Your PDF will then open with Docusign where you can manually add a signature or text to specific places.
Alternatively... You can use App Script.
Example,
Constructing a document using HTML and replacing the specific value with a variable which is collect from a Sheet or particular location. Writing the function to do this will allow you to interpret the HTML and replace the variable with the text or possibly an image. Then it would create this as a PDF.
There are many alternative ways to do this.
Here is one example on github;
Convert Google Doc to PDF using App Script

Cocoa API to extract data from a Microsoft PowerPoint presentation

Is there any API available in Cocoa(not COCOA-Touch) for a MAC OS based app that can extract data from a Microsoft PowerPoint presentation?
I need it for a Mac OS X-based application in which I need to read the contents of a presentation.
I need to extract the slides and template separately. Specifically, I need to:
Extract slides as images.
Extract the template as a separate PowerPoint template file.
Extract only the text in the slides.
I have done lot of googling, but found only that Applescript can interact with it. But it opens the presentation and then only it interacts with the presentation.
If there’s no API available, then what could be the best way to do this?
All Microsoft Office apps have an AppleScript interface that allows at least some access to the documents' inner structures. I have no experience with PowerPoint, but Excel works fine.
You can google for Microsoft AppleScript Reference.

How to convert a PowerPoint file to wiki markup?

In order to make PowerPoint presentations 1. readable, and 2. searchable, I'd like to somehow convert them to wiki markup (we're using ScrewTurn).
I'm expecting some manual steps.
One idea was to upload a slide as a PDF to Google Docs and make it use its native doc format, and then use Google's HTML in I love wiki, but Google Docs erred when trying to convert the PDF file.
Just an idea...Not very sure about the feasibility. Maybe you can export the contents of slides by using VBA to a plain text file and just add some simple wiki markup for titiles, sections... if you don't care much about the font, style, pictures in it. I guess VBA can provide easy way to traverse and judge the objects in PowerPoint slides easier.
You'd need to create an XSLT or use another transform technology such as Linq in .NET to convert PresentationML and DrawingML (assuming PowerPoint 2007 and later) to a different mark up. To be clear, there is nothing easy about doing this - the PowerPoint format is the most complex of all the Office MLs.
You can start by looking at Eric White's blog on Transforming Open XML WordprocessingML to XHtml - this would be one way to do it (Linq). Certainly for the textual portions of DrawingML (which PowerPoint uses for text) there are similarities between that and WordprocessingML). You an also look at the OOXML->ODF converter for inspiration (XSLT).

Viewing graph in PDF

How can I show a bar graph or a pie chart in PDF? Is there any way to do this with Zend_PDF class? Please help me.
The Zend_Pdf component is a PDF (Portable Document Format) manipulation engine. It can load, create, modify and save documents.
It's a lower level module and just includes
Different drawing primitives (lines, rectangles, polygons, circles, ellipses and sectors).
No charts. At this sitepoint article you'll find a couple of php/pdf examples. An alternative would be to generate charts in a different library and then just use Zend_Pdf to assemble the document.
Some neat non-php charting libraries:
http://nubyonrails.com/pages/gruff
http://prawn.majesticseacreature.com/
http://lovelight.co.nz/blog/2009/01/integrating-google-charts-into-a-prawn-pdf/
http://code.enthought.com/chaco/

Is it possible to have PowerPoint 2007 export slides to a PDF including animations?

I'm exporting PowerPoint presentations using PowerShell. This works fine with the Office XPS/PDF exporter plugin. However, only the complete slide, without animations, are exported.
When exporting a presentation as a web page, the presentation can be run step-by-step (e.g. revealing bullet points one by one) if you check the "Show slide animation while browsing" option (under "Web options").
Is there any way to generate a PDF with one page per animation step in the presentation, through scripting? (If not - any tips on how to do it in general?)
When exporting to PDF it will export simple text and images so animation are not there :(
For method to generate a page per animation, you will have to explore Powerpoint object model and use some PDF generation library like iTextSharp to out put all transitions one by one.
The Powerpoint Object model is here