discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

exportPdfBytes function

Future<Uint8List> exportPdfBytes(
  1. DraftDocument document,
  2. PageComponent page, {
  3. required Uint8List fontBytes,
  4. double tableColorOpacity = kTableColorOpacity,
})

page of document as a vector PDF with fontBytes' font embedded, the separators omitted, the coloured tables filled under the drawing at tableColorOpacity (plan colours spec PC-7): what Export → PDF writes and what Print hands to the printer (spec 13 D8, D9).

Implementation

Future<Uint8List> exportPdfBytes(DraftDocument document, PageComponent page,
        {required Uint8List fontBytes,
        double tableColorOpacity = kTableColorOpacity}) =>
    exportPagePdf(
        document: document,
        page: page,
        fontBytes: fontBytes,
        omitOwners: exportOmitOwners(document),
        underlay: tableColorUnderlay(document, tableColorOpacity));