From a pdf file if there are input fields to act as an input field I try to use pdf js. But I am not able to do that.
So here's an example of what I'm trying to get at:
const canvas = document.getElementById(`canvas-${this.pageNumber}`);
const context = canvas.getContext("2d");
const dis = this;
this.fabricObj = fabric;
const scale = this.scale;
const viewport = page.getViewport(scale);
canvas.height = viewport.height;
canvas.width = viewport.width;
var formFields = {};
page.render({
canvasContext: context,
viewport
})
.promise.then(() => {})
Is it possible to act as a pdf input field as an input field?