prepared.put(document, documentsAndContent.get(document));
}
}
return prepared;
}
<BUG>Optional<PdfInfo> validateAndSetNrOfPages(Channel channel, Document document, byte[] content, Fn0<PdfValidationSettings> pdfValidationSettings) {
</BUG>
if (channel == PRINT && !document.is(PDF)) {
throw new DigipostClientException(ErrorCode.INVALID_PDF_CONTENT,
"PDF is required for direct-to-print messages. Document with uuid " + document.uuid + " had filetype " + document.getDigipostFileType());

prepared.put(document, documentsAndContent.get(document));
}
}
return prepared;
}
Optional<PdfInfo> validateAndSetNrOfPages(Channel channel, Document document, byte[] content, Supplier<PdfValidationSettings> pdfValidationSettings) {
if (channel == PRINT && !document.is(PDF)) {
throw new DigipostClientException(ErrorCode.INVALID_PDF_CONTENT,
"PDF is required for direct-to-print messages. Document with uuid " + document.uuid + " had filetype " + document.getDigipostFileType());
