IronPDFのフォント:ベストプラクティス
IronPDFはフォントを埋め込みますか?
HTML内で使用されているすべてのフォント(サブセット)は、フォントの埋め込みプロパティがEditableに設定されている場合、自動的にPDFに埋め込まれます。 これにより、PDFは同じフォントで表示され、不整合を防ぎます。
IronPDFはフォントを削除できますか?
はい、IronPDFはフォントを削除できます。 技術的には、フォントを解除(アンエンベッド)することによってこれを実現します。 PDFからフォントを管理および解除する方法の詳細な手順については、以下のハウツー記事をご覧ください: 'PDFのフォントを管理する方法'
// Example of code to unembed fonts from a PDF using IronPDF
using IronPdf;
// Load the existing PDF document
var pdf = PdfDocument.FromFile("existing-document.pdf");
// Remove fonts by unembedding them
pdf.UnembedAllFonts();
// Save the updated PDF document
pdf.SaveAs("document-without-embedded-fonts.pdf");// Example of code to unembed fonts from a PDF using IronPDF
using IronPdf;
// Load the existing PDF document
var pdf = PdfDocument.FromFile("existing-document.pdf");
// Remove fonts by unembedding them
pdf.UnembedAllFonts();
// Save the updated PDF document
pdf.SaveAs("document-without-embedded-fonts.pdf");PDFにフォント全体を埋め込むことはできますか?
はい、IronPDFを使用すると、PDFドキュメントにフォントを埋め込むことができます。 フォントを埋め込むことで視覚的一貫性が確保され、閲覧者のシステムにフォントがインストールされていない場合でも、望ましいフォントで文書が表示されます。 フォントを埋め込むと、PDFのファイルサイズが増加することがあることに注意してください。 PDFにフォントを管理および埋め込む方法に関する詳細な手順については、ハウツー記事をご覧ください: 'PDFのフォントを管理する方法'
// Example of code to embed fonts in a PDF using IronPDF
using IronPdf;
// Create a new PdfDocument or load an existing one
var pdf = new IronPdf.HtmlToPdf().RenderHtmlAsPdf("<h1>Hello World</h1>");
// Ensure all fonts are embedded
pdf.SaveAs("document-with-embedded-fonts.pdf", new PdfSaveOptions
{
EmbedFonts.Enabled = true
});// Example of code to embed fonts in a PDF using IronPDF
using IronPdf;
// Create a new PdfDocument or load an existing one
var pdf = new IronPdf.HtmlToPdf().RenderHtmlAsPdf("<h1>Hello World</h1>");
// Ensure all fonts are embedded
pdf.SaveAs("document-with-embedded-fonts.pdf", new PdfSaveOptions
{
EmbedFonts.Enabled = true
});





