Overview
Using the PDF Feature, you can upload and attach PDF Files to your application for displaying. When you try to upload a PDF of filesize over the allowed limit, you will receive an error message similar to this capture:
The PDF File upload will fail, as the file exceeds the maximum allowed size of 32 MB.
Environment
- Your app has a PDF Feature created and enabled.
Solution
The PDF file size limit is a mandatory limit for uploads, and as such, you have the following choices:
- You can use PDF editing software (there are many free apps available online, such as Adobe Compress-PDF) to reduce the size of the file.
- As the limit is per size, you can use editing tools to split your PDF into several files, each of which should be below the filesize limit.
- If the PDF is a scanned document, you can also try to scan it at a lower resolution (lower DPI), or in greyscale or black and white.
After you have generated the new file, you can try uploading it again by navigating to Create -> Build -> <PDF_Feature> -> Content, and selecting the 'Add PDF' option.
Note: The performance of the PDF Feature in your application is directly related to the file size of each document, and to the number of them, we recommend you compress all PDF files before uploading them and avoiding files with size larger than 6 MB for better performance.
Testing
You will be able to upload your PDF file on the app
Comments
0 comments
Please sign in to leave a comment.