Erweiterungen
This commit is contained in:
@@ -20,8 +20,7 @@ import java.io.ByteArrayInputStream;
|
|||||||
@RolesAllowed("ADMIN")
|
@RolesAllowed("ADMIN")
|
||||||
public class PdfTestView extends VerticalLayout {
|
public class PdfTestView extends VerticalLayout {
|
||||||
private final SystemInvoiceService systemInvoiceService;
|
private final SystemInvoiceService systemInvoiceService;
|
||||||
private IFrame pdfViewer;
|
|
||||||
|
|
||||||
public PdfTestView(SystemInvoiceService systemInvoiceService) {
|
public PdfTestView(SystemInvoiceService systemInvoiceService) {
|
||||||
this.systemInvoiceService = systemInvoiceService;
|
this.systemInvoiceService = systemInvoiceService;
|
||||||
|
|
||||||
@@ -42,7 +41,7 @@ public class PdfTestView extends VerticalLayout {
|
|||||||
buttonLayout.setSpacing(true);
|
buttonLayout.setSpacing(true);
|
||||||
|
|
||||||
// Initialize PDF viewer
|
// Initialize PDF viewer
|
||||||
pdfViewer = new IFrame();
|
IFrame pdfViewer = new IFrame();
|
||||||
pdfViewer.setWidth("100%");
|
pdfViewer.setWidth("100%");
|
||||||
pdfViewer.setHeight("800px");
|
pdfViewer.setHeight("800px");
|
||||||
pdfViewer.getStyle().set("border", "1px solid #ccc");
|
pdfViewer.getStyle().set("border", "1px solid #ccc");
|
||||||
|
|||||||
Reference in New Issue
Block a user