Gerry Eigo
Gerry Eigo

Reputation: 3

PDF rendering in onenote

I am creating onenote pages using the microsoft graph api. I try to display a pdf using the method found on the site https://learn.microsoft.com/en-us/graph/onenote-images-files#add-images-of-pdf-file-contents. However, it comes only as an attachment and does not render the pdf, like if I did a printout insertion in onenote. Has anyone encountered this and has anyone have some sample code if you did? Thanks

Upvotes: 0

Views: 265

Answers (1)

Steven Buehler
Steven Buehler

Reputation: 26

The tag to embed the PDF as an image is <img data-render-src="name:FileBlock" /> (replace name:FileBlock with whatever the name of that form part is).

Upvotes: 0

Related Questions