Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-11

Powerpdf

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dariusz Mazur

Hi
I've made several changes to powerpdf unit
it consist:
- possibility of using char form charset 1250:aogonek, Sacute, Zdotaccent (simple change to other)
- draw vertical text

using this unit without dependency of Lazarus (even pdfImage depends only from fpImage)

My source in http://www.emadar.com/fpc/powerpdf(darek).zip

Is any interesting to integrate this with ccr version?

And by the way. I write library, which can draw on canvas form screen (tControlCanvas), printer, PDF, postscript and soon on HTML canvas. I use them to prepare reports on different media.
Is any , who need something like that.

Darek

Reply by email

Jesus Reyes
to Dariusz Mazur

--- El jue 26-nov-09, Dariusz Mazur escribi?:

Show quoted text 17 lines
De:: Dariusz Mazur Asunto: [Lazarus] Powerpdf A: "Lazarus mailing list" Fecha: jueves 26 de noviembre de 2009, 12:03 Hi I've made several changes to powerpdf unit it consist: - possibility of using char form charset 1250:aogonek, Sacute, Zdotaccent (simple change to other) - draw vertical text using this unit without dependency of Lazarus (even pdfImage depends only from fpImage) My source in http://www.emadar.com/fpc/powerpdf(darek).zip Is any interesting to integrate this with ccr version?

In the mean time, PowerPDF (our version) can convert from UTF-8 to 1252 and support for the rest of 1250 not included in 1252 can be added easily.

Maybe you based your port on very early PowerPdf version or maybe our version was based on a too old powerpdf version? (I think the former) I have compared both versions and they are too diferent.

have you tried our version?, what are the main advantages of your version over ours? (I understand that a powerpdf independent of LCL it's good one).

Jesus Reyes A.

Show quoted text 7 lines
And by the way. I write library, which can draw on canvas form screen (tControlCanvas), printer, PDF, postscript? and soon on HTML canvas. I use them to prepare reports on different media. Is any , who need something like that.

Except by HTML canvas (and not as easy as changing just the backend but) it seems there is already support for everything else but I'm not sure maybe you need features that are currently available in the current implementation?

Show quoted text 5 lines
--? Darek

Jesus Reyes A.

Encuentra las mejores recetas en Yahoo! Cocina.
http://mx.mujer.yahoo.com/cocina/

Reply by email

Dariusz Mazur
to Jesus Reyes

Jesus Reyes pisze:

Show quoted text 24 lines
--- El jue 26-nov-09, Dariusz Mazur escribi?: > De:: Dariusz Mazur > Asunto: [Lazarus] Powerpdf > A: "Lazarus mailing list" > Fecha: jueves 26 de noviembre de 2009, 12:03 > Hi > I've made several changes to powerpdf unit > it consist: > - possibility of using char form charset 1250:aogonek, > Sacute, Zdotaccent (simple change to other) > - draw vertical text > > using this unit without dependency of Lazarus (even > pdfImage depends only from fpImage) > > My source in http://www.emadar.com/fpc/powerpdf(darek).zip > > Is any interesting to integrate this with ccr version? > In the mean time, PowerPDF (our version) can convert from UTF-8 to 1252 and support for the rest of 1250 not included in 1252 can be added easily.

I did not notice that. But my solution has proper compute textwidth Main problem are diacritic char

Maybe you based your port on very early PowerPdf version or maybe our version was based on a too old powerpdf version? (I think the former)

I use powerPdf for years

I have compared both versions and they are too diferent.

not so many, but i know this, thus I send whole, and someone can choose what part can be prepare

have you tried our version?,

yes, but not whole,
pdfimage is base direct from ccr version

what are the main advantages of your version over ours? (I understand that a powerpdf independent of LCL it's good one).

some minor bugs like

    procedure SetTextMatrix(a, b, c, d, x, y: Word);             {  Tm  }

should use single
or circling dependency (pdfFonts use pdfdoc)

Darek

Reply by email

Jesus Reyes
to Dariusz Mazur

--- El jue 26-nov-09, Dariusz Mazur escribi?:

Show quoted text 7 lines
> In the mean time, PowerPDF (our version) can convert from UTF-8 to 1252 and support for the rest of 1250 not included in 1252 can be added easily. >??? I did not notice that. But my solution has? proper compute textwidth Main problem are diacritic char

[...]

Show quoted text 17 lines
> what are the main advantages of your version over ours? (I understand that a powerpdf independent of LCL it's good one). >??? some minor bugs like ? ? procedure SetTextMatrix(a, b, c, d, x, y: Word);? ? ? ? ? ???{? Tm? } should use single or circling? dependency (pdfFonts use pdfdoc) -- ? Darek

I will keep your code at hand for future improvement of ccr PowerPDF. Thank you.

Jesus Reyes A.

Encuentra las mejores recetas en Yahoo! Cocina.
http://mx.mujer.yahoo.com/cocina/

Reply by email

Michael Van Canneyt
to Dariusz Mazur: Hi I've made several changes to powerpdf unit it consist: - possibility of using char…
Dariusz Mazur wrote 18 lines
Hi I've made several changes to powerpdf unit it consist: - possibility of using char form charset 1250:aogonek, Sacute, Zdotaccent (simple change to other) - draw vertical text using this unit without dependency of Lazarus (even pdfImage depends only from fpImage) My source in http://www.emadar.com/fpc/powerpdf(darek).zip Is any interesting to integrate this with ccr version? And by the way. I write library, which can draw on canvas form screen (tControlCanvas), printer, PDF, postscript and soon on HTML canvas. I use them to prepare reports on different media. Is any , who need something like that.

Absolutely. But it exists already: all you need to do is draw on a TFPCustomCanvas class; Your code will then be able to draw on screen, printer, pdf and whatnot, because the canvas classes in the LCL descend from TFPCustomCanvas.

Michael.

Reply by email

Dariusz Mazur
to Michael Van Canneyt

Michael Van Canneyt pisze:

Show quoted text 27 lines
On Thu, 26 Nov 2009, Dariusz Mazur wrote: > Hi > I've made several changes to powerpdf unit > it consist: > - possibility of using char form charset 1250:aogonek, Sacute, > Zdotaccent (simple change to other) > - draw vertical text > > using this unit without dependency of Lazarus (even pdfImage depends > only from fpImage) > > My source in http://www.emadar.com/fpc/powerpdf(darek).zip > > Is any interesting to integrate this with ccr version? > > And by the way. I write library, which can draw on canvas form screen > (tControlCanvas), printer, PDF, postscript and soon on HTML canvas. > I use them to prepare reports on different media. > Is any , who need something like that. Absolutely. But it exists already: all you need to do is draw on a TFPCustomCanvas class; Your code will then be able to draw on screen, printer, pdf and whatnot, because the canvas classes in the LCL descend from TFPCustomCanvas.

of course its good choice, and I say about something similar, but its not ready do use:

powerPDF is not based on it,
second: what about scaling factor, PDF has different handling bitmap, font style are also different
there is also problem with last point on drawing line

where is implementation of postscript and html

Darek

Reply by email