Categories
Java Script Tutorials

Combine Two PDF Pages into One with variable width

This post is the extension to the previous tutorial. This tutorial add the width and height controls. User can change the width of embedded page and can visually see it’s impact on final PDF in realtime. Implementation We will continue with updating the HTML markup We have added the two inputs. One for width and […]

Categories
Java Script Tutorials

Combine Two PDF Pages into One with pdf-lib

I have this recurring need where we I have PDF of national Identity Cards. It has front side and back side. Both in separate pages. Most often than not I need to move it to single page PDF. This was it’s easy to print (thought print tool does this is without much trouble) and some […]

Categories
Java Script Opinions

Why redux pattern enforces Functional Programming

I am trying to go with the route of vanilla programming for my reactive needs. Hence I choose Proxy, A wrapper over a object, where we can listen to changes in properties. It has some traps, like get, set, has and so on. We are more interested in get so we can use it to […]

Categories
Java Script Opinions

Release the thread

Changes in properties of element or manipulating the children elements will trigger updates in UI when you release the three is virtual DOM really fast? React claims that its virtual DOM implementation is proved to be faster than changing real Dom, where 10 changes are collected and real DOM is updated at once hence faster. […]

Categories
Angular Java Script Tutorials

Component Immutability and RequiredArray

While reading through component design, one of the recommended tip is to never mutate the input properties. Let’s look at the example below. (I am using Angular but same can apply to other frameworks) Here sort is a mutable operation. This not only sort the array but also mutates the array. I have prepared the […]