PDF download is being corrupt if downloading using a non proxy server

Dears,

 

Have an online .Net 2.0 aspx + Ajax which downloads PDFfiles based on below code, the code is working with no problem under ISA server (The server is hosted behind an ISA server) and any connection which has a proxy server.

 

When trying to download the file using a non-proxy connection (Real static IP connection) the PDF file is being downloaded but it is corrupted. Checking the PDF file under notepad i can see that the code of the page is being added to the PDF file.

 

Help am clueless.

1 answer

1 accepted

Accepted Answer
1 vote

Below some tips to get back corrupted .pdf file, if they can't effective you may refer to another powerful solutions

 

https://forums.adobe.com/message/6978758

https://www.openfiletool.com/pdfopen.html PDF Open File Tool

 

How to Repair:
gswin32c.exe -o repairedfile.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress sourcefile.pdf

Password protected:
gswin32c.exe -o repairedfile.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sPDFPassword=password sourcefile.pdf

gswin32c.exe is located in the installation directory and normally in C:\Program Files\gs\gs9.05\bin 

Example:
C:\Program Files\gs\gs9.05\bin>gswin32c.exe -o repaired.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress Vasantham.pdf

GPL Ghostscript 9.05 (2012-02-08)
Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.

Processing pages 1 through 5.
Page 1
Page 2
Page 3
Page 4
Page 5

C:\Program Files\gs\gs9.05\bin>     Hope this helps !!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

140 views 6 8
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you