* * *

Author Topic: QR Code to PDF. How to?  (Read 1147 times)

nullpointer

  • New member
  • *
  • Posts: 9
  • impossible is nothing
    • The Userman
QR Code to PDF. How to?
« on: August 02, 2017, 05:11:55 am »
I've successfully created a QR Code using the LazBarcodes component (https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/lazbarcodes/). Next, I want to print the results into a PDF file using JPDF free Pascal (https://github.com/jepafi/Free-JPDF-Pascal) but still fail. it may the free JPDF can only print Barcode instead of QR Code.

My idea is to save the QR Code to image file (JPG / PNG) then add it to the pdf file. This can be done by Free JPDF.

Another solution please?  %)

farhan

  • Newbie
  • Posts: 2
Re: QR Code to PDF. How to?
« Reply #1 on: September 25, 2017, 05:09:54 pm »
bro do u get your solutions ???

Graeme

  • Hero Member
  • *****
  • Posts: 1419
    • Graeme on the web
Re: QR Code to PDF. How to?
« Reply #2 on: October 12, 2017, 05:16:41 pm »
Just thought I would mention that the new fpReport in FPC Trunk has just had QR Codes support added, and that can be exported to FPC's PDF framework fcl-pdf too.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

valdir.marcos

  • Sr. Member
  • ****
  • Posts: 265
Re: QR Code to PDF. How to?
« Reply #3 on: October 12, 2017, 06:30:44 pm »
@Graeme
Just curiosity.
fpReport is most likely to be officially released in FPC 3.0.6 or FPC 3.2.0?

Graeme

  • Hero Member
  • *****
  • Posts: 1419
    • Graeme on the web
Re: QR Code to PDF. How to?
« Reply #4 on: October 13, 2017, 12:39:30 am »
fpReport is most likely to be officially released in FPC 3.0.6 or FPC 3.2.0?
I don't know what the FPC team plans. I can say that I developed fpReport with FPC 2.6.4 (and also tested with FPC 3.0.2 at the time) so there is no technical reason why they couldn't release fpReport with something earlier that FPC 3.2.0.

If you don't want to use FPC Trunk (I don't blame anybody if they don't - it can be unstable at times), but do want to use fpReport, then simply copy the report directory from Trunk and use it with FPC 2.6.4 or later. That's what I do. Just make sure you get occasional updates from Trunk, because things are still being improved in fpReport.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

valdir.marcos

  • Sr. Member
  • ****
  • Posts: 265
Re: QR Code to PDF. How to?
« Reply #5 on: October 14, 2017, 03:31:52 am »
fpReport is most likely to be officially released in FPC 3.0.6 or FPC 3.2.0?
I don't know what the FPC team plans. I can say that I developed fpReport with FPC 2.6.4 (and also tested with FPC 3.0.2 at the time) so there is no technical reason why they couldn't release fpReport with something earlier that FPC 3.2.0.

If you don't want to use FPC Trunk (I don't blame anybody if they don't - it can be unstable at times), but do want to use fpReport, then simply copy the report directory from Trunk and use it with FPC 2.6.4 or later. That's what I do. Just make sure you get occasional updates from Trunk, because things are still being improved in fpReport.

We are already testing fpReport on a new project due 2019.
We are not allowed to use unstable software (Lazarus trunk, FPC trunk, etc) to build final products.
Thanks.

Ondrej Pokorny

  • Full Member
  • ***
  • Posts: 184
Re: QR Code to PDF. How to?
« Reply #6 on: October 14, 2017, 08:51:40 am »
You added QR support without announcing it? Horrible :) I'll have to play with it today  O:-) Thanks!!!

Graeme

  • Hero Member
  • *****
  • Posts: 1419
    • Graeme on the web
Re: QR Code to PDF. How to?
« Reply #7 on: October 14, 2017, 12:22:18 pm »
We are not allowed to use unstable software (Lazarus trunk, FPC trunk, etc) to build final products.
I can say that fpReport was developed for a commercial product and is already used in a production release of that software. Hence we did a lot of testing and all the unit tests I implemented to make it as stable as possible out the box. When we open sourced it, we wanted it to be ready immediately - not in some "beta" phase.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1419
    • Graeme on the web
Re: QR Code to PDF. How to?
« Reply #8 on: October 14, 2017, 12:23:35 pm »
You added QR support without announcing it?
The credit for QR support has to go to Michael van Canneyt. He implemented it and asked me to test it out. Michael doesn't own a smart phone so couldn't scan the codes.  :D :D
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus