Open print dialog automatically when PDF opened, using iText

前端 未结 1 860
萌比男神i
萌比男神i 2021-01-14 15:56

I need to be able provide the print dialog automatically when a pdf is opened. I need to do it with javascript and I was wondering if it is possible for me to append said ja

1条回答
  •  我在风中等你
    2021-01-14 16:26

    I did something like this without Javascript, using iText API calls:

    PdfWriter writer = ...;
    PdfAction action = new PdfAction(PdfAction.PRINTDIALOG);
    writer.setOpenAction(action);
    

    0 讨论(0)
提交回复
热议问题