PDFのバーコードリーダーオプションを設定
IronBarcodeには、PDF専用にカスタマイズおよび最適化された読取をサポートするためのオプションがPdfBarcodeReaderOptionsクラスにさまざまあります。 これはPDFのパスワード管理、スキャンするページの選択、PDFを解析する際のDPI、および読み取り品質を向上させるために必要な追加のスケーリングを処理します。
using IronBarCode;
PdfBarcodeReaderOptions myPdfOptionsExample = new PdfBarcodeReaderOptions()
{
// The password string to open the PDF if there is one
Password = "password123",
// Pages of the PDF you want to scan
PageNumbers = new[] { 1, 3 },
// By default, all barcode formats are scanned for
// Specifying a subset of barcode types to search for would improve performance
ExpectBarcodeTypes = BarcodeEncoding.AllOneDimensional,
// The DPI (dots per inch) to render each barcode image for reading
DPI = 72,
// The scaling factor to scale the width and height when converting the PDF to image
// Default is 3.5 for both dimensions
Scale = 4
};
// Read the pdf with the options applied
var results = BarcodeReader.ReadPdf("barcode.pdf", myPdfOptionsExample);
Imports IronBarCode
Private myPdfOptionsExample As New PdfBarcodeReaderOptions() With {
.Password = "password123",
.PageNumbers = { 1, 3 },
.ExpectBarcodeTypes = BarcodeEncoding.AllOneDimensional,
.DPI = 72,
.Scale = 4
}
' Read the pdf with the options applied
Private results = BarcodeReader.ReadPdf("barcode.pdf", myPdfOptionsExample)
IronBarcodeには、PDF専用にカスタマイズおよび最適化された読取をサポートするためのオプションがPdfBarcodeReaderOptionsクラスにさまざまあります。 これはPDFのパスワード管理、スキャンするページの選択、PDFを解析する際のDPI、および読み取り品質を向上させるために必要な追加のスケーリングを処理します。
Install-Package BarCode
質問がありますか?開発チームに連絡する
クレジットカードは不要です
試用キーはメールに送信されるはずです。
正常に送信されました。
もし届かない場合は、
support@ironsoftware.comにお問い合わせください。
無料で始めましょう
クレジットカードは不要です
透かしなしで本番環境でテストしてください。
必要な場所で動作します。
30日間、完全に機能する製品をご利用いただけます。
数分で稼働させることができます。
製品トライアル期間中にサポートエンジニアリングチームへの完全アクセス
クレジットカードやアカウント作成は不要です。
試用キーはメールにあるはずです。
もしない場合は、
support@ironsoftware.comまでご連絡ください。
無料で始めましょう
クレジットカードは不要です
透かしなしで本番環境でテストしてください。
必要な場所で動作します。
30日間、完全に機能する製品をご利用いただけます。
数分で稼働させることができます。
製品トライアル期間中にサポートエンジニアリングチームへの完全アクセス
30分の個別デモを予約する。
契約なし、カード情報不要、義務なし。

10 .NET API製品オフィスドキュメントのために