From java side I am converting tiff images to PDF like below.
Rectangle pagesize = new Rectangle(maxWidth, maxHeight);
Document document = new Document(pagesize);
PdfWriter.getInstance(document, output);
document.open();
for (int imageIndex = 0; imageIndex < numPages; imageIndex++) {
img = images.get(imageIndex);
img.setAlignment(Image.MIDDLE);
document.setPageSize(new Rectangle(maxWidth, maxHeight));
document.add(img);
document.newPage();
}
document.close();
and then from the angular side , I am using window.open to show the PDF file like this
.subscribe(fileUrl => {
dialogRef.close();
windowRef = window.open(..${fileUrl}#toolbar=0, '_blank', 'width=800,height=600');
this.addToAttachmentManager(windowRef, processId);},
() => dialogRef.close());
When the pdf is opened in the browser , I want to hide the Total page count only from the pdf toolbar panel
reference img