IronPDF 에서 글꼴 사용: 모범 사례
IronPDF 글꼴을 내장하나요?
HTML 내에서 사용된 모든 글꼴(하위 집합)은 글꼴의 글꼴 포함 속성이 편집 가능으로 설정되어 있는 경우 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");
' Example of code to unembed fonts from a PDF using IronPDF
Imports IronPdf
' Load the existing PDF document
Private 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
});
' Example of code to embed fonts in a PDF using IronPDF
Imports IronPdf
' Create a new PdfDocument or load an existing one
Private pdf = (New IronPdf.HtmlToPdf()).RenderHtmlAsPdf("<h1>Hello World</h1>")
' Ensure all fonts are embedded
pdf.SaveAs("document-with-embedded-fonts.pdf", New PdfSaveOptions With {.EmbedFonts.Enabled = True})

