Jump to content
We've recently updated our Privacy Statement, available here ×

keeely

Members
  • Posts

    7
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by keeely

  1. Assuming I am not embedding my font, can I use a font by name during PDF generation without licensing it? 

    I don't know much about PDF generation, but I'd assume that only a small subset of the information in the font is used at PDF creation time, the majority being used when it is rendered for display.  I'd like to know if I can somehow extract just this smaller amount of info, and will it require licensing in the same way as the complete font?

  2. I have managed to set the global PDF font property by referencing the absolute path to a TTF with code like this:

    JRPropertiesUtil.getInstance(jrContext).setProperty("net.sf.jasperreports.default.pdf.font.name","C:\fonts\arialuni.ttf");

    I would now like to switch to using a font in a .jar file.  I've generated the font using the export from the studio and put it in my classpath.  How to I reference it from within the Java code?

  3. I opened a .jrxml file in Jaspersoft Studio, I opened the properties -. jaspersoft studio -> Exporters -> PDF exporters , selected 'Use file settings' , selected my font.

    I expected  to see this font saved in the .jrxml file but it doesn't appear to be there.  Where does that setting get stored please?

    thanks.

  4. I noticed Excel 2010 does a good job of exporting a CSV to a PDF.  I get a PDF version 1.3 document and all unicode characters (including Japanese) appear to be visible on all PDF viewers.  Jasper Reports seems to default to Helvetica with codepage cp1252, so Japanese characters aren't displayed.

    I'd like to do the same thing with Jasper Reports.  How do I go about taking the following strings (extracted from the Excel PDF) and turn them into instructions for Jasper Reports?  Which font(s) should I specify?

    Thanks!

    << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs1 7 0 R >> /Font << /TT2 9 0 R
    /G1 10 0 R >> >>
    << /Type /Font /Subtype /TrueType /BaseFont /YBNGKU+Calibri /FontDescriptor
    14 0 R /ToUnicode 15 0 R /FirstChar 33 /LastChar 45 /Widths [ 525 525 799
    525 498 349 507 507 507 527 400 335 715 ] >>
    << /Type /FontDescriptor /FontName /YBNGKU+Calibri /Flags 4 /FontBBox [-503 -307 1240 1026]
    /ItalicAngle 0 /Ascent 952 /Descent -269 /CapHeight 644 /StemV 0 /XHeight
    476 /AvgWidth 521 /MaxWidth 1328 /FontFile2 17 0 R >>
    << /Type /Font /Subtype /Type0 /Encoding /Identity-H /DescendantFonts [19 0 R]
    /BaseFont /CVQVSA+MS-Mincho /ToUnicode 20 0 R >>
    << /Type /Font /Subtype /CIDFontType2 /BaseFont /CVQVSA+MS-Mincho /CIDSystemInfo
    << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> /W 22 0 R /DW 1000
    /FontDescriptor 23 0 R /CIDToGIDMap 24 0 R >>
    << /Type /FontDescriptor /FontName /CVQVSA+MS-Mincho /Flags 5 /FontBBox [-977 -137 996 859]
    /ItalicAngle 0 /Ascent 859 /Descent -141 /CapHeight 668 /StemV 0 /XHeight
    438 /AvgWidth 500 /MaxWidth 1000 /FontFile2 25 0 R >>

     

×
×
  • Create New...