Re: Doing database creation before EOF gets involved ?

2014-01-30 Thread Theodore Petrosky
I have thought about this a bunch of times. My DB of choice is Postgresql. When you create the database cluster, PG automatically creates at least two databases. Template1 and the basis of Template1. I have often thought it would be possible to first let my app connect to Template1 as it must e

Doing database creation before EOF gets involved ?

2014-01-30 Thread Gavin Eadie
I'm working on a WebObjects project which uses a database of minor complexity, and am wrestling mentally with finding a good way to let the first run create the database. Currently, the first run needs the EOModel's connection record to find the database (which is created my hand, but empty), and

Re: Including Fonts into PDF using ERPDFGeneration

2014-01-30 Thread Johann Werner
Hi Christoph, that’s how I create a PDF using ERPDFGeneration with custom fonts: PDFTemplate pdfPage = pageWithName(PDFTemplate.class); NSMutableDictionary config = new NSMutableDictionary(); config.takeValueForKey(new NSArray("Fonts/MyFont.ttf“, "Fonts/MyOtherFont.ttf"), "fonts"); NSData pdf =

Re: Including Fonts into PDF using ERPDFGeneration

2014-01-30 Thread Theodore Petrosky
actually the font name would be something like Arial.ttf or Helvetica.ttf the docs do say 'filename'. On Jan 30, 2014, at 7:38 AM, Theodore Petrosky wrote: > the docs say: > > (optional) array of font filenames to include for PDF generation > > It doesn't say a dictionary. > > NSArray

Re: Including Fonts into PDF using ERPDFGeneration

2014-01-30 Thread Theodore Petrosky
the docs say: (optional) array of font filenames to include for PDF generation It doesn't say a dictionary. NSArray fontsArray = NSArray("Arial", "Helvetica"); Is how I would do it according to the documentation. Of course, I generally just use JasperReports and convert fonts to .jar files and

Including Fonts into PDF using ERPDFGeneration

2014-01-30 Thread Christoph Wick
Hi List, I try to include fonts into a PDF document using ERPDFGeneration. The documentation of ERPFDWrapper tells me that there is a binding called "fonts". The binding is described as "(optional) array of font filenames to include for PDF generation". OK so far. But whatever I set the "fonts