Save PDF as a bitmap in C++ Builder

  • Hello support team,

    I want to save a pdf file as a bitmap.

    Now i started to open a file to the WPViewPDF and call the function. The file will be created, but it is only an empty page.

    Can anybody help me? Where is my mistake?

    Thank you very much.

    Greetings,
    Testuser

    • Offizieller Beitrag

    Please better use this commands.

    Create JPEG file strparm= "nr=filename", example "1=c:\pageone.emf"
    COMPDF_MakeJPEG = 167

    Set the resolution for the created JPEG file, default is 72
    COMPDF_MakeJPEGSetRes = 166;

    With the second command you actually change the size of the JPEG file.

    V2 also has:
    COMPDF_MakeJPEGSetCompression = 168; // WPViewPDF V2 - set JPEG Compression

    Regards,

    Julian