---
title: "Shaishav Patel (@shaishavap) | Hashnode"
description: "Shaishav Patel (@shaishavap) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@shaishavap"
---

@shaishavap

# Shaishav Patel

@shaishavap · Mumbai, India · Joined March 2026

### [Multi-Region Tax Logic in TypeScript — GST (India), HST by Province (Canada), VAT (UK), and EU Reverse Charge in One Invoice Engine](https://ultimatetools.hashnode.dev/multi-region-tax-logic-in-typescript-gst-india-hst-by-province-canada-vat-uk-and-eu-reverse-charge-in-one-invoice-engine?utm_source=hashnode&utm_medium=feed)

The Problem Building an invoice generator that works correctly for multiple regions means handling tax rules that differ not just by country, but by sub-region (Canadian provinces), transaction type (India domestic vs interstate), and B2B context (EU...

6 min read · [ultimatetools.hashnode.dev](https://ultimatetools.hashnode.dev/multi-region-tax-logic-in-typescript-gst-india-hst-by-province-canada-vat-uk-and-eu-reverse-charge-in-one-invoice-engine?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/multi-region-tax-logic-in-typescript-gst-india-hst-by-province-canada-vat-uk-and-eu-reverse-charge-in-one-invoice-engine/6a02b2d6760bde2ee4567a49) [May 12](https://hashnode.com/posts/multi-region-tax-logic-in-typescript-gst-india-hst-by-province-canada-vat-uk-and-eu-reverse-charge-in-one-invoice-engine/6a02b2d6760bde2ee4567a49)

### [Reading and Writing PDF Metadata with pdf-lib — DocInfo Fields, Date Parsing, and the Keywords Array](https://ultimatetools.hashnode.dev/reading-and-writing-pdf-metadata-with-pdf-lib-docinfo-fields-date-parsing-and-the-keywords-array?utm_source=hashnode&utm_medium=feed)

The Document Information Dictionary Every PDF contains an optional document information dictionary with standard string fields. The PDF spec defines these as: Title — the document's title Author — the author Subject — a description of the content Ke...

4 min read · [ultimatetools.hashnode.dev](https://ultimatetools.hashnode.dev/reading-and-writing-pdf-metadata-with-pdf-lib-docinfo-fields-date-parsing-and-the-keywords-array?utm_source=hashnode&utm_medium=feed)

[May 12](https://hashnode.com/posts/reading-and-writing-pdf-metadata-with-pdf-lib-docinfo-fields-date-parsing-and-the-keywords-array/6a02ae64c9ce4fca058ab3ec)

### [Client-Side PDF to JPEG with PDF.js — Canvas Render Loop, Scale Factor, and Dynamic Import](https://ultimatetools.hashnode.dev/client-side-pdf-to-jpeg-with-pdfjs-canvas-render-loop-scale-factor-and-dynamic-import?utm_source=hashnode&utm_medium=feed)

The Core Problem Converting a PDF page to an image in the browser requires rendering the PDF onto a canvas, then exporting the canvas to JPEG or PNG. Three things matter: Bundle size — PDF.js is large (~1MB). Loading it eagerly bloats your main bund...

5 min read · [ultimatetools.hashnode.dev](https://ultimatetools.hashnode.dev/client-side-pdf-to-jpeg-with-pdfjs-canvas-render-loop-scale-factor-and-dynamic-import?utm_source=hashnode&utm_medium=feed)

[May 12](https://hashnode.com/posts/client-side-pdf-to-jpeg-with-pdfjs-canvas-render-loop-scale-factor-and-dynamic-import/6a02adef678cff90fc5489fd)

### [Removing Pages From a PDF with pdf-lib — Index Mapping, copyPages, and Client-Side State Management](https://ultimatetools.hashnode.dev/removing-pages-from-a-pdf-with-pdf-lib-index-mapping-copypages-and-client-side-state-management?utm_source=hashnode&utm_medium=feed)

The Core Problem Removing pages from a PDF with pdf-lib isn't a "delete" operation — it's a rebuild. You create a new document, copy only the pages you want to keep, and discard the rest. The tricky part: copyPages works with original indices from th...

5 min read · [ultimatetools.hashnode.dev](https://ultimatetools.hashnode.dev/removing-pages-from-a-pdf-with-pdf-lib-index-mapping-copypages-and-client-side-state-management?utm_source=hashnode&utm_medium=feed)

[May 12](https://hashnode.com/posts/removing-pages-from-a-pdf-with-pdf-lib-index-mapping-copypages-and-client-side-state-management/6a02ad80e595fc00065289a2)

### [Building a Browser Image Format Converter — Canvas toDataURL, MIME Routing, and Transparent Background Handling](https://ultimatetools.hashnode.dev/building-a-browser-image-format-converter-canvas-todataurl-mime-routing-and-transparent-background-handling?utm_source=hashnode&utm_medium=feed)

The Core Problem Converting between image formats in the browser comes down to one function: canvas.toDataURL(mimeType, quality). But three things trip up a naive implementation: Transparent → JPEG — JPEG has no alpha channel. A transparent PNG conv...

4 min read · [ultimatetools.hashnode.dev](https://ultimatetools.hashnode.dev/building-a-browser-image-format-converter-canvas-todataurl-mime-routing-and-transparent-background-handling?utm_source=hashnode&utm_medium=feed)

[May 12](https://hashnode.com/posts/building-a-browser-image-format-converter-canvas-todataurl-mime-routing-and-transparent-background-handling/6a02aced5ff09d0027375313)
