ng2-pdfjs-viewer: PDF is all black

506 views Asked by At

I have a Problem with ng2-pdfjs-viewer. Sometimes the PDF I try to display is all black. I figured out, that it appears to be black whenever the PDf was created with j&k DPU-X. If the PDF was created by OmniPage CSDK 19 it works just fine. So the Problem is, that I acquire the PDF by REST call and that the exact same PDF appears sometimes to be created with j&k DPU-X and on another call with OmniPage CSDK 19. I also see, that the one which is all black is way smaller despite the Byte[] I use is the same for both cases. Is there any possibility to change these information or how are they determined?

Console log for both cases

Document details for the black one

Document details for the working one

Thank you for you help and input.

0

There are 0 answers