Error: "Dont know how to JBIG2Decode"

  • I am getting the error "Dont know how to JBIG2Decode" when trying to view certain PDFs (not all of them).

    -I am running Delphi 10,1 (Berlin)

    -We purchased "WPViewPDF V4 Plus"

    -My search path has "C:\Program Files (x86)\WPViewPDF\VCL"

    -My Uses clause has "WPViewPDF3"

    My initialization code

    FWPViewPDF := TWPViewPDF.Create(Self);

    FWPViewPDF.ViewerStart( **My license Info Here**);

    FWPViewPDF.Parent := Self;

    FWPViewPDF.Visible := False;

    FWPViewPDF.ViewControls := [];

    FWPViewPDF.ViewOptions := [];

    FWPViewPDF.SecurityOptions := [wpDisableSave, wpDisableCopy, wpDisableForms, wpDisableEdit, wpDisablePDFSecurityOverride];

    FWPViewPDF.AllowMovePages := False;

    FWPViewPDF.Name := 'WPViewPDF1';

    FWPViewPDF.Command(140, 1); //COMPDF_NoViewer

    FWPViewPDF.Command(132, 0); //COMPDF_DisableAntiAlias


    I see some mention of JBIG data for your component, so I imagine there is a way to get this resolved.

    Any information you can provide will be helpful.

    Thanks,

    Adam