Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-17 Thread Graeme Geldenhuys
On 2018-01-16 17:46, Julio Jiménez wrote: Generated PDF is ok, even subset TTF font embedding. On a side note: The TTF font subset embedding took forever to implement. I read the PDF specs over and over and still couldn't figure it out. I then reverse engineered existing PDF's generated by

Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-16 Thread Julio Jiménez
Git it working... all except images.. I'll take a look later. Generated PDF is ok, even subset TTF font embedding. Thanks. -- Julio Jiménez Borreguero -- Check out the vibrant tech community on one of the world's most

Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-16 Thread Julio Jiménez
At the end I got it working (compiling) but had to modify two units: fppdf and fpttfsubsetter, this last used by fppdf I haven't generated any pdf yet, only compiling.. but it's a first step, the worse is the need to modify a standard fpc package. Regards -- Julio Jiménez Borreguero

Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-16 Thread Julio Jiménez
2018-01-16 17:55 GMT+01:00 Martin Schreiber : > > The uses clauses in fpPDF must be extended, please see the Zeos example I > posted. > > Is what I did. Fails creating streams... unit zstream (it uses the fpcompatibility one) -- Julio Jiménez Borreguero

Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-16 Thread Martin Schreiber
On Tuesday 16 January 2018 17:50:13 Julio Jiménez wrote: > 2018-01-16 17:26 GMT+01:00 Martin Schreiber : > > On Tuesday 16 January 2018 09:55:36 Julio Jiménez wrote: > > > > I also tried it but no luck. I see there is fpimage in > > > > > > "lib/common/fpccompatibility" and

Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-16 Thread Julio Jiménez
2018-01-16 17:26 GMT+01:00 Martin Schreiber : > On Tuesday 16 January 2018 09:55:36 Julio Jiménez wrote: > > > > > > I also tried it but no luck. I see there is fpimage in > > > > "lib/common/fpccompatibility" and fppdf uses it may be you need a fppdf > in > >

Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-16 Thread Martin Schreiber
On Tuesday 16 January 2018 09:55:36 Julio Jiménez wrote: > > > > I also tried it but no luck. I see there is fpimage in > > "lib/common/fpccompatibility" and fppdf uses it may be you need a fppdf in > fpccompatibility... > What happens if you recompile the fpPDF units with

Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-16 Thread Julio Jiménez
2018-01-16 0:58 GMT+01:00 Graeme Geldenhuys : > > Strange, considering that I implemented most of fcl-pdf using MSEide. :) > Granted, I didn't build MSE* applications, but I can't see why they > wouldn't work together. fcl-pdf is just another library of Object

Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-16 Thread Julio Jiménez
2018-01-16 6:47 GMT+01:00 Martin Schreiber : > > > > If you want it to combine it with MSEgui units "mclasses" must be added > after "classes" in uses clauses of fpPDF, see for example how it is done > in Zeoslib: > " > unit ZAbstractDataset; > > interface > > {$I

Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-15 Thread Martin Schreiber
On 01/15/2018 09:38 PM, Julio Jiménez wrote: > > > 2018-01-15 19:39 GMT+01:00 Martin Schreiber >: > > > Please check the compiler commandline with 'Project'-'Options'-'Show > commandline' if is the same as you use for fpc. > > > I

Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-15 Thread Graeme Geldenhuys
On 2018-01-15 20:38, Julio Jiménez wrote: I did before asking. It fails compiling when you include the MSE* paths. BTW have you tried adding the unit fppdf to any MSE project? I can use other fpc packages and no problem. Strange, considering that I implemented most of fcl-pdf using MSEide. :)

Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-15 Thread Julio Jiménez
2018-01-15 19:39 GMT+01:00 Martin Schreiber : > > Please check the compiler commandline with 'Project'-'Options'-'Show > commandline' if is the same as you use for fpc. > I did before asking. It fails compiling when you include the MSE* paths. BTW have you tried adding the

Re: [MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-15 Thread Martin Schreiber
On Monday 15 January 2018 18:12:00 Julio Jiménez wrote: > Hi Martin. > > I tried to write a little example using fcl-pdf and it fails to compile > using MSE* > > If I compile the same example using fpc (without MSE includes, paths...) > all is fine. > Please check the compiler commandline with

[MSEide-MSEgui-talk] Freepascal package fcl-pdf not working with MSE

2018-01-15 Thread Julio Jiménez
Hi Martin. I tried to write a little example using fcl-pdf and it fails to compile using MSE* If I compile the same example using fpc (without MSE includes, paths...) all is fine. The error: Free Pascal Compiler version 3.0.5 [2017/12/28] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl