次のコードを使用して、htmlをpdfファイルに保存しています。しかし、if (!theDoc.Chainable(theID)) でコンパイルに失敗します。私は WebSupergoo.ABCpdf4 を使用しています。コードの先頭に追加されます。これはバージョンの問題ですか?ABCPdf 4でHTML文字列をpdfファイルに保存する他の方法はありますか.
エラー メッセージは、「'WebSupergoo.ABCpdf4.Doc' には 'Chainable' の定義が含まれておらず、タイプ 'WebSupergoo.ABCpdf4.Doc' の最初の引数を受け入れる拡張メソッド 'Chainable' が見つかりませんでした (using ディレクティブがありませんか?またはアセンブリ参照?)
Doc theDoc = new Doc();
theDoc.Rect.Inset(10, 50);
theDoc.Page = theDoc.AddPage();
int theID;
theID = theDoc.AddImageHtml(str);
while (true)
{
if (!theDoc.Chainable(theID))
break;
theDoc.Page = theDoc.AddPage();
theID = theDoc.AddImageToChain(theID);
}
for (int i = 1; i <= theDoc.PageCount; i++)
{
theDoc.PageNumber = i;
theDoc.Flatten();
}
theDoc.Save("path where u want 2 save" + ".pdf");
theDoc.Clear();
すべての助けに感謝します。