visual-c++pdflib

PDFLib fails to create PDF file in pvf


mpdf.create_pvf(card, mpImgBytes, mlen, L"");
int inDoc = mpdf.open_pdi_document(card, L"");

I am using pdflib version 9.3.

open_pdi_document returns -1

create_pvf creates an empty file of size 0. Any idea on what could be wrong?

I am running pdflib on Windows 10, using C++.


Solution

  • Not sure how relevant my answer is, but this could help someone.

    Installing ghostscript on my machine, resolved the error.