Confluence embedded draw.io png created via confluence plugin does not contain xml metadata - confluence

When exporting my diagram created via local draw.io into a png named "sample.png"I can import it back into a blank draw.io project and the objects are parsed out allowing me to proceed with editing the diagram via draw.io
When I create a new diagram via the draw.io plugin on confluence I am unable to replicate this behaviour - instead my diagram is displayed as an image within the local draw.io diagram
My hope was to programmatically manipulate the xml that is probably "hidden" somewhere in sample.png (How to programatically extract XML data from draw.io PNG) I am searching for a way to force confluence to use the "draw.io formatted png" instead of what I assume to be a default format

It's not supported in Confluence. You would have to specifically export PNG+XML.

Related

Import an HTML file as a Confluence page

I have stored some pages that I have created in Confluence (with an account that doesn't exist anymore) as HTML files a while ago.
I would like to use them in another Confluence account. There are often lots of mathematical expressions within the texts so I cannot simply copy the content of the html files and paste them into the Confluence page (right?).
Is there a way to proceed conveniently?
I noticed that the former Confluence pages are stored as folders with multiple files in it which are mainly of the following file formats: .css and .Download.
screenshot:
You can try the following:
log into confluence
click on Create
click on Import (to the right next to Templates)
pick the right option
More official info here:
https://community.atlassian.com/t5/Confluence-questions/How-to-Export-Import-Confluence-Pages-and-Spaces-plus-Jira/qaq-p/1022504

Tableau: can a visualization be created via javascript or other language?

I am trying to create a new visualization (sheet) in a tableau online workbook via javascript API or by another language. Not by using Tableau Desktop or "manual" interaction into Tableau Online.
I know that the JS API allows me to control (filter, display, etc.) existing visualizations, and the SDK can extract data and publish, but my need is to "create" a new visualization into an existing workbook.
Is there a way to do this?
The only methods of creating Tableau content that I'm aware of is using Tableau Desktop or Web authoring of something that is already published.
I explain how to do what you're asking on the blog post linked below. You can use Python with Jinja2.
The basics ...
Create a template of your XML.
Put in the necessary Jinja2 templating language code into your template as placeholders for the data and XML that needs to be rendered by Jinja2. You can render data conditionally as well.
Create a CSV file that specifies what the Python program needs to know to create your workbooks.
Run your Python application to generate a TWB file based on your template and input file. You can also easily create TWBX by zipping the TWB and data together.
The link gives code examples and an example CSV file for specifying your input.
https://www.linkedin.com/pulse/create-tableau-visualizations-programmatically-allan-thompson

Editing a PDF with MuPDF

I am using mupdf to render PDFs in my c++ application but I also need to edit PDFs (inserting a picture for example) but I cannot for the life of my figure out how - it's not documented very well. Ghostscript says that there is an API in mupdf to modify PDFs here http://www.ghostscript.com/MuPDF.html.
Ultimately I am hoping to be able to edit PDFs using MuPDF rather than using another library.
Any help would be appreciated, thanks!
The modification API in MuPDF is for editing the structure of a PDF (such as reordering pages, adding or removing annotations, etc) at a fairly low level. The graphics in PDF are based on a "content stream" object containing the commands for drawing a page using a subset of PostScript. There are no functions for editing these graphics content streams in MuPDF.
However, if all you want to do is add an image on top of the page, you can do so by creating an annotation object for the page. You'll need to create the PDF dictionary objects for the annotation, an image object, an appearance stream to draw the image object, and hook them up to the page. You'll need a good understanding of the PDF format to do this though.
You'll want to use the latest git checkout of MuPDF since we've recently (post 1.0 release) added some convenient functions for editing objects and updating streams with new content.

To add image to an excelsheet in iphone

In my app I want to retrieve data from database and add it to an excelsheet.
The Database's data are in string and BLOB format. I have retrieve the data and added to excel sheet using the frameworks:
https://github.com/andreac/RSSheet
The problem is that I want to add image to the worksheet too.
If any one has any idea about this please help me.
The RSSheet library does not currently support adding graphics to the sheet. You'll need to do this on the server side unless you expand the RSCell class to support this.
Depending on your backend this can be done easily. In PHP I used the PHPExcel library.

Setting InfoPath form name for printing as PDF?

We have some custom print code to print an Infopath form on the user's default printer as well as a server-based PDF printer for loading into a document management system. This is working perfectly, but we would like to control the name of the generated PDF file. The PDF print utility can automatically generate a file name using various parameters such as file name, current date/time, etc. Since we cannot programmatically interface with the PDF print utility, the easiest way to control the name of the generated file would be to set the file name in InfoPath and allow the utility to append a date/time stamp.
I have tried setting the form caption as described in the forum thread here and setting the Save As file name as described in the forum thread here, but regardless, the PDF print utility still uses the default form name (Form1, Form2, etc.). Is there another way to set the form name in code?
Thanks in advance for your help!
Have you considered using an InfoPath PDF Converter that you have more control over via a Web Services API?
Have a look at the PDF Conversion Services as well as the PDF Converter for SharePoint. It deals quite well with InfoPath.
Some additional links
Converting using a Web Service call
Converting InfoPath files from a workflow.
Note that I have worked on this product, so I am obviously biased. It works great though.