Convert a OneDrive file to PDF or JPG
convert_onedrive_fileConvert OneDrive files (PowerPoint, PSD, raw camera, video) to PDF or JPG using Microsoft's server-side conversion, preserving original quality. Set width/height for JPG output.
Instructions
Turn a file already in the user’s OneDrive into a PDF or a JPG — Microsoft does the conversion on its own servers, so nothing is re-encoded here and nothing is lost in a screenshot. It reads about 130 source formats, which is the point: PowerPoint and Word decks, Excel, Photoshop PSD, Illustrator AI, Sketch, 3D (fbx/glb/obj), video (mp4/mov/webm), HEIC from an iPhone, and the raw camera formats (CR2, NEF, ARW, DNG) that nothing else in this product can open. Use it to turn a client’s deck into images you can actually put in an ad, to get a usable JPG out of a designer’s PSD or a photographer’s raw file, or to hand someone a PDF of a spreadsheet. CONVERTING TO JPG REQUIRES BOTH width AND height — Microsoft refuses the call without them. The result is stored at a durable Hermoso URL you can pass straight to a render or a post; Microsoft’s own conversion link expires within minutes, so do not hand that one to anyone. Needs OneDrive connected — no new permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | REQUIRED for jpg — output width in pixels | |
| fileId | Yes | the OneDrive item id, from list_onedrive_files | |
| format | No | default pdf | |
| height | No | REQUIRED for jpg — output height in pixels |