Hi Friends, In the previous article, I have written the process about how to convert the PDF pages to PNG In this article, I will tell you how to read the converted images and return those images as a REST API endpoint. So Lets Start.

If you didn’t read my previous article please go through it since this is the extension of that article

How to convert PDF file pages to PNG images-node.js

We will create the two endpoints

app.js file

var express = require("express");
var router = express.Router();
const {
fromPath
} = require("pdf2pic");
const pdf = require("pdf-page-counter");
const fs = require("fs");
var app…

I am going to show you a step-by-step guide about how to create a node express js project & write a REST API which will take a pdf file path as request params & convert that all pdf pages to png images. Let’s Start

Prerequisites

  • node >= 12.x
  • graphicsmagick
  • ghostscript

We will use the pdf2pic package to convert the pdf pages to png image — https://www.npmjs.com/package/pdf2pic

  1. Install the node.js from the node.js official website https://nodejs.org/en/download/ by downloading the LTS version

Hello and welcome to all my lovely readers in our articles. As you all are now used to with our site, I believe our articles help you a lot in your day-to-day coding life. Isn’t it so? Please share your thoughts at info@codinghub.net so that we can improve ourselves better and better in terms of your expectations.

Well! So let’s jumps into today’s topic. This is yet another interesting and very very basic python example we will discuss today.

Let’s start…

Wait! Have you checked out our previous articles in this series? Not yet? My recommendation is to just have…


In this article, you will learn how to access data with Spring Data JPA and MySQL. You might have found the previous article very much useful and this article is an extension of Building a RESTful Web Service in Spring Boot.

Spring Data JPA is a method to implement JPA repositories to add the data access layer in applications easily. We will see an example of how to access data from a database in a spring boot application using spring data JPA.

Dependencies

You need spring-data-starter-data-jpa and mysql-connector-java dependencies to access MySQL database with Spring Data JPA.

If you are using…


In this article, we will learn how to build a RESTful web service with Spring Boot. We will build a service that will accept HTTP GET requests and respond with a JSON representation.

Building RESTful Web Services with Spring Boot is very easy as it provides good support for REST services. RESTful Web services are really popular these days for enterprise applications.

Starting with Spring Initializr

For all Spring Boot applications, we should start with the Spring Initializr. The Initializr offers a fast way to pull in all the dependencies we need for an application. Please see the below setup process.


Python Examples For Beginners — Check Prime Number
Python Examples For Beginners — Check Prime Number

Thank you very much to all the lovely people around the world reading my last article Python Examples for Beginners. If you haven’t got a chance to see that just have a look once (a kind request).

So, we learn how to add two numbers in Python, now it’s time to go one step forward therefore we will see today how to check whether a number is prime or not? Sound’s great….

Python Examples For Beginners| Check Prime Number

In this article what we will do, we first take an user input and then we apply prime number methodologies in Python. …


Python: Example For Beginners
Python: Example For Beginners

A very warm welcome to all my readers in our articles. As you already find our last two articles in Python namely What is python, why python is so popular and how to install the python? and Write First Python Program. Now in this article we will start a series of Python examples for the beginners who are just stepping into this wonderful and powerful programming language or those who already use python for a long time can also refresh their mind by have a look to this tiny programs. …


Below are some popular Git commands which are being covered in this article:

git init:

The first step to create a git repository is git init. It initializes an empty git repository to a new or existing project. Run the below command to the root directory of your project.

$ git init

git config:

After creating a git repository you might want to configure your name and email in the main configuration file. This is one time configure and by running the below two commands you can do it easily.

$ git config --global user.email "PUT_YOUR_EMAIL_HERE" 
$ git config --global…


Hello my dear friends, hope you all are safe and sound in this pandemic situation.

I would like to thank all my readers who have reached this article for the first time and many thanks to those who have reached here once again.

Today we will discuss about Top 10 Web Securities we must have to implement in our website before going live.

Let’s start…

1. Properly sanitize your input data

You need to take care of all of your inputs taken from users. It can be GET or POST you must have to sanitize it before using it. Similar to this pandemic situation, how we…


Hello and welcome to all the Deno loving peoples around the world. Hope you guys are enjoying a lot and learned new things from our articles.

Haven’t got a chance to review our previous articles? Here is a quick links for your easy reference.

We already covers following topics in Deno,

Today, we will talk about MongoDB, Oak, Deno and Angular in short MODA. Now please share your thoughts about the term MODA. Sounds crazy right. Let’s popular this term.

So, all good. We will now see how we can achieve MODA. The first component of MODA is Mongodb. …

CodingHub

Coding Hub — Learn & Build Your Career

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store