This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| try { | |
| IWDPDFDocumentHandler pdfDocumentHandler = WDPDFDocumentFactory.getDocumentHandler(); | |
| IWDPDFDocumentCreationContext pdfNewDocContext = pdfDocumentHandler.getDocumentCreationContext(); | |
| String templateUrl = WDURLGenerator.getPublicResourcePath(wdComponentAPI.getDeployableObjectPart(), "IF.xdp"); | |
| InputStream template = new FileInputStream(templateUrl); | |
| byte[] byteFileArray = new byte[template.available()]; | |
| template.read(byteFileArray); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| ByteArrayInputStream pdfInputStream = null; | |
| try { | |
| IWDPDFDocumentHandler pdfDocumentHandler = WDPDFDocumentFactory.getDocumentHandler(); | |
| IWDPDFDocumentCreationContext pdfDocCreationContext = pdfDocumentHandler.getDocumentCreationContext(); | |
| String templateUrl = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(),this.xdpSource); | |
| InputStream template = new FileInputStream(templateUrl); | |
| ByteArrayOutputStream templateStream = inputToOutputStream(template); | |
NewerOlder