Template-based PDF Document Generation in Javascript

Document generation is a very common requirement in the life of a developer. Whether it is an e-commerce site, Management app, or anything. It can be invoice generation, insurance document preparation, doctors prescription, HR Offer generation, Payslip generation and you could think of tons of use cases. There always will be a need for document … Read more

How to Convert a PDF to Text (TXT) Using Java

There is perhaps no file type more ubiquitous (by design) than the Portable Document Format (PDF). Capable of holding an impressive variety of content/object types and work seamlessly on any operating system you can think of, PDFs dominate personal and professional project landscapes as a destination format for bulky and/or specially formatted files. File types … Read more

Using Ingest Pipelines to Enhance Elastic Observability Data

In a previous article, I had written about distributed tracing and how it can be implemented easily on the Elastic stack. I have used many observability platforms, including NewRelic, Splunk, and DataDog. All of them are very powerful platforms and have everything you would need for implementing full-stack observability for your applications. Elastic is generally … Read more

How To Perform OCR on a Photograph of a Receipt

The purpose of this article is to demonstrate an API that is specifically designed to perform OCR (Optical Character Recognition) operations on photographs of receipts and extract key business information from them automatically, such as the name and address of the business, the phone number, the receipt total, and much more. Further down the page, … Read more

How to Store Text in PostgreSQL

DDL generation based on JPA entities definition is a daily task for many developers. In most cases, we use tools like Hibernate’s built-in generator or JPA Buddy plugin. They make the job easier, but there are exceptions. When it comes to storing big chunks of data in the database, things get a bit complicated. Use … Read more

Understanding OAuth 2.0 – DZone Security

In a traditional client-server authentication model, a resource owner shares their credentials with the client so that the client can access its resources when necessary. The client does that by passing the resource owner’s credentials to the resource server, and the resource server validates the same before providing access to the protected resource(s). Simple, right? … Read more

Document Clustering Through Hybrid NLP

A Complex Use Case It is common knowledge that up to 87% of data science projects fail to go from Proof of concept to production; NLP projects for the Insurance domain make no exception. On the contrary, they must overcome several hardships inevitably connected to this space and its intricacies. The most known difficulties come … Read more

r – Reading a specification document (PDF) with paragraphs and tables into a spreadsheet

As I’ve mentioned in our discussion/chat, this will be difficult and certainly imperfect. I’ve tried running your sample PDF through the following automatic extractors: and they both produced the same text, which completely loses the original structure: 1. 1.1. 1.1.1. 1.1.2. Lorem ipsum dolor sit amet consectetur adipiscing elit. Pellentesque a sodales arcu, sed feugiat … Read more

java – Apache POI upgrade to 5.0 error for Word document

We are upgrading Apache poi library from 3.17 to 5.0 version, when we update poi 5.2 dependency in POM.XML, getting the below mentioned error, while creating the document from template. Code to create document String relativeUrl = “/report-templates/DocTemplate.docx”; XWPFDocument wordDoc=new XWPFDocument(getClass().getClassLoader().getResourceAsStream(relativeUrl)); wordDoc.enforceUpdateFields(); Error Message “Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: ‘org.apache.xmlbeans.XmlObject[] org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTFootnotesImpl.getXmlObjectArray(javax.xml.namespace.QName, org.apache.xmlbeans.XmlObject[])'”, Dependency … Read more

node.js – Fetching the mongodb document taking too long

I have a project based on MERN stack, in which after giving the quiz based on the score 10 different documents are fetched from mongodb collection. There are total 2000 documents in mongodb collection. While fetching its taking too long rather documents are not loading a loader rotates. How to resolve this? The indexing I … Read more