PowerTools ActiveReports for .NET 11.0J
NeverEmbedFonts プロパティ (PdfExport)
使用例 

PDFドキュメントに埋め込む必要のないフォントを示す、一連の値のセミコロン区切りの文字列を取得または設定します。"*"を指定すると、レポート内で使用している全てのフォントを非埋め込みに設定できます。
構文
'宣言
 
Public Property NeverEmbedFonts As String
public string NeverEmbedFonts {get; set;}

プロパティ値

フォント名を示すセミコロン区切り文字列。
解説

このプロパティに設定されたフォントは、PDFデータ内にフォントデータとして埋め込まれません(非埋め込みフォントとなります)。デフォルトは、"Arial;Courier New;Times New Roman" です。

ActiveReports for .NET Professional エディションを使用している場合、PDFファイルに外字を出力できます。Professionalではフォントに外字が含まれていると、外字の部分だけはこのプロパティの設定内容に関わらず、必ずPDFデータ内に埋め込んで出力します。これにより、外字が存在しないマシン上でPDFファイルを閲覧した場合でも、正しい表示結果を得ることができます。詳細についてはPDF外字を参照してください。

■ 注記 ■

Standardでは、欧文フォント(CopdPage 1252)のみ非埋め込みフォントとすることができます。日本語フォントのフォント名をこのプロパティに設定した場合には、不正なPDFファイルが出力されますので、ご注意ください。Professionalは、欧文フォント以外のフォントについても、非埋め込みフォントとすることが可能です。


使用例
private void btnExport_Click(object sender, System.EventArgs e)
{
    SectionReport1 rpt = new SectionReport1();
    GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport p = new GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport();
    p.ExportBookmarks = false;
    p.ImageResolution = 300;
    p.ImageQuality = GrapeCity.ActiveReports.Export.Pdf.Section.ImageQuality.Highest;
    p.NeverEmbedFonts = "Arial;Times New Roman;Verdana";
    rpt.Run();
    this.viewer1.Document = rpt.Document;
    p.Export(rpt.Document, Application.StartupPath + "\\p.pdf");
}
Private Sub btnExport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim rpt As New SectionReport1
    Dim p As New GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport
    p.ExportBookmarks = False
    p.ImageResolution = 300
    p.ImageQuality = GrapeCity.ActiveReports.Export.Pdf.Section.ImageQuality.Highest
    p.NeverEmbedFonts = "Arial;Times New Roman;Verdana"
    rpt.Run()
    Me.Viewer1.Document = rpt.Document
    p.Export(rpt.Document, Application.StartupPath & "\p.pdf")
End Sub
参照

関連項目

PdfExport クラス
PdfExport メンバ

 

 


©2003-2017 GrapeCity inc. All rights reserved.