Hi,
the cairo-based simple PDF import extension has been in trunk for a while (well, for a week or so :) ). Now I have committed a preliminary version of the native libpoppler-based one to trunk (you can activate it by uncommenting the line Internal::PdfInput::init() in src/extension/init.cpp). I did commit this unstable version because I need your help regarding a strange bug. When a PDF document is opened Inkscape crashes with segmentation fault, giving the following backtrace: #0 0xb6ebeb46 in malloc_usable_size () from /lib/tls/i686/cmov/libc.so.6 #1 0xb6ec0ecd in free () from /lib/tls/i686/cmov/libc.so.6 #2 0xb6ec283f in malloc () from /lib/tls/i686/cmov/libc.so.6 #3 0xb70844b7 in operator new () from /usr/lib/libstdc++.so.6 #4 0xb70845ed in operator new[] () from /usr/lib/libstdc++.so.6 #5 0xb71719d2 in PDFDoc::checkFooter (this=0xa6c5700) at PDFDoc.cc:248 #6 0xb7171e90 in PDFDoc::setup (this=0xa6c5700, ownerPassword=0x0, userPassword=0x0) at PDFDoc.cc:185 #7 0xb71721c5 in PDFDoc (this=0xa6c5700, fileNameA=0xa6c56c8, ownerPassword=0x0, userPassword=0x0, guiDataA=0x0) at PDFDoc.cc:102 #8 0x08594ec7 in Inkscape::Extension::Internal::PdfInput::open ( this=0x8857030, mod=0x8861350, uri=0xab497e4 "/home/shudo/tiger.pdf") at extension/internal/pdfinput/pdf-input.cpp:51
Please test whether the same thing happens on your system also (note: PDF import is not yet available on Windows) and tell us if you have any ideas regarding the solution to this problem which sets back the further development of the import extension.
Thank you, miklos
It does not compile for me. I first tried with poppler 0.51 from dapper, then installed 0.59 from source, but this didn't help:
extension/internal/pdfinput/pdf-parser.cpp: In member function 'void PdfParser::parse(Object*, GBool)': extension/internal/pdfinput/pdf-parser.cpp:372: error: no matching function for call to 'Parser::Parser(XRef*&, Lexer*, int)' /usr/include/poppler/Parser.h:26: note: candidates are: Parser::Parser(XRef*, Lexer*) /usr/include/poppler/Parser.h:22: note: Parser::Parser(const Parser&)
Any ideas?
On 7/12/07, Miklós Erdélyi <erdelyim@...400...> wrote:
Hi,
the cairo-based simple PDF import extension has been in trunk for a while (well, for a week or so :) ). Now I have committed a preliminary version of the native libpoppler-based one to trunk (you can activate it by uncommenting the line Internal::PdfInput::init() in src/extension/init.cpp). I did commit this unstable version because I need your help regarding a strange bug. When a PDF document is opened Inkscape crashes with segmentation fault, giving the following backtrace: #0 0xb6ebeb46 in malloc_usable_size () from /lib/tls/i686/cmov/libc.so.6 #1 0xb6ec0ecd in free () from /lib/tls/i686/cmov/libc.so.6 #2 0xb6ec283f in malloc () from /lib/tls/i686/cmov/libc.so.6 #3 0xb70844b7 in operator new () from /usr/lib/libstdc++.so.6 #4 0xb70845ed in operator new[] () from /usr/lib/libstdc++.so.6 #5 0xb71719d2 in PDFDoc::checkFooter (this=0xa6c5700) at PDFDoc.cc:248 #6 0xb7171e90 in PDFDoc::setup (this=0xa6c5700, ownerPassword=0x0, userPassword=0x0) at PDFDoc.cc:185 #7 0xb71721c5 in PDFDoc (this=0xa6c5700, fileNameA=0xa6c56c8, ownerPassword=0x0, userPassword=0x0, guiDataA=0x0) at PDFDoc.cc:102 #8 0x08594ec7 in Inkscape::Extension::Internal::PdfInput::open ( this=0x8857030, mod=0x8861350, uri=0xab497e4 "/home/shudo/tiger.pdf") at extension/internal/pdfinput/pdf-input.cpp:51
Please test whether the same thing happens on your system also (note: PDF import is not yet available on Windows) and tell us if you have any ideas regarding the solution to this problem which sets back the further development of the import extension.
Thank you, miklos
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On 7/12/07, Miklós Erdélyi <erdelyim@...400...> wrote:
Hi,
the cairo-based simple PDF import extension has been in trunk for a while (well, for a week or so :) ). Now I have committed a preliminary version of the native libpoppler-based one to trunk (you can activate it by uncommenting the line Internal::PdfInput::init() in src/extension/init.cpp). I did commit this unstable version because I need your help regarding a strange bug. When a PDF document is opened Inkscape crashes with segmentation fault, giving the following backtrace: #0 0xb6ebeb46 in malloc_usable_size () from /lib/tls/i686/cmov/libc.so.6 #1 0xb6ec0ecd in free () from /lib/tls/i686/cmov/libc.so.6 #2 0xb6ec283f in malloc () from /lib/tls/i686/cmov/libc.so.6 #3 0xb70844b7 in operator new () from /usr/lib/libstdc++.so.6 #4 0xb70845ed in operator new[] () from /usr/lib/libstdc++.so.6 #5 0xb71719d2 in PDFDoc::checkFooter (this=0xa6c5700) at PDFDoc.cc:248 #6 0xb7171e90 in PDFDoc::setup (this=0xa6c5700, ownerPassword=0x0, userPassword=0x0) at PDFDoc.cc:185 #7 0xb71721c5 in PDFDoc (this=0xa6c5700, fileNameA=0xa6c56c8, ownerPassword=0x0, userPassword=0x0, guiDataA=0x0) at PDFDoc.cc:102 #8 0x08594ec7 in Inkscape::Extension::Internal::PdfInput::open ( this=0x8857030, mod=0x8861350, uri=0xab497e4 "/home/shudo/tiger.pdf") at extension/internal/pdfinput/pdf-input.cpp:51
Please test whether the same thing happens on your system also (note: PDF import is not yet available on Windows) and tell us if you have any ideas regarding the solution to this problem which sets back the further development of the import extension.
Thank you, miklos
Whats stopping it working on win? is there anything you need help test or what ever?
On 2007-July-12 , at 19:07 , Miklós Erdélyi wrote:
the cairo-based simple PDF import extension has been in trunk for a while (well, for a week or so :) ). Now I have committed a preliminary version of the native libpoppler-based one to trunk (you can activate it by uncommenting the line Internal::PdfInput::init() in src/extension/init.cpp).
Hi,
I see poppler >=0.5.5 is required. Is there a important reason why 0.5.4 won't be enough? As always it's a matter of dependencies: Mac OS X packaging system comes with poppler 0.5.4 and adding a newer by hand is not as good and easy as getting it from there. I'll try to get it updated in the packaging system though. We'll see if they are receptive.
As for the cairo-based import, is there something special to do to get it? I have cairo 1.4.6 and it works perfectly for the PDF export (I mean, as well as on other systems) but I don't have any PDF import in the Open/Import dialogs.
Thanks in advance. Cheers,
JiHO --- http://jo.irisson.free.fr/
On 10/2/07, Alexandre Prokoudine wrote:
Out of curiousity, is poppler of any use for importing Postscript files?
Answering myself: next release of UniConvertor will be featuring experimental PS/EPS import. Since we already support UC for CDR import, hooking up another filter shouldn't be an issue.
Alexandre
participants (6)
-
unknown@example.com
-
Alexandre Prokoudine
-
bulia byak
-
jiho
-
john cliff
-
Miklós Erdélyi