Sign in Join

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

Mailing lists / lazarus / 2013-07

PDF in a Form

9 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Edgar García

Good Day!

I'm new to Lazarus and would like to know how I can display a PDF in a Form ...

Thank you!

********************************************
The information contained in this e-mail is privileged and confidential information intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, copy or taking action in reliance upon this email is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and then delete this e-mail in its entirety. ********************************************
Este correo electronico es confidencial y/o puede contener informacion privilegiada. Si usted no es su destinatario o no es alguna persona autorizada por este para recibir sus correos electronicos, NO debera usted utilizar, copiar, revelar, o tomar ninguna accion basada en este correo electronico o cualquier otra informacion incluida en el, favor de notificar al remitente de inmediato mediante el reenvio de este correo electronico y borrar a continuacion totalmente este correo electronico y sus anexos

Reply by email

Mark Morgan Lloyd
to Reinier Olislagers: <snip useless disclaimer> Have a look here: http://forum.lazarus.freepascal.org/index.php/…
Reinier Olislagers wrote 12 lines
On 12-7-2013 4:42, Edgar Garc?a wrote: > Good Day! > > I'm new to Lazarus and would like to know how I can display a PDF in a > Form ... > > Thank you! > <snip useless disclaimer> Have a look here: http://forum.lazarus.freepascal.org/index.php/topic,20221

Can I ask a related question please. Is there an /efficient/ way of opening a PDF at a given section or page+fraction? Area of application is tagging lines of code with references to hardware manuals, some of which might be ancient bitmaps, and at present I'm resigned to pre-processing each PDF into a database of PNG images.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Koenraad Lelong
to Malcolm Poole: Also for a simpler example and more up-to date version of the bindings mentioned in that…
Malcolm Poole wrote

Malcolm,

Reading this thread I went to the link. It seems this is a POS system. Since I'm thinking about writing a POS system myself I downloaded firepos and I tried to compile it. But I'm having dependency problems, fpgui related. I have a development system (odroid arm-linux) that has lazarus 1.1 and fpc 2.7.1 (both some svn downloads). I also have fpgui 1.0. I tried to set the path's to include that fpgui in firepos, or the fpgui in the firepos tree, but both fail because some (different) units are not found.
Could you provide some guide how to setup lazarus to compile firepos ?

Thanks in advance,

Koenraad Lelong

Reply by email

Paul Breneman
to Koenraad Lelong
Koenraad Lelong wrote 18 lines
Op 12-07-13 20:29, Malcolm Poole schreef: > http://code.google.com/p/firepos/source/browse/#svn%2Ftrunk%2FmuPDFlaz Malcolm, Reading this thread I went to the link. It seems this is a POS system. Since I'm thinking about writing a POS system myself I downloaded firepos and I tried to compile it. But I'm having dependency problems, fpgui related. I have a development system (odroid arm-linux) that has lazarus 1.1 and fpc 2.7.1 (both some svn downloads). I also have fpgui 1.0. I tried to set the path's to include that fpgui in firepos, or the fpgui in the firepos tree, but both fail because some (different) units are not found. Could you provide some guide how to setup lazarus to compile firepos ? Thanks in advance, Koenraad Lelong

Thank you *very* much Koenraad for mentioning that this project uses fpGUI. I didn't find any docs at the site but I hope to study the code more ASAP. It is very interesting to see a fpGUI program set up for use with a touchscreen! I've started down that path myself.

It seems to be setup to use Lazarus? I didn't think fpGUI support in Lazarus was very complete but maybe things have been improved recently?

Anyway, I hope to add a link to the project to these 2 fpGUI sites: http://www.turbocontrol.com/easyfpgui.htm
http://www.ctrlterm.com/
Those site show how easy it is to compile fpGUI programs.

Reply by email

Koenraad Lelong
to Paul Breneman
Paul Breneman wrote 9 lines
Thank you *very* much Koenraad for mentioning that this project uses fpGUI. I didn't find any docs at the site but I hope to study the code more ASAP. It is very interesting to see a fpGUI program set up for use with a touchscreen! I've started down that path myself. It seems to be setup to use Lazarus? I didn't think fpGUI support in Lazarus was very complete but maybe things have been improved recently?

Paul,

The code is managed with Lazarus, I think. The GUI is made with fpgui-designer or what's it called ?

Koenraad

Reply by email

Malcolm Poole
to Koenraad Lelong
Koenraad Lelong wrote 14 lines
Op 13-07-13 18:40, Paul Breneman schreef: > > Thank you *very* much Koenraad for mentioning that this project uses > fpGUI. I didn't find any docs at the site but I hope to study the code > more ASAP. It is very interesting to see a fpGUI program set up for use > with a touchscreen! I've started down that path myself. > > It seems to be setup to use Lazarus? I didn't think fpGUI support in > Lazarus was very complete but maybe things have been improved recently? > Paul, The code is managed with Lazarus, I think. The GUI is made with fpgui-designer or what's it called ?

Koenraad is correct, the module that uses fpgui was designed using the uidesigner application that comes with fpgui. All the other coding was then done using Lazarus.

Malcolm

Reply by email

Malcolm Poole
to Koenraad Lelong: Reading this thread I went to the link. It seems this is a POS system. Since I'm thinking…

Hi Koenraad,

Koenraad Lelong wrote
Since I'm thinking about writing a POS system myself I downloaded firepos and I tried to compile it. But I'm having dependency problems, fpgui related. I have a development system (odroid arm-linux) that has lazarus 1.1 and fpc 2.7.1 (both some svn downloads). I also have fpgui 1.0.

You'll notice there are no release packages :) This is mainly because I haven't got around to trying to set up the applications on a bare system to work out what is missing and what an installer or install script needs to provide. I think you'll probably need some sample data, as I think some of the SQL queries will fail if they find empty tables. Just warning you that this could be a bit frustrating ;)

Anyway, I suspect that I know what the fpgui problems are. I have modified a few units to provide a little functionality that Graeme appeared to have started on but not completed, and also enable me to have a TPanel with a Borderstyle of bsNone - offhand I can't remember why I needed this but details of all changes (I hope) and all modified units are in the fpgui subdirectory of trunk. They are from fpgui-0.8: I have not yet had time to try fpgui-1.0 and see if they clash with any changes.

If you use fpgui 0.8 and overwrite the modified units with the ones from the FirePos repo I think it will probably compile, although you may need to add a few paths in Project->Options. Only the Sales Terminal module uses fpgui - the others use the LCL. You will need LNetbase for all modules.

It has been developed using Lazarus 1.0 and FPC 2.6.0

I hope you find it useful.

Malcolm

Reply by email