I am seeking to overlay a layer on top of a PDF file (using PDF JS) with the help of Kinetic JS. This layer will be utilized for adding annotation comments to the PDF file.
However, my issue lies in the fact that each PDF document's canvas has different dimensions.
So, I am wondering how I can make the container in Kinetic JS match the dimensions of the PDF Canvas?
To broaden the question, how can I ensure that a KineticJS container perfectly fits an HTML5 Canvas with varying dimensions?