Microsoft OneNote Graph API page creation with background - microsoft-graph-api

I am using the Microsoft one-note graph API for creating pages according to their demand in HTML.
Is there any possibility to create a page with a background image? Because I would like to use it as the background of a fillable form.
I should be filled by handwriting with a pen on a tablet in the OneNote app.
Or are there any other, better approaches?

You can definitely create pages - see this link.
The background can be an image or pdf. I however much prefer to use a template page that you create yourself (directly in one note) and copy using page: copyToSection. This allows you to use the added functionality of onenote such as ruled pages, setting images as backgrounds, etc.

Related

OneNote API, Unknown User

I'm looking for a solution to hide (or at least change) the "UU" (Unknown User) in the Microsoft OneNote application, when the page has been feed using the Microsoft Graph API with an application access (The application edits the OneNote on his own).
small view of what appends
when right clicking on "UU"
I know there is a solution to disable it on each page in the OneNote app, but my app generates a lot of pages.
Anyone who have achieve disable or change this ?
This is by design. As there isn't an authenticated user, there is no way for OneNote to know who to attribute a given change too.
Assuming you're creating these pages in a small number of notebooks, you can select "Disable History for this Notebook" under the Recycle Bin and turn off versioning/tracking altogether.

Send email as PDF in ruby on rails in Typo3

I have an web-application in RoR which calculates some energy values and investment money. I use ajax to send the data from the web-browser to the server. It is something like this: Browser-server-Browser-Server-Browser
This web-application is already integrated in typo3 and I want to implement a PDF button to send the results per email (in other words, a photo of the page with the results).
I have heard an option would be to generate some links in RoR to be used in typo3 (when clicking on it, it would open exactly the web-application with the results already calculated). But as a newbie, I do not really know which would be the best approach.
Any recommendation?
A screenshot of the page can be done client-side:
http://html2canvas.hertzen.com/
You could even have another page with the same results that you use only for the rendering of the result page what you use for making a clean screen-shot (you might not want to have the footer, menu and other elements on that page, only the results)
Once you have your screenshot, you can upload it to your server where you can use it to create a PDF of that image and then send it with any mail API you prefer to use.
info about TYPO3's mail api can be found here:
https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Mail/Index.html

How to implement an interactive PDF in iOS

Here im hitting my head againt the wall.
My client provided a pdf with buttons(just like buttons,when user tap on button,it will load next page and previous page etc.).
This buttons will work only when we open it in adobe reader.
I tried the QLpreviewview,quickview but it is not working,all what i can do is just to load the pdf in the webview.
Can anyone please help me in how to load an interactive pdf in iOS.
Thanks in advance.
Have a look at PSPDFKit, it is the most advanced framework I've found for PDFs in iOS. They have an impressive list of customers as well.
It is a bit pricy though, but you have the option to get the Source Code too if you need to modify anything. Could be worth it if your client need that kind of performance and other features as well.
(I am not in any way affiliated with PSPDFKit)
The limitations are due to the capabilities (or non-capabilities) of the PDF viewer used.
Currently the leading PDF viewer on iDevices is PDFExpert by Readdle. Adobe Reader for iDevices is weaker, but can deal to some extent with form elements.
For page navigation etc. you might use links instead of button fields (as far as you can live with the capabilities of links, and not use JavaScript). Links are said to be handled properly with many PDF viewers.
You may have to require certain PDF viewers on instructional level, because you don't have control over the viewer used by the actual user. And, as you noticed, many PDF viewers are simply too dumb do deal with active elements.
Another approach would be looking at PDF-to-HTML5 converters, and serve HTML5 from a server.

Including graph images in an email sent from Application

I'm using Core Plot for charting in my app. One of the use scenarios for the app requires me to implement sending emails with the charts - from the default email client.
I'm wondering what would be the best way to implement it - as in a single email there could be as many as 40 charts included... I could render the chart, then use the contents of its view as CoreGraphics context and, I guess, generate CGImage and UIImage from there, then somehow include it in an email... but I'm wondering if there isn't a simpler way to achieve it?
One option would be, of course, to use Core Plot for the in-app plotting, and in the email use some online library for the plots - like Google Charts (so, instead of having the images attached or inline in the mail, I could just use <img src="..." /> instead - but I'm not sure if it's what I should really do (I don't want to use Google Chart entirely for my charting, as the app should be usable without internet access)...
What would be the best way to generate the charts for sending in an email?
(Or maybe there's a better way to send it? Something like generating a PDF report with graphs inside?)
If you already have Core Plot graphs set up, just use [graph imageOfLayer] to get a UIImage of the graph. You can use this to create an image for the email or draw into a PDF context. You can also export the graph to PDF directly by using [graph dataForPDFRepresentationOfLayer].

How to recreate an image preview from outside websites?

Similar to Facebook's UI, I am attempting at generating a preview image from an external linked website. So that when a user types in a url he is linking, the UI will by default, scan that site for an img and scrape a preview thumb.
Is there a specific name for this technique? Or can anyone point me in the direction of learning this?
Thanks so much!
Its called scraping. There is a library called scrAPI.
Here is a code example http://crunchlife.com/articles/2007/08/13/code-snippet-ruby-image-scraper
There are a couple different options when it comes to page scraping. Another one to check out would be nokogiri, http://nokogiri.org/. You can find tutorials on how to use it at http://nokogiri.org/tutorials.
Instead of grabbing an image from the site, why not grab the image of the entire page? You could make use of a free screenshot service like http://www.websnapr.com/ or http://www.thumbshots.com/ among others. In one application, I use that for my preview image, and use nokogiri to scrape the page title and description. Just an idea.

Resources