Hey, I know ActiveX is client technology. PDF-Xchange Viewer ActiveX opens PDF from local folder (or URL) and save PDF on local machine.
But we want to open PDF from our web server and edit/save back to web server. Do you have any API to post back PDF bytes to web server? or Any API to send data through web service? (We're using ASP.NET/C#)
Thanks,
Save PDF on Server
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Save PDF on Server
Hi,
Viewer AX can open file by specified URL (in case that you want to read PDF from server). Also you can save PDF to IStream, so if you can upload this stream back to web server this may solve your problem. For now we don’t have any API that can help you to post data to web server.
Viewer AX can open file by specified URL (in case that you want to read PDF from server). Also you can save PDF to IStream, so if you can upload this stream back to web server this may solve your problem. For now we don’t have any API that can help you to post data to web server.
-
- User
- Posts: 5
- Joined: Tue Dec 01, 2009 11:12 pm
Re: Save PDF on Server
I think istream is enough for us. Can you give (attach) some sample sources to use istream? Thanks,
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Save PDF on Server
We have two samples "OpenDocumentFromStream" and "SaveDocumentToStream" for C# (and VB.NET) which comes with the Viewer AX SDK (so you can find them in "Tracker Software\PDF-XChange Viewer SDK\Examples\C#Examples\" directory).
HTH.
HTH.
-
- User
- Posts: 5
- Joined: Tue Dec 01, 2009 11:12 pm
Re: Save PDF on Server
Hey Corwin, Thanks for answer.
I'm using PDF-XChange viewer as a client-side control in ASP.NET page, which means I can't access to this client control from ASP.NET server-side codes. So I can't create iStream object and connect to PDF-XChange object as it does in SaveDocumentToStream examples. Any thought?
I'm using PDF-XChange viewer as a client-side control in ASP.NET page, which means I can't access to this client control from ASP.NET server-side codes. So I can't create iStream object and connect to PDF-XChange object as it does in SaveDocumentToStream examples. Any thought?
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Save PDF on Server
Hi,
As I can understand you can access to Client Side AX component with Server side code. Please see attached sample.
As I can understand you can access to Client Side AX component with Server side code. Please see attached sample.
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Save PDF on Server
Hi, sokjukim.
Unfortunately, but we cannot upload any file by our ActiveX to remote server in current realization.
Probably you can use HTML's java script for this. For example, on client-side:
1. When OnLoadPage/OnUserClickOnOpenButton you may use ax.OpenDocument("http://server/path/doc1.pdf");
2. OnUserClickOnSaveChangesButton you may:
2.1 use ax.SaveDocument(0, "<temp_local_file_name>");
2.1' or use ax.SaveDocument(0, TempMemStreamObject);
2.2 upload local_file/memstream(?) by next code: http://www.aspheute.com/english/20000802.asp.
Feature for uploading documents will be added into the next version(V3).
Best Regards,
Vasyl.
Unfortunately, but we cannot upload any file by our ActiveX to remote server in current realization.
Probably you can use HTML's java script for this. For example, on client-side:
1. When OnLoadPage/OnUserClickOnOpenButton you may use ax.OpenDocument("http://server/path/doc1.pdf");
2. OnUserClickOnSaveChangesButton you may:
2.1 use ax.SaveDocument(0, "<temp_local_file_name>");
2.1' or use ax.SaveDocument(0, TempMemStreamObject);
2.2 upload local_file/memstream(?) by next code: http://www.aspheute.com/english/20000802.asp.
Feature for uploading documents will be added into the next version(V3).
Best Regards,
Vasyl.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.