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
https://www.verypdf.com/wordpress/201310/verypdf-html5-pdf-viewer-toolbar-options-39121.html
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.
THANK YOU IN ADVANCE FOR ANY HELP!
Customer
---------------------------------
Thanks for your message, yes, http://online.verypdf.com/app/reader/web/viewer.html 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,
https://www.verypdf.com/online/free-view-document-online.php
You can also call following URL to convert office documents to PDF files and view the PDF files online,
http://online.verypdf.com/api/?apikey=XXXX-XXXX-XXXX-XXXX
&app=ViewAsPDFPaper
&demopdfopacity=0.01
&infile=http://online.verypdf.com/examples/cloud-api/verypdf2.doc