loadDocument method

void loadDocument(
  1. Pointer<MuPdfInst> ctx,
  2. String p
)

Implementation

void loadDocument(Pointer<MuPdfInst> ctx, String p) {
  var _p = p.toNativeUtf8().cast<Int8>();
  int suc = pdflib.loadDocument(ctx, _p);
  calloc.free(_p);
  if (suc > 0) {
    throw suc;
  }
}