This product is retired as of September 2020 See PDFTon WebView
===
Reader Plus allows for two alternatives to uploading files via the viewer interface, the Reader Plus Admin Tool and a REST call through the P3 Rest service.
- A new master document may be added to the Reader Plus database through the Reader Plus Admin Tool. To load the Admin Tool double click the short cut on your desktop created at installation labeled “ActivePDF Reader Plus Admin Tool” or under the start menu and ActivePDF. Once the Admin Tool has loaded select the “Document” tab and “Upload Master Document”. A newly added PDF will appear in the master document list.
- New PDFs may also be uploaded by making a REST call containing the PDF data. Here is an example that uploads a new PDF document.
public void UploadPDFDocument(string FileToUpload)
{
string fileName = System.IO.Path.GetRandomFileName() + ".pdf";
WebClient rpclient = new WebClient();
string pdfData = Convert.ToBase64String(File.ReadAllBytes(FileToUpload));
var resultString = rpclient.UploadString($"http://localhost:62625/api/readerplus/uploadDocument?sIsMasterDocument=1&sEditMode=0&ExistingDocumentID=&DefaultOutputName={fileName}&UserPassword=", pdfData);
dynamic result = JsonConvert.DeserializeObject(resultString);
if (result.Status != 0)
{
Console.WriteLine($"Error: {result.Details}");
}
string docID = result.Details;
}
Comments
0 comments
Please sign in to leave a comment.