Click here to Skip to main content
15,916,091 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Scenario:
Actually i want to open PDF at client side in editable mode
my code, open pdf file in editable mode without open/save dialog box
but after i finish changes in pdf when i save pdf, pdf saves in TemporaryFiles.

i have pdf writer installed on client machine

how can i open it from server location to client ?

Please help

here what i tried

C#
protected void btnway2_Click(object sender, EventArgs e)
  {
      string path = MapPath("1.pdf");
      System.Net.WebClient client = new System.Net.WebClient();
      Byte[] buffer = client.DownloadData(path);

      if (buffer != null)
      {
          Response.ContentType = "application/pdf";
          Response.AddHeader("content-length", buffer.Length.ToString());
          Response.BinaryWrite(buffer);
      }

  }


Means after i save PDF file, it should replace existing file at server.
Posted

1 solution

You cannot directly save the edited file from the client to the server.

You will have to provide the facility to the user to upload the edited PDF using the FileUpload control to the server.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900