Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

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


Best Answer dominicgross , 01 October 2015 - 07:21 AM

Below some tips to get back corrupted .pdf file, if they can't effective you may refer to another powerful solutions https://forums.adobe...message/6978758https://www.openfile...om/pdfopen.htm... Go to the full post »


  • Please log in to reply

#1
trinket

trinket

    New Member

  • Member
  • Pip
  • 1 posts

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.


  • 0

Advertisements


#2
dominicgross

dominicgross

    New Member

  • Member
  • Pip
  • 1 posts
✓  Best Answer

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

 

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

https://www.openfile...om/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 © 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 !!


  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP