Go Back   FileForums > Off Topic > Software

Reply
 
Thread Tools Display Modes
  #1  
Old 30-06-2019, 00:52
Asteroid Asteroid is offline
Registered User
 
Join Date: Jun 2019
Location: STREAM GALAXY
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Asteroid is on a distinguished road
Unhappy 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 ?

Last edited by Asteroid; 30-06-2019 at 01:17.
Reply With Quote
The Following User Says Thank You to Asteroid For This Useful Post:
Carldric Clement (30-06-2019)
Sponsored Links
  #2  
Old 30-06-2019, 01:30
Razor12911's Avatar
Razor12911 Razor12911 is offline
Coder
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,290
Thanks: 1,786
Thanked 8,281 Times in 1,835 Posts
Razor12911 is on a distinguished road
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
__________________
Looking for something?
Visit the
Tutorial Index

Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
Carldric Clement (30-06-2019)
  #3  
Old 30-06-2019, 01:54
Asteroid Asteroid is offline
Registered User
 
Join Date: Jun 2019
Location: STREAM GALAXY
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Asteroid is on a distinguished road
Red face

Quote:
Originally Posted by Razor12911 View Post
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.
Reply With Quote
  #4  
Old 30-06-2019, 05:36
Carldric Clement's Avatar
Carldric Clement Carldric Clement is offline
Registered User
 
Join Date: Aug 2014
Location: Toboh, Sabah, Malaysia
Posts: 417
Thanks: 458
Thanked 337 Times in 129 Posts
Carldric Clement is on a distinguished road
Quote:
Originally Posted by Asteroid View Post
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.
__________________
Project: Mini Compresor & Inno Maker
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Announcement and final word on the CheatHappens vs. h4x0r trainer war Joe Forster/STA Game Trainers 7 12-07-2010 08:31



All times are GMT -7. The time now is 05:38.


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