Apex Designer Documentation
What's New
Getting Started
Business Objects
User Interfaces
App Behaviors
Project Settings
Patterns and Best Practices
App Showcase
Frequently Asked Questions
Version 2.2.214 Released
Version 2.2.221 Released
Version 2.2.244 Released
Version 2.2.273 Released
Flex Layout Helper Classes
Manage PDFs
Version 2.2.281 Released
Version 2.2.287 Released

Manage PDFs

See how to manage PDFs in an Apex Designer app

Blank Profile Image
Written by David Knapp
Updated 16 days ago
Less than a minute read

This video shows you how to manage binary data (PDF files in this case) in an Apex Designer app:


Here is the upload behavior code snippet:

const file = this.fileUploadInput.nativeElement.files[0];
debug('file', file);

let reader: FileReader = new FileReader();

reader.onload = async () => {
	debug('reader.result', reader.result);

	const base64 = ('' + reader.result).substr(('data:' + file.type + ';base64,').length);
	debug('base64', base64);

	await this.pdfDocuments.add({
		fileName: file.name,
		size: file.size,
		base64Content: base64

	this.fileUploadInput.value = null;

	await this.pdfDocuments.read();


This video shows you how to view PDFs in an Apex Designer app:


Powered by Apex Designer
Terms of ServicePrivacy Policy
© 2017-2023 Apex Process Consultants