使用火柴盒在文本流中插入 PDF 是或否?

Using matchbox to insert PDF in text flow Yes or No?

我正在使用火柴盒将图像插入到 text_flow 中,效果很好,我需要对小型 PDF 图表做同样的事情 - 在我走这条路之前,我只是想知道它是否可能......是/否?

当然可以,之后您只需使用 PDF 页面即可,而不是调整图像。因此,当您执行以下 PDFlib Cookbook 示例 http://www.pdflib.com/pdflib-cookbook/text-output/wrap-text-around-images/(案例 4)时,只需放置一个 PDI 页面而不是 fit_image():

                x1 = p.info_matchbox(matchboxnames[m][0], i, "x1");
                y1 = p.info_matchbox(matchboxnames[m][0], i, "y1");
                width = p.info_matchbox(matchboxnames[m][0], i, "width");
                height = p.info_matchbox(matchboxnames[m][0], i, "height");
                p.fit_pdi_page(page, x1, y1,
                    "boxsize {" + width + " " + height +
                    "} fitmethod meet position=center");