Re: Webviewer - Read from XOD directly

224 views
Skip to first unread message

kk...@pdftron.com

unread,
Mar 13, 2014, 1:53:25 PM3/13/14
to
XOD files are web-optimized files that allow the WebViewer to use make byte range requests directly. (Provided that your server supports byte serving)

What this means is that the WebViewer does NOT download the whole XOD file before it begins to render. The WebViewer will only download parts of the XOD file at a time, as you scroll.
As long as your web server (hosting the xod file) supports byte serving, you do not need to configure anything.

Note: you'll see that the WebViewer includes a streaming mode (via chunked transfer encoding). Using the streaming mode turns off byte range requests, so you'll want to make sure streaming is off. (Streaming is only useful when your server does not support byte ranges, or you need to do XOD conversions on the fly.)

For watermarks on XOD files, you have a couple of options:
1. apply watermarks with PDFNet to the PDF, prior to XOD conversion
2. use PDFNet to convert XOD back to PDF, and apply watermark with PDFNet. (Note you'll need a license for XPS2PDF to do so)
3. alternatively, you could customize the WebViewer to display your own watermarks (this would be more involved)

So the easiest way really is to apply a watermark to the PDF directly, then convert that to XOD.
See How do I add a watermark to a page? Here: http://www.pdftron.com/pdfnet/faq.html

On Thursday, October 11, 2012 1:22:00 AM UTC-7, Ankit wrote:
In my application, Documents to be converted are very big and thus I convert the pdf documents in xod format and save. Is there a way to read the xod directly and send that to the web viewer?

Additionally, I need to create watermark on the XOD. How can I do that?

Support

unread,
Oct 25, 2012, 5:24:13 PM10/25/12
to pdfnet-w...@googlegroups.com
 

I am not sure what you mean with 'read the xod directly and send that to the web viewer'? Is your question "is there way to send XOD without saving to disk"? In this case the answer is yes, as shown in WebViewerStreaming sample project (that comes as part of PDFNet SDK). Having said this unless you are dealing with very small server loads I would suggest saving XOD for caching purposes.

Reply all
Reply to author
Forward
0 new messages