Coder Social home page Coder Social logo

anubhav-mahajan / doc-to-img-converter Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2 KB

This API helps in converting uploaded documents to images based on options provided.

License: MIT License

document-converter doc docx api converter csharp dotnet-core pdf

doc-to-img-converter's Introduction

Document to image converter

With this API you will be able to convert any document to image.

doc to image converter arch

doc-to-img-converter's People

Contributors

anubhav-mahajan avatar

Watchers

 avatar

doc-to-img-converter's Issues

Create Document to Image conversion api

Background

Client has a requirement where in an API needs to be exposed which will do a basic conversion of a document to Image based on some parameters. The document can be of type pdf, doc or docx and the converted image for each page should be either a png or a jpg file. The parameters could be some options which could be specific to image resolution like DPI and quality. The API should also have a authentication mechanism, so that it can be securely hosted.

Requirement

  • #2
  • The API could be hosted in any environment Windows, Linux or MacOS.
  • An API should be exposed for end user to consume. It should allow the consumer to upload the file using http post request with some options.
  • The API should have a configurable path on the server where the images are stored.
  • Expose other API to help user download the converted files, if they need it. (Could be a part of future scope.)

Design flow diagram

doc to image converter arch

Create a authentication mechanism, this could be some token based authentication.

Background

In order to use API in a production environment, hash-based message authentication code is required. Access Key authentication uses a hash-based message authentication code (HMAC) to uniquely sign a single HTTP request. This method is intended for non-interactive users (technical users) who are involved in software-to-software or system-to-system authentication scenarios.

Access keys are comprised of two parts: a secret key and a shared key.
The scheme used in the Authorization header is AccessKey <shared-key>:<hmac>.

Advantages

There are some advantages to HMAC authentication, such as:

  • It allows maintenance of a single platform identity with multiple credentials expressed in the form of access keys.
  • Individual access keys can be disabled or deleted without affecting other keys or the identity itself.
  • The secret key never expires, which simplifies interaction with the platform as compared to using temporary access tokens.
  • This method guarantees authenticity of the full request instead of a specific part of the request (such as the Authorization header).
  • Actual user secrets are never transmitted over the wire as each request has a unique HMAC.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.