Recent

Author Topic: Ann: PDF Preview  (Read 5261 times)

dinmil

  • New Member
  • *
  • Posts: 45
Ann: PDF Preview
« on: January 28, 2016, 01:46:07 pm »
I created little project which can help you integrate PDF preview feature in your applications.
Project is written for Win32, Win64, Linux32, Linux64 and it use libmupf library (version 1.8), bgracontrols and printers4lazarus components.
It contain all necessary dll's  and libs and it contain instructions how to compile dll's and libs for different platforms and how to setup Cross Compiling environment
Project use cross compiling benefits of fpc compiler.
Along with preview it can also print pdf documents.
 
Project location is
https://github.com/dinmil/PDFPreview/

Regards, Dinko

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: Ann: PDF Preview
« Reply #1 on: January 28, 2016, 05:25:25 pm »
Thanks dinmil, it is very useful.
Just a question: where did you get pl_bgracontrols package?

MSC

  • Jr. Member
  • **
  • Posts: 54
Re: Ann: PDF Preview
« Reply #2 on: January 28, 2016, 09:29:28 pm »
@aradeonas

pl_bgracontrols seems to be a control from package of Code Typhon (Pilot Logik)?

regards
MSC

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: Ann: PDF Preview
« Reply #3 on: January 28, 2016, 09:41:50 pm »
Ah Thanks MSC, I forgot that.

dinmil

  • New Member
  • *
  • Posts: 45
Re: Ann: PDF Preview
« Reply #4 on: January 29, 2016, 10:25:48 am »
Yes, pl_bgracontrols are package from CodeTyphon project, but project should work with and newer version of BGRAControls you can find (if you use lazarus).

dinmil

  • New Member
  • *
  • Posts: 45
Re: Ann: PDF Preview
« Reply #5 on: January 29, 2016, 10:27:49 am »
I forgot to mention. Checkout PDFPreview.pdf which is attached into project source. You can find many explanations (how and why) about what I did in source code.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: Ann: PDF Preview
« Reply #6 on: January 29, 2016, 10:32:15 am »
Really useful, Thanks dinmil you did a very useful work

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Ann: PDF Preview
« Reply #7 on: January 29, 2016, 10:36:24 am »
Perfect example why sometimes we don't need to reinvent the wheel :D (read: pdf rendering is complex)

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: Ann: PDF Preview
« Reply #8 on: January 29, 2016, 11:42:52 am »
Perfect example why sometimes we don't need to reinvent the wheel :D (read: pdf rendering is complex)
I dont get it  Leledumbo, Im slow probably :D

mgc

  • New Member
  • *
  • Posts: 13
Re: Ann: PDF Preview
« Reply #9 on: June 06, 2022, 03:47:55 am »
In 2022, PDFPreview does compile in Win32 and Win64, but it does not work! The executable starts but nothing happens. In Linux Ubuntu it does not compile at all (error in libfreetype).
Dinmil, can help me, please? I would like to use your libmupdf18-64.dll in my science software.

paweld

  • Hero Member
  • *****
  • Posts: 999
Best regards / Pozdrawiam
paweld

mgc

  • New Member
  • *
  • Posts: 13
Re: Ann: PDF Preview
« Reply #11 on: June 06, 2022, 04:16:27 pm »
Thanks a lot, paweld! Simply great your example on using pdfium.dll, which I didn't know.  Do you know some library in Linux that we can use in Lazarus?

 

TinyPortal © 2005-2018