Missing pdf representation for pptx and txt files
Hi guys, i'm using box api v2 for rendering of pdf documents in my app, and my clients have an option to upload either pdf or different documents like pptx or txt files and i'm using your api to display all of those documents as pdf.
Now i have an issue that sometimes when pptx is uploaded i can't download pdf representation for it.
I'm currently testing this issue on 2 pptx files. The only difference between them is that the one that's working is 2mb large and the one that doesn't work is 4mb large.
When i'm downloading the larger one all i get is empty string.
Is there any limitation in file size or any other non issue on your side regarding this?
-
Hey , thanks for writing to the forums! For other readers, Vladimir also wrote in with a support ticket to us but we wanted to close the loop here too.
Box's Preview does have a file size limit, but you're well within the bounds:
Instead, what we found via the support ticket was that the files Vladimir's working with were using embedded fonts. Embedded fonts are supported by Box (we will substitute in the "next best"/available font) and most preview without issue, but there are isolated instances where we cannot preview a file due to some level of complexity or in this case, a font that Preview is not able to substitute properly.
In any case like this, the best thing to do is recommend using less complex fonts or removing problematic Embedded fonts (again, most will preview without issue), then reuploading. On the Mac version of Powerpoint, I actually get prompted to remove embedded fonts as soon as I open up a file - so in the long run across many users, it would be best to limit the visual complexity of troublesome documents.
Hope that helps!
Thanks,
Jason
Please sign in to leave a comment.
Comments
1 comment