we have a crm and we need to add a custom functionality to it to handle files and convert them to pdf.
Specifications
We read from a specific folder of Google Drive with some criteria . Documents are mostly jpg, pdf and rarely docs.
We need to select some of them and :
1 convert them to pdfs (if they are not)
2 create a new one with the merge of them
3 to be able to convert it to black and white or generally decrease its size if it is scanned with a lot of detail.
4 annotate them
5 save them back
and to apply a workflow for all this procedure. i mean a user will upload the docs to the google docs (and create a record in our database with the type of the docs and the unique document's google id ) and the administration will get notified about new uploads and manage them (merge , approve or delete , convert e.t.c.)
This should be done using angular.js
Technical specs
"2 projects are required, the client part and the server part. The client part is written in AngularJS and is a view that we can access using the following code from a module configuration:
$[login to view URL]('/Documents/:entityId?', {
templateUrl: 'path/to/[login to view URL]',
controller: 'DocumentsController'
})
The entityId parameter is optional. If it is supplied the documents will be filtered by the corresponding entity otherwise all the folders documents will be visible.
Through Angular you must use the $http service to communicate with the server side. view should be taken from the css we use.
The server is written in ASP .NET Web Api. We need a documents controller that the client part will access. There should be a distinct business logic part in the code (ideally exposed through an interface) that the controller calls and does all the processing. If the business logic part needs to interact with the database it calls a data access layer part that persists the data and handles the database connection (ideally it should also be exposed through an interface).
The reason we require this architecture is because your code will be incorporated into our solutions which follow the same structure