When downloading files via the TelerikPdfViewer bytes are added before and after the PDF Dokument.
Browsers are able to show the documents but you get and error message if you try to open the downloaded document in Acrobar Reader or in a DMS.
The document attached was download from the demo on your web site.
Hello Christa,
I was able to reproduce the issue. As a small token of appreciation, I have awarded your account with Telerik Points and changed the status to Unplanned.
Regards,
Svetoslav Dimitrov
Progress Telerik
Hello Svetoslav,
could you please download a file from TelerikPdfViewer and examine it with a hex editor:
A PDF document shoud start with %PDF-x.x where x.x is the PDF version (i.e. 1.6).
A document downloaded from TelerikPdfViewer starts with 31 bytes added by TelerikPdfViewer:
There are also some bytes added to the end of the original document.
I can't provide you a sample application because it would disclose internal data, but you can this behaviour in your demo app.
Best reagrds,
Udo
Hello Christa,
I have tested this scenario multiple times, downloaded the PDF multiple times and the size remains exactly the same, no additional bytes are added:
This is the PDF from our online PDF Viewer demo being downloaded and as you can see there is no size difference. I have even checked the Properties of the files and there is no difference in their byte size:
That being said, I would require a runnable sample application where I can observe the problematic behavior.
Regards,
Svetoslav Dimitrov
Progress Telerik
Hello,
as you can see in the attached document (open it with a hex editor) there are always some byte added before (something like ...JS.ReceiveByteArray...) and after the original document's data.
It depends on the document's content, if Acrobat Reader can handle this. Very often i get this message (german version):
Eache time you download a file the size increases by 32 bytes.
The PdfViewer should not modify the file data when downloading.
Regards
Udo
Hello Christa,
I have tested with the file you sent to us, also, I tried downloading the PDF straight from the online demo, opened both with the latest version of Acrobat Reader and I had no issue previewing it. Can you follow up with some more information on the error message you are getting, are there any reproduction steps, or it reproduces when you simply open the PDF document?
Regards,
Svetoslav Dimitrov
Progress Telerik