You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@adityamauryaMog have you find a solution for your problem? The normal is that Chunks are added from left to write, and from top to bottom. Probably that's why the Image in the Chunk is left-aligned.
ClassPathResource classPathResource = new ClassPathResource(backgroundImage);
Image image = Image.getInstance(classPathResource.getURL());
image.setAbsolutePosition(0, 0);
image.scaleToFit(this.document.getPageSize().getWidth(),this.document.getPageSize().getHeight());
// Create a Chunk with the image
Chunk chunk = new Chunk(image, 0, 0, true);
chunk.setAnchor(new URL("http://www.example.com"));
when i direct add image to document it working fine , but when i added image with chunk to acheive anchoor effect then its Image towards left
The text was updated successfully, but these errors were encountered: