Fairmount College is a fictional company. It was made up to show how Filestack works in education, so the firm, its people and its figures are invented.
What powers it is real. Every upload, page count, page render and marks file in Fairmount College is a real call to the Filestack API.
View source on GitHubWhat Is PDF to Image Conversion for Marking?
PDF to image conversion turns one page of a PDF into a picture a browser can draw on. Filestack renders any page of a stored PDF as a PNG when your app asks for it by URL, the lecturer marks it on a canvas, and the marks save to Filestack as their own transparent file.
Download and annotate
- DownloadA copy on the lecturer's disk
- Desktop editorMarks written into the file
- Re-uploadA second version to track
Mark the page image
- Page as PNGRendered by URL
- CanvasMarks drawn in the browser
- Marks fileSaved on its own handle
- Hand-in
- The picker, from the device, a link, Google Drive, Dropbox or OneDrive
- Page count
pdfinforeturns the pages, paper size and encryption of a stored PDF- Page image
output=format:png,page:N,density:150renders one page- Display size
resize=width:1600,fit:maxcaps the width for the marking screen- Marks
- A transparent PNG the size of the page, uploaded with
client.upload - Original
- The submission keeps the bytes the student uploaded
- Plans
- Format conversion and resize on every plan. Pricing
- Demo source
- Fairmount College, a Next.js app. View on GitHub
The Page Is a URL
To convert a PDF page to an image with Filestack, write the page number into an output task in front of the file’s handle. Filestack renders it on the first request and serves it from the edge cache after that, with one stored PDF behind every page.
cdn.filestackcontent.comThe Filestack CDNoutput=format:png,page:1,density:150Page 1 as a PNG at 150 DPIresize=width:1600,fit:maxCapped at 1600 pixels wideHANDLEThe handed-in PDF
pages- How many page URLs the marking screen offers.
pagesize- The paper and its size in points, for laying the canvas over the page.
encrypted- Whether the PDF is locked, so the app can ask for an open copy.
"pages": 2,
"pagesize": { "paper": "A4", "width": 595.276, "height": 841.89 },
"encrypted": false,
"protected": false
}
Inside Fairmount College, a Coursework Portal Built on Filestack
Fairmount College is a demo coursework portal built on Filestack and Next.js. The college is invented and every file call is real: work is handed in through the picker, each page renders as an image, the lecturer marks it, and the marks save as a file.
The picker takes a phone photo, a scan or a PDF from the device, a link, Google Drive, Dropbox or OneDrive, and returns the stored file's handle.
pdfinfoon the stored PDF returns its page count, so the marking screen knows how many pages to offer. The count is cached, since a handle's pages stay fixed.A PDF page is written into an
outputtask and capped in width; an image is resized. The lecturer draws on a canvas laid over the result.The canvas exports a transparent PNG the size of the page and uploads it to Filestack. The submission keeps one handle, the marks get another, and the browser stacks the two.
const picker = client.picker({
accept,
maxFiles: 1,
fromSources: ['local_file_system', 'url', 'googledrive', 'dropbox', 'onedrive'],
onUploadDone: (response) => setFile(toStoredFile(response.filesUploaded[0])),
});
await picker.open();
const response = await fetch(cdnUrl(handle, ['pdfinfo']), {
cache: 'force-cache',
});
if (!response.ok) return null;
const { pages } = await response.json();
return typeof pages === 'number' && pages > 0 ? pages : null;
}
if (isPdf(file.mimetype)) {
return cdnUrl(file.handle, [
`output=format:png,page:${page},density:150`,
'resize=width:1600,fit:max',
]);
}
return cdnUrl(file.handle, ['resize=width:1600,fit:max']);
}
const overlay = await uploadImageBlob(blob, `marks-page-${page}.png`);
// lib/filestack-client.ts
export async function uploadImageBlob(blob, filename) {
const client = await filestackClient();
const file = new File([blob], filename, { type: 'image/png' });
return client.upload(file);
}
What In-Browser Marking Needs Behind Every Page
Marking in the browser needs intake from phones and drives, a PDF renderer, page images at screen size, thumbnails, storage for every mark layer and a CDN. Filestack renders and stores; your app keeps the canvas, the score and the class list.
Build a PDF Renderer
Ask for the Page by URL
Your app keeps the canvas, the score and the comments.
Tour the Fairmount College Portal
Hand work in to Fairmount College as a student, then sign in as the lecturer and mark it on the page.
Run In-Browser Marking in Production
In production, submissions sit behind signed URLs, page images are requested as the lecturer turns each page, and every mark layer is stored against its submission and page number.
Sign every submission URL
Policies scope a file to a user, a session or an expiry.
One mark layer per page
Store the overlay's handle against the submission and the page number.
Keep the strokes
Save the strokes as JSON beside the overlay, so a page can be edited later.
Page through by hand
When
pdfinfois unavailable on the account, the editor lets the lecturer page through by hand.Thumbnails from page one
outputat density 72, cropped square, for list rows.Straighten phone photos
Transformations UI crops a photo of a handwritten page before the upload, as a marketplace add-on.
<img src="https:/
alt="Page 1 of the submission" />
<img class="marks" src="https:/
alt="The lecturer's marks on page 1" />
</div>
"submission_png": 179,
"page_for_marking_png": 194,
"marks_layer_png": 69,
"list_thumbnail": 1.8
}
Ways to Mark Student Work Compared
Filestack page images let lecturers mark in your own app while the student’s file stays as uploaded. A desktop PDF editor writes marks into a downloaded copy, and an LMS annotation tool marks work inside the LMS.
| Desktop PDF editor | LMS annotation tool | Filestack page images | |
|---|---|---|---|
| Where marking happens | The lecturer's computer | Inside the LMS | Your app, in the browser |
| The student's file | A marked copy replaces it | Stored by the LMS | Kept as uploaded, marks on their own handle |
| Phone photos and scans | Converted by hand | Set by the LMS | Photos, scans and PDFs through one picker |
| Pages on a phone | The full PDF | The LMS viewer | A page image at the width you request |
| Turnaround | Download, mark, upload | Inside the LMS | Mark and save on one screen |
An LMS annotation tool suits a course that runs entirely inside one LMS.
Page-Image Marking Beyond Coursework
Exam boards, tutoring platforms, legal teams and architects mark up documents in the browser, and each takes the same page image and mark layer.
Exam script marking
Mark each scanned page and keep the script as written.
outputresize
Tutoring feedback
Return a student's worksheet with the tutor's marks on it.
output
Contract redlines
Mark clauses on the page and keep the signed original.
outputpreview
Drawing markups
Circle a detail on a drawing sheet for the site team.
outputrotate
Form review
Check a scanned form behind a signed link.
outputsecurity
Proofreading
Mark corrections on a typeset page for the author.
output
Turn any page of any PDF into an image your app can mark.
- SOC 2 compliant
- Most teams ship their first upload within minutes
- Trusted by 100,000+ applications
PDF to Image for Coursework FAQs
How do I convert a PDF page to an image?
Write the page into an output task in the CDN URL, such as output=format:png,page:2,density:150, in front of the file’s handle. Filestack renders that page as a PNG on the first request and caches it at the edge.
Can students hand in work from a phone?
Yes. The picker uploads photos, scans and PDFs from a phone or a laptop, and it also reaches Google Drive, Dropbox and OneDrive. Uploads are chunked and resumable, so a large scan survives a weak connection.
Does marking change the student's original file?
The original stays as uploaded. Marks are drawn on a canvas over the page image and saved to Filestack as a separate transparent PNG, and the browser stacks the two, so a mark can be cleared or redrawn later.
How many pages can one submission have?
The page count comes from pdfinfo on the stored PDF. The app requests and saves each page separately, so a multi-page document is marked one page at a time.
How is student work kept private?
Signed URLs and access policies scope a file to a user, a session or an expiry. Filestack’s published compliance is SOC 2; institutions that need FERPA, COPPA or HIPAA terms in the contract request them through Filestack.
Does this work with an LMS like Canvas or Moodle?
Filestack is an HTTP API with SDKs, called from your own code, including code an LMS integration runs. The demo is a standalone app. Filestack for EdTech covers integration across a platform.
Is Fairmount College a real company or a Filestack customer?
Fairmount College is a fictional college, created to show how Filestack works in education. The college, its people and its figures are invented, and the demo runs on the real Filestack API.
Can I see the code behind the Fairmount College demo?
Yes. Fairmount College is open source on GitHub in the filestack-use-cases repository, under apps/fs-education. It is a Next.js app with the picker, the page renderer, the marking editor and the overlay upload.