How to view office documents using VeryPDF DocViewer Online?

Dear VeryPDF,

Your viewer control is perfect for my use case. I am looking for current code samples to embed the viewer on a web page (using an iframe), and to pass in the URL of a publicly available file.

So far, this code works for me, BUT only for pdf files:

If I pass in the URL for a Word doc, I get the following error:
"PDF.js v? (build: ?)
Message: InvalidPDFException"

=> Can you help me diagnose/guide me on how to make this work for Word docs?

=> I'd also like to understand how to implement the toolbar customizations which your support article describes at

I have found that those instructions *only* work when I use the "/app/reader/?url=..." API, but that API is not putting out any content. The only one that is working for me is the "/app/reader3/?url=..." AP (using "reader3"), but that API does not let me customize the toolbar options.


Thanks for your message, yes, does view the PDF format only, if you wish to view the DOC, DOCX, XLS, XLSX, PPT, PPTX, RTF, etc. document formats online, you need convert these Office formats to PDF files first, then you can view the PDF files in Online PDF Reader.

You may use VerPDF Cloud API or Online Document Viewer to convert from Office files to PDF files online,

You can also call following URL to convert office documents to PDF files and view the PDF files online,


VN:F [1.9.20_1166]
Rating: 6.0/10 (2 votes cast)
VN:F [1.9.20_1166]
Rating: +2 (from 4 votes)
How to view office documents using VeryPDF DocViewer Online?, 6.0 out of 10 based on 2 ratings

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!