flexpaper / pdf2image Goto Github PK
View Code? Open in Web Editor NEWMaintained and sponsored by FlowPaper https://flowpaper.com
Maintained and sponsored by FlowPaper https://flowpaper.com
What steps will reproduce the problem?
1. untar file
2. change goo/gfile.h to include /usr/include/sys/dir.h (as for issue #3)
3. make
What is the expected output? What do you see instead?
I was expecting to get the binary. Instead I got this:
cd goo; make
make[1]: Entering directory `/root/goo'
g++ -I/usr/local/include/freetype2 -I/usr/local/include -g -O2 -DHAVE_CONFIG_H
-I.. -I. -c gfile.cc
gfile.cc: In member function ‘GDirEntry* GDir::getNextEntry()’:
gfile.cc:700: error: invalid use of undefined type ‘struct dirent’
gfile.cc:696: error: forward declaration of ‘struct dirent’
gfile.cc:704: error: invalid use of undefined type ‘struct dirent’
gfile.cc:696: error: forward declaration of ‘struct dirent’
make[1]: *** [gfile.o] Error 1
make[1]: Leaving directory `/root/goo'
make: *** [all] Error 2
What version of the product are you using? On what operating system?
0.49
Please provide any additional information below.
- Red Hat Enterprise Linux Server release 5.7
- gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)
- Point 2 was necessary because I was getting the same error as issue #3
Original issue reported on code.google.com by [email protected]
on 26 Sep 2011 at 3:07
I am on ubuntu 11.10 64bit,
I sthere some tool I don have installed?
I have installed pdf2image, pdf2json
daniel@daniel-K73SV:~/pdf$ pdf2image 4.pdf -JSON -compress
Page-1
Page-2
Page-3
Page-4
Page-5
Page-6
Page-7
Page-8
Page-9
Page-10
Page-11
Page-12
Page-13
Page-14
Page-15
Page-16
Error: /ioerror in --image--
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop 1787 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- 1814 1 8 %oparray_pop
Dictionary stack:
--dict:1162/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)-- --dict:65/75(L)-- --dict:18/25(L)-- --dict:0/15(L)-- --dict:8/15(L)-- --dict:0/15(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 85764
GPL Ghostscript 9.04: Unrecoverable error, exit code 1
Error: Failed to launch Ghostscript!
Original issue reported on code.google.com by [email protected]
on 6 Feb 2012 at 9:09
Attachments:
What steps will reproduce the problem?
pdf2image TWR_Audiotheek.pdf -JSON -compress
But I think it is my compilation or install.
What is the expected output? What do you see instead?
I expect to see the finished files
Instead I see one image file and the json file
also these errors
[root@vm2 files]# pdf2image TWR_Audiotheek.pdf -JSON -compress
Page-1
Page-2
Page-3
Page-4
Page-5
Page-6
Error: Couldn't find a font for 'Helvetica-Bold'
Error: Couldn't find a font for 'Helvetica-Bold'
Error: Couldn't find a font for 'Helvetica-Bold'
Error: Couldn't find a font for 'Helvetica-Bold'
Error: Couldn't find a font for 'Helvetica-Bold'
Error: Couldn't find a font for 'Helvetica-Bold'
Error: Couldn't find a font for 'Helvetica-Bold'
Error: Couldn't find a font for 'Helvetica-Bold'
Error: Couldn't find a font for 'Helvetica-Bold'
Error: Couldn't find a font for 'Helvetica-Bold'
gs: /usr/local/lib/libpng12.so.0: no version information available (required by
/usr/lib64/libgs.so.8)
gs: /usr/local/lib/libpng12.so.0: no version information available (required by
/usr/lib64/libcairo.so.2)
gs: /usr/local/lib/libpng12.so.0: no version information available (required by
/usr/lib64/libcupsimage.so.2)
Error: /undefined in e!1Ele!1Ele!1Ele!1Ele!1Ele!1Ele!1Ele!1Ele
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1846 1 3 %oparray_pop 1845 1 3 %oparray_pop 1829 1 3 %oparray_pop 1723 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1156/1684(ro)(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:65/75(L)-- --dict:18/25(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 127015
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
Error: Failed to launch Ghostscript!
What version of the product are you using? On what operating system?
SVN, It is on rhel 5
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 19 Sep 2011 at 1:27
What steps will reproduce the problem?
1. after the file is completely converted
2.
3.
What is the expected output? What do you see instead?
The first page is error
What version of the product are you using? On what operating system?
The version is 0.51, operating system is windows xp
Please provide any additional information below.
Original issue reported on code.google.com by lingyin80
on 4 Jan 2012 at 3:50
Attachments:
What steps will reproduce the problem?
1. sudo ./configure
2. sudo make
What is the expected output? What do you see instead?
See loads and loads of the same warning at hundreds of lines:
warning: deprecated conversion from string constant to 'char*'
What version of the product are you using? On what operating system?
0.53 on Ubuntu 10.04
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 6 Mar 2012 at 9:20
Attachments:
What steps will reproduce the problem?
1. converting a pdf file with charts images
2.
3.
What is the expected output? What do you see instead?
I see
Error: Couldn't find a font for 'Helvetica-Bold'
Error: Couldn't find a font for 'Helvetica'
Error: Couldn't find a font for 'Helvetica-Oblique'
GPL Ghostscript 9.05: Unrecoverable error, exit code 1
Error: Failed to launch Ghostscript!
What version of the product are you using? On what operating system?
Im on WIN 7 64bit. using gs905w32.
Please provide any additional information below.
All works well apart from this chart thing. The Freetype website is no more
accessible. I think that the Freetype2 would solve the issue but how to get it.
A few details on it would be helpful.
Original issue reported on code.google.com by [email protected]
on 2 Aug 2012 at 2:22
What steps will reproduce the problem?
1. unrar the package
2. try to make
3. error
What is the expected output? What do you see instead?
ns27731:/pdf2image# make
cd goo; make
make[1]: entrant dans le répertoire « /pdf2image/goo »
g++ -I/usr/local/include/freetype2 -I/usr/local/include -g -O2 -DHAVE_CONFIG_H
-I.. -I. -c gfile.cc
In file included from gfile.cc:33:
gfile.h:131: error: ISO C++ forbids declaration of 'DIR' with no type
gfile.h:131: error: expected ';' before '*' token
gfile.cc: In constructor 'GDir::GDir(char*, GBool)':
gfile.cc:644: error: 'dir' was not declared in this scope
gfile.cc:644: error: 'opendir' was not declared in this scope
gfile.cc: In destructor 'GDir::~GDir()':
gfile.cc:661: error: 'dir' was not declared in this scope
gfile.cc:662: error: 'closedir' was not declared in this scope
gfile.cc: In member function 'GDirEntry* GDir::getNextEntry()':
gfile.cc:698: error: 'dir' was not declared in this scope
gfile.cc:699: error: 'readdir' was not declared in this scope
gfile.cc:700: error: invalid use of incomplete type 'struct direct'
gfile.cc:696: error: forward declaration of 'struct direct'
gfile.cc:704: error: invalid use of incomplete type 'struct direct'
gfile.cc:696: error: forward declaration of 'struct direct'
gfile.cc: In member function 'void GDir::rewind()':
gfile.cc:725: error: 'dir' was not declared in this scope
gfile.cc:726: error: 'rewinddir' was not declared in this scope
make[1]: *** [gfile.o] Erreur 1
make[1]: quittant le répertoire « /pdf2image/goo »
make: *** [all] Erreur 2
ns27731:/pdf2image#
What version of the product are you using? On what operating system?
pdf2image-0.49.tar.gz // ubuntu x86
Please provide any additional information below.
i already install ghostscript and freetype. and i have swftools installed on my
machine (and working)
Original issue reported on code.google.com by [email protected]
on 21 Apr 2011 at 8:55
What steps will reproduce the problem?
1. Run, eg, "pdf2image filename.pdf -JSON -compress"
What is the expected output? What do you see instead?
pdf2image filename.pdf -JSON -compress
Page-1
Page-2
Page-3
Page-4
Page-5
Page-6
Page-7
Page-8
Page-9
Page-10
Page-11
Page-12
sh: gswin32c: not found
Error: Failed to launch Ghostscript!
What version of the product are you using? On what operating system?
Version 0.49, on Ubuntu 64bit 11.04.
Please provide any additional information below.
Something is clearly wrong here; gswin32c is the name of the GS binary on
Windows.
As an editorial: In addition, I ran into the same problems reported as defects
in Issues #2 and #3, in that I had to manually tweak goo/gfile.h with my own
#include <sys/dir.h>, and had to tweak splash/Makefile to override the default
hard-coded /usr/local/include cflag. The build completed with a LOT of
deprecation notices, eg. "pdf2image.cc:122:72: warning: deprecated conversion
from string constant to ‘char*". It would be very nice if the source version
of this package was distributed with `configure' support and, additionally, if
binary packages (debs, rpms, msi) were made available for the major target
platforms (Debian/Ubuntu, Redhat/CentOS, Windows).
Original issue reported on code.google.com by [email protected]
on 13 May 2011 at 1:58
Hi, I'm running pdf2image.exe via C# code
using (Process p = new Process())
{
p.StartInfo.FileName = "C:\\pdf2image\\pdf2image.exe";
p.StartInfo.WorkingDirectory = "C:\\pdf2image";
p.StartInfo.Arguments = some_args
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.UseShellExecute = false;
p.Start();
result.OutputMsg = p.StandardOutput.ReadToEnd();
result.ErrorMsg = p.StandardError.ReadToEnd();
p.WaitForExit();
}
I see that process creates another named gswin32.exe. Sometimes I need to kill
the pdf2image process which works, but also I need to kill the gswin32 process
but pdf2image doesn't give the posibility to get the gswin32 Process ID which
it creates.
I cannot just kill all process with 'gswin32' name, because sometimes I create
many pdf2image processes at one time, so I must know which gswin32 process
belongs to which pdf2image process.
Any help ?
Original issue reported on code.google.com by [email protected]
on 16 Dec 2013 at 5:29
Hi, I'm using GhostScript x98 v9.10 and pdf2image library v0.53 and Windows 7
x64.
For some PDF files during the conversion I see the error messages
'Illegal entry in bfchar block in ToUnicode CMap'
How to fix that error ?
Original issue reported on code.google.com by [email protected]
on 9 Oct 2013 at 6:55
PDF samples supplied in emails to the FlexPaper staff
Original issue reported on code.google.com by [email protected]
on 30 Dec 2011 at 2:44
What version of the product are you using? On what operating system?
Ubuntu 10.10, using freetype from ubuntu repositories.
Please provide any additional information below.
Edited the splash makefile to manually specify /usr/include/freetype2 in the
include path, some type of configure support would have been nice.
root@:~/pdf2image# freetype-config --cflags
-I/usr/include/freetype2
Original issue reported on code.google.com by [email protected]
on 15 Mar 2011 at 6:10
What steps will reproduce the problem?
1. Downloaded the tar ball file from this url
http://code.google.com/p/pdf2image/downloads/list
2. extract it and run
3. make
What is the expected output? What do you see instead?
should be compile but getting error.
What version of the product are you using? On what operating system?
pdf2image 0.49 on Ubuntu 10.04
Please provide any additional information below.
sushil@sushil-laptop:~/Desktop/pdf2image/pdf2image-0.49$ make
cd goo; make
make[1]: Entering directory `/home/sushil/Desktop/pdf2image/pdf2image-0.49/goo'
g++ -I/usr/local/include/freetype2 -I/usr/local/include -g -O2 -DHAVE_CONFIG_H
-I.. -I. -c gfile.cc
In file included from gfile.cc:33:
gfile.h:95: error: ISO C++ forbids declaration of ‘DIR’ with no type
gfile.h:95: error: expected ‘;’ before ‘*’ token
gfile.cc: In function ‘GString* getHomeDir()’:
gfile.cc:73: error: ‘getenv’ was not declared in this scope
gfile.cc:79: error: ‘getuid’ was not declared in this scope
gfile.cc: In function ‘GString* getCurrentDir()’:
gfile.cc:101: error: ‘getcwd’ was not declared in this scope
gfile.cc: In function ‘GString* makePathAbsolute(GString*)’:
gfile.cc:417: error: ‘getcwd’ was not declared in this scope
gfile.cc: In function ‘GBool openTempFile(GString**, FILE**, char*, char*)’:
gfile.cc:519: error: ‘tmpnam’ was not declared in this scope
gfile.cc:536: error: ‘tmpnam’ was not declared in this scope
gfile.cc:543: error: ‘fdopen’ was not declared in this scope
gfile.cc: In function ‘GBool executeCommand(char*)’:
gfile.cc:555: error: ‘system’ was not declared in this scope
gfile.cc: In function ‘char* getLine(char*, int, FILE*)’:
gfile.cc:564: error: ‘fgetc’ was not declared in this scope
gfile.cc:564: error: ‘EOF’ was not declared in this scope
gfile.cc:572: error: ‘fgetc’ was not declared in this scope
gfile.cc:575: error: ‘EOF’ was not declared in this scope
gfile.cc:576: error: ‘ungetc’ was not declared in this scope
gfile.cc: In constructor ‘GDir::GDir(char*, GBool)’:
gfile.cc:644: error: ‘dir’ was not declared in this scope
gfile.cc:644: error: ‘opendir’ was not declared in this scope
gfile.cc: In destructor ‘GDir::~GDir()’:
gfile.cc:661: error: ‘dir’ was not declared in this scope
gfile.cc:662: error: ‘closedir’ was not declared in this scope
gfile.cc: In member function ‘GDirEntry* GDir::getNextEntry()’:
gfile.cc:698: error: ‘dir’ was not declared in this scope
gfile.cc:699: error: ‘readdir’ was not declared in this scope
gfile.cc:700: error: invalid use of incomplete type ‘struct dirent’
gfile.cc:696: error: forward declaration of ‘struct dirent’
gfile.cc:704: error: invalid use of incomplete type ‘struct dirent’
gfile.cc:696: error: forward declaration of ‘struct dirent’
gfile.cc: In member function ‘void GDir::rewind()’:
gfile.cc:725: error: ‘dir’ was not declared in this scope
gfile.cc:726: error: ‘rewinddir’ was not declared in this scope
make[1]: *** [gfile.o] Error 1
make[1]: Leaving directory `/home/sushil/Desktop/pdf2image/pdf2image-0.49/goo'
make: *** [all] Error 2
Original issue reported on code.google.com by [email protected]
on 7 Jun 2011 at 12:35
I have a question about using FlowPaper inside Laravel project. I purchased FlowPaper Zine for %95, and when I use it, everything is working, but FlowPaper can't find toolbar icons. Because, it search icons from root folder, for example, if I use it locally, my URL is 127.0.0.0:5500/index.html and FlowPaper easily can find icons from root folder, but in Laravel framework it is not so easy, my route is 127.0.0.0:5500/publications/69/reader/publicationName.php and so FlowPaper is searching icons from 127.0.0.0:5500/publications/69/reader/. But we don't have such folder, because publication number every single time(in this case it is 69) changes. It is just URL, Laravel understands that when a request is sent to such URL, it searches its dependency files from special folder(public folder). So how can I manage to make FlowPaper take icons from special another folder, not from root.. Thank you, I will look forward your answer, because deadline is coming soon..
On OS X 10.6.8 I'm adding the freetype path to LDFLAGS before running
configure: -L/usr/X11/lib
But the generated Makefile in src ignores this, and fails to link because it
can't find the freetype lib in the path above.
Original issue reported on code.google.com by [email protected]
on 28 Jan 2012 at 8:20
What steps will reproduce the problem?
1. Download file.
2. Extract files
3. Attempt compile
What is the expected output? What do you see instead?
Expect to compile, instead aconf.h is full of binary data.
What version of the product are you using? On what operating system?
Download pdf2image-0.49.tar.gz, Ubuntu 10.10
Original issue reported on code.google.com by [email protected]
on 15 Mar 2011 at 5:53
What steps will reproduce the problem?
1. Extract pdf2image-0.49.tar.gz, replace aconf.h with the latest from source,
make and install.
2. Run "pdf2image cpi.pdf -JSON -compress" against the attached PDF file.
What is the expected output? What do you see instead?
Expect to see cpi.js and several PNG files. Instead, I get this:
Page-1
Page-2
Page-3
Page-4
Page-5
Page-6
Page-7
Page-8
Page-9
Page-10
Page-11
Page-12
Page-13
Page-14
Page-15
Page-16
Page-17
Page-18
Page-19
Error: /ioerror in --image--
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop 1787 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- 1814 1 8 %oparray_pop
Dictionary stack:
--dict:1161/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)-- --dict:65/75(L)-- --dict:18/25(L)-- --dict:0/15(L)-- --dict:0/15(L)-- --dict:2/15(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 20481
GPL Ghostscript 9.01: Unrecoverable error, exit code 1
Error: Failed to launch Ghostscript!
What version of the product are you using? On what operating system?
pdf2image-0.49 on Ubuntu 11.04
Original issue reported on code.google.com by [email protected]
on 28 Aug 2011 at 6:02
Attachments:
What steps will reproduce the problem?
1. Download http://pdf2image.googlecode.com/files/pdf2image-0.49.tar.gz
2. tar xvf pdf2image-0.49.tar.gz
3. make
What is the expected output? What do you see instead?
I expected the make to complete successfully, but it did not. I see the
following error:
root@ubuntu:/home/chris/pdf2image# make
cd goo; make
make[1]: Entering directory `/home/streamliner/pdf2image/goo'
g++ -I/usr/local/include/freetype2 -I/usr/local/include -g -O2 -DHAVE_CONFIG_H
-I.. -I. -c gfile.cc
In file included from gfile.cc:33:
gfile.h:131: error: ISO C++ forbids declaration of �DIR� with no type
gfile.h:131: error: expected �;� before �*� token
gfile.cc: In constructor �GDir::GDir(char*, GBool)�:
gfile.cc:644: error: �dir� was not declared in this scope
gfile.cc:644: error: �opendir� was not declared in this scope
gfile.cc: In destructor �GDir::~GDir()�:
gfile.cc:661: error: �dir� was not declared in this scope
gfile.cc:662: error: �closedir� was not declared in this scope
gfile.cc: In member function �GDirEntry* GDir::getNextEntry()�:
gfile.cc:698: error: �dir� was not declared in this scope
gfile.cc:699: error: �readdir� was not declared in this scope
gfile.cc:700: error: invalid use of incomplete type �struct direct�
gfile.cc:696: error: forward declaration of �struct direct�
gfile.cc:704: error: invalid use of incomplete type �struct direct�
gfile.cc:696: error: forward declaration of �struct direct�
gfile.cc: In member function �void GDir::rewind()�:
gfile.cc:725: error: �dir� was not declared in this scope
gfile.cc:726: error: �rewinddir� was not declared in this scope
make[1]: *** [gfile.o] Error 1
make[1]: Leaving directory `/home/streamliner/pdf2image/goo'
make: *** [all] Error 2
root@ubuntu:/home/chris/pdf2image#
What version of the product are you using? On what operating system?
Version 0.49 of pdf2image and Ubuntu 10.10
Please provide any additional information below.
I have installed g++, ghostscript and freetype 2.1.10.
Original issue reported on code.google.com by [email protected]
on 6 Jul 2011 at 6:55
What steps will reproduce the problem?
1. convert a pdf with the command: pdf2image c:\test.pdf
2. png files are generated, and an empty file is generated too, named "c:\test"
What is the expected output? What do you see instead?
the empty json file should not generated if the json parameter is not specified
in command line
What version of the product are you using? On what operating system?
0.52
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 11 Jan 2012 at 5:47
What steps will reproduce the problem?
1. Run "pdf2image AGENDAFC_CASTLE_2208.pdf -JSON -compress"
2. And get invalid json "AGENDAFC_CASTLE_2208.js"
3. It contains {"t":188,"l":255,"w":8,"h":15,"f":14,"d":"?}
What is the expected output? What do you see instead?
I;m actually working on a ios app, it pulls pdf texts via json api, and giving
it valid jsons would be of great help, say
{"t":188,"l":255,"w":8,"h":15,"f":14,"d":"?"} instead of
{"t":188,"l":255,"w":8,"h":15,"f":14,"d":"?}.
It looks like a easy-to-fix, could you pls help me out? your help will be
appreciated.
What version of the product are you using? On what operating system?
pdf2image version 0.49 http://flexpaper.devaldi.com/pdf2image/, based on Xpdf
version 3.02
GPL Ghostscript 9.04 (2011-08-05)
Microsoft Windows 7 [Version 6.1.7601]
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 20 Nov 2011 at 5:50
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.