We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to do a library with PDF functionality

Thread ID:

Created:

Updated:

Platform:

Replies:

127712 Dec 4,2016 04:39 PM Dec 5,2016 06:31 AM ASP.NET MVC 2
loading
Tags: PDF
Daniel Snyder
Asked On December 4, 2016 04:39 PM

I am creating an application which will run in both WPF and another application, using the same functionality in ASP.net MVC.
the application needs to read/write/edit PDF files.
How can I gain the PDF functionality and have the  code be in just one library API that both the windows WPF app and an MVC app can call on?

Thank you

Juan Acosta
Replied On December 5, 2016 01:27 AM

Hi Daniel,

In my experience, I will recommend to you to make a project called 'pdfFunctionality' that contains all the pdf library functionality and required library dependencies and add that project to the WPF complete solution.
Use itextsharp library.
https://sourceforge.net/projects/itextsharp/
That is a powerful library for pdf manipulation.
When you have the required functionality in WPF solution working perfectly and tested. You can export the pdfFunctionality.dlls and added to the MVC solution as  a reference. Then you can use the objects from the library that you create and import.

There are some important considerations to take into account.
1. Pdfs libraries can have very heavy functions to process in the frontend, so, be very careful in what you want to achieve with that library.
2. MVC can be responsive too and the functionality of those libraries could present issues with mobile. I'm not quite sure about it, you will have to make a POC with a mobile and tested on a real device to be 100% sure works fine. 
3. With calls to MVC to that libraries, probably you will have to use asynchronous code. You need to check the performance when using the functions.
4. There is a better way to do this but implied create an API and manage the library in the backend. It will be more work for sure, nevertheless, the stability of the code will be improved.

I hope this will give you some idea where to start.

Kind regards,

Juan


Gayathri Ramalingam [Syncfusion]
Replied On December 5, 2016 06:31 AM

Hi Daniel, 
Thank you for using Syncfusion products. With the “Syncfusion.Pdf.Base” reference you can able to achieve your requirement in both WPF and ASP.NET MVC application. 
The Essential PDF library has the same API which works in both WPF and ASP.NET MVC. 
 
Please find the UG documentation from the below link to achieve your requirement. 
Please let us know if you need further assistance.  

With Regards, 
Gayathri R 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;