
In the image above, I have to start the PDF from the left; otherwise, if I use the centre alignment, it causes horizontal scrolling issues.
So I don't want the horizontal scroll to break, and I want it to enlarge starting from the left.
<div ref={containerRef} className="flex flex-col items-start py-4 w-full h-full overflow-auto" > <Document file={patch} onLoadSuccess={onLoadSuccess}> {Array.from(new Array(numPages), (_, i) => ( <div key={i} ref={(el) => (pageRefs.current[i] = el)} className="flex mb-4 w-full" > <Page pageNumber={i + 1} width={containerWidth} scale={zoom} renderTextLayer={false} renderAnnotationLayer={false} /> </div> ))} </Document> </div >