Here I am going to show you an example how to encrypt PDF to make it password protected using PyPDF2 module in Python programming language. I am not going to show you how to create a new PDF file in this example and I am going to read the existing PDF file and making this…

Posted in Python

How To Encrypt PDF As Password Protected File In Python

I am going to show yo how to download PDF file from MySQL database using Spring Boot and iText library in Java programming language. Many applications require dynamic generation of PDF documents for reporting purpose, such as, generating statements for customers, readers buying online specific chapters of a book, etc. In my another tutorial I…

Posted in Java MySQL Spring Boot

How to generate PDF report from MySQL database in Spring Boot

Here I am going to tell you how to convert CSV to PDF file using PyFPDF library in Java programming language. CSV is a comma separated value and it can be opened as a plain text file or in Microsoft excel file. There are few advantages of CSV data: CSV format is considered to be…

Posted in Python

How to convert CSV File to PDF File using PyFPDF in Python

In this example I going to show you how to convert PDF file to CSV file. I will read the PDF file using iText library and write data to the CSV file using Java programming language. In my previous example I had shown how to convert CSV file to PDF file using iText library. As…

Posted in Java

How to convert PDF File to CSV File using iText API in Java

Here I am going to tell you how to convert CSV to PDF file using iText library in Java programming language. I am going to use Java 7 or later version’s new feature Path API to read the CSV file and Java 8’s Stream API to split the comma separated line or record. I am…

Posted in Java

How to convert CSV file to PDF file using iText API in Java

Introduction In this tutorial I am going to show you how to create PDF file content with different formats using Java programming language. In this tutorial I am going to use iText library to generate the PDF document. Many applications require dynamic generation of PDF documents. The applications, where dynamically generated PDF is required, are…

Posted in Java

How to create PDF File Content using Java

Introduction We are going to show you how to extract text from PDF file and convert them into audio speech using Google gTTS API. gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate’s text-to-speech API. Write spoken mp3 data to a file, a file-like object (bytestring) for further audio manipulation,…

Posted in Python

Convert PDF File Text to Audio Speech using Python and Google gTTS API

Introduction We will create an example using Python programming language how to extract text from PDF file. In this example we are going to use PyPDF2 package from Python to work with PDF file.

Posted in Python

Extract Text from PDF File using Python

In this example you will see how to convert docx to pdf in Python programming language. Your word document may contain images, paragraphs, headings, text, table, title etc. This program will put them into a pdf file. Note that this program will convert only word document of docx type. This is a very simple program…

Posted in Python

How to convert docx to pdf in Python

Introduction We will create an example on how to generate PDF report from MySQL database using Python Flask. We will create a web application using light-weight web framework called Flask. We will generate the pdf file on the fly from MySQL database in this web application. A download link will be provided on front-end or…

Posted in File Download Flask Python

Generate PDF Report from MySQL Database using Python Flask

Introduction I am going to show you how to read file and write to a PDF document using Python 3. The file content may be in any format and it depends on you how you are going to parse it. I am going to show you how to read text file and write into PDF…

Posted in File Python

How to convert file content into PDF document using Python

Introduction In my previous tutorial I had shown how to create PDF document using Python 3 but, here we will see how to convert HTML content into PDF document. Sometimes it may be good idea to directly write HTML content into PDF file to print the texts mixing with different styles. In this example I…

Posted in File Python

How to convert HTML Content into PDF Document using Python