FileForums

FileForums (//fileforums.com/index.php)
-   Software (//fileforums.com/forumdisplay.php?f=32)
-   -   C++ and delphi coders please help (//fileforums.com/showthread.php?t=102846)

Asteroid 30-06-2019 00:52

C++ and delphi coders please help
 
I KNOW THIS IS NOT CODING RELATED FORM BUT IT SEEMS PEOPLE HERE ARE REALLY SMART AND FOR STACKOVERFLOW IT IS LOW LEVEL QUESTION WHICH IS FINE.

I NEED TO USE POPPLER IN MY DELPHI PROGRAM TO CROP PDF AND EXTRACT TEXT AND IMAGES FROM THEM.

I don't know how to compile this and call library from delphi.
I am currently using pdftocairo.exe and pdftotext.exe cmd tools, which are utilites of popplers ,by running them as process and why i don't want to use is because in certain i pdfs i need to crop at two position but the cmd tool version supports only cropping at single position at a time and that's causing me extra 5sec of time as the pdf is being rendered two times for the same task.

anyone can please help me to use poppler lib to crop pdfs in delphi ?

Razor12911 30-06-2019 01:30

I don't understand, there are demos in the source code that show how to use poppler
poppler-0.78.0.tar.xz\poppler-0.78.0\glib\demo
poppler-0.78.0.tar.xz\poppler-0.78.0\qt5\demos

also here:

https://freedesktop.org/wiki/Software/poppler/

there is a part that says
"Non exhaustive list of programs using poppler"

check one of them to see how they applied poppler in their projects

if you can't port the code from cpp to delphi then try looking at these:
https://torry.net/pages.php?id=521

or find TMS components that deal with pdfs since the sources are written in Delphi

Asteroid 30-06-2019 01:54

Quote:

Originally Posted by Razor12911 (Post 481558)
I don't understand, there are demos in the source code that show how to use poppler
poppler-0.78.0.tar.xz\poppler-0.78.0\glib\demo
poppler-0.78.0.tar.xz\poppler-0.78.0\qt5\demos

also here:

https://freedesktop.org/wiki/Software/poppler/

there is a part that says
"Non exhaustive list of programs using poppler"

check one of them to see how they applied poppler in their projects

if you can't port the code from cpp to delphi then try looking at these:
https://torry.net/pages.php?id=521

or find TMS components that deal with pdfs since the sources are written in Delphi

but i don't think these component supports croping pdf or croping text from them.

I already took look at demos but didn't understand or got any point to call them from delphi app.

I tried to look program which used poppler but all them are in c++ so i don't think they gonna help me.

The most irritating thing is that i don't know how to build the thing how to compile it. any help in that would be nice.
delphi interface is required for poppler utils.

Carldric Clement 30-06-2019 05:36

Quote:

Originally Posted by Asteroid (Post 481559)
but i don't think these component supports croping pdf or croping text from them.

I already took look at demos but didn't understand or got any point to call them from delphi app.

I tried to look program which used poppler but all them are in c++ so i don't think they gonna help me.

The most irritating thing is that i don't know how to build the thing how to compile it. any help in that would be nice.
delphi interface is required for poppler utils.

Poppler was based used with C++ on Visual Studio 2010 or CMake.
Delphi code that we cannot compile with these codes are C++
So basically you have to download and use CTODelphi software. Google It.


All times are GMT -7. The time now is 02:48.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 2000-2018, FileForums @ https://fileforums.com