Fails to parse document: parser error : Start tag expected, '<' not found

Bug #1276871 reported by Yuri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

inkscape-0.48.4_3 fails on this document: http://www.drzwny.com/wp-content/uploads/2012/01/Systems_Survey_Form.pdf

It also prints this:
%PDF-1.4
^

This PR is similar to the previously closed one https://bugs.launchpad.net/inkscape/+bug/168148 on which its OP didn't follow up.

Revision history for this message
su_v (suv-lp) wrote :

Not reproduced with Inkscape 0.48.4 on Ubuntu 13.10 (Inkscape 0.48.4-1ubuntu3) and with two local builds of Inkscape 0.48.4 (with older and most current versions of dependencies) on OS X 10.7.5: the PDF file opens as expected in Inkscape.

Please provide information about your OS/platform and how Inkscape was installed: based on the error message, inkscape was compiled without poppler support (required for PDF import) - see also these earlier reports:
- Bug #600793 “Unable to load PDF "
- Bug #1043994 “pdf files not loaded”

tags: added: importing pdf
Changed in inkscape:
status: New → Incomplete
Revision history for this message
Yuri (yuri-tsoft) wrote :

FreeBSD-9.2 amd64

inkscape-0.48.4_3
Dependencies:
        pangomm-2.28.4
        pango-1.34.1_1
        gtkmm24-2.24.4
        gtk2-2.24.22_1
        p5-XML-XQL-0.68
        libxslt-1.1.28_1
        libxml2-2.8.0_3
        libxml++-2.34.2
        gtkspell-2.0.16_4
        gsl-1.16
        perl5-5.16.3_6
        poppler-glib-0.24.4
        png-1.5.17
        libwpg-0.2.2
        lcms-1.19_1,1
        gtk-update-icon-cache-2.24.22
        gdk-pixbuf2-2.28.2
        cairomm-1.10.0_1
        cairo-1.10.2_7,2
        ImageMagick-6.8.0.7_4,1
        popt-1.16
        pcre-8.33
        libsigc++-2.3.1
        glibmm-2.36.2,1
        glib-2.36.3_1
        gettext-0.18.3.1
        desktop-file-utils-0.22_1
        boehm-gc-7.2e
        atkmm-2.22.6
        atk-2.8.0

Revision history for this message
Yuri (yuri-tsoft) wrote :

poppler support is enabled.
Previous versions did work before on the same platform.

su_v (suv-lp)
Changed in inkscape:
status: Incomplete → New
Revision history for this message
su_v (suv-lp) wrote :

1) Is "Adobe PDF (*.pdf)" listed among the supported file formats in the file chooser dialog of Inkscape menu 'File > Open…'?

2) Could you please attach the file "$HOME/.config/inkscape/extension-errors.log" to the report?
(If poppler support was not properly compiled in, 'org.inkscape.input.pdf' will be a logged missing dependency for input formats like PS and EPS (see also similar report in bug #362473)).

Revision history for this message
Yuri (yuri-tsoft) wrote :

No, Adobe pdf isn't on the list in File->Open dialog.

$HOME/.config/inkscape/extension-errors file has this in it:
Extension "EPS Input" failed to load because a dependency was not met.
Dependency:
  type: extension
  location: path
  string: org.inkscape.input.pdf
<...>
Extension "PostScript Input" failed to load because a dependency was not met.
Dependency:
  type: extension
  location: path
  string: org.inkscape.input.pdf

In the inkscape port, POPPLER option is "on" for my build. This option turns on the dependency on libpoppler-glib.so, and also adds the configure option --enable-poppler-cairo.

However, config.log has this:
configure:13806: WARNING: unrecognized options: --enable-poppler-cairo
configure doesn't support --enable-poppler-cairo option.

configure.ac defines this option:
AC_ARG_ENABLE(poppler-cairo,
        AC_HELP_STRING([--enable-poppler-cairo], [Enable libpoppler-cairo for rendering PDF preview]),
        [enable_poppler_cairo=$enableval], [enable_poppler_cairo=yes])
However, it is missing from the configure file. This looks wrong. That's why configure rejects it.

Can you tell me, why inkscape-0.48.4 distributive doesn't have this option in configure file, and has it in configure.ac?

Revision history for this message
su_v (suv-lp) wrote :

> However, it is missing from the configure file.

Cannot confirm (the option '--enable-poppler-cairo' is present & functional in the 'configure' file distributed with the release tar ball of Inkscape 0.48.4).

Note that Inkscape has no configure option to explicitly disable main poppler support: either a working libpoppler is detected at configure time and PDF support (Use libpoppler for direct PDF import) gets compiled in, or not.

AFAIU the dependency on poppler-cairo is used for creating the preview image in the import dialog (optional), and has no further effect on the main PDF import feature.

su_v (suv-lp)
tags: added: build
Revision history for this message
su_v (suv-lp) wrote :

I'm not familiar with the internals of FreeBSD's port collection, but these lines in the Makefile of the FreeBSD port look suspiciously as if 'poppler' was or can be deliberately disabled in the configure file (depending on where WITH_POPPLER is defined):

68 .if !defined(WITH_POPPLER)
69 @${REINPLACE_CMD} -e 's|poppler|pdisable|g' \
70 ${WRKSRC}/configure
71 .endif
<http://svnweb.freebsd.org/ports/head/graphics/inkscape/Makefile?revision=337749&view=markup#l68>

Revision history for this message
Yuri (yuri-tsoft) wrote :

Yes, thanks, I already found this myself.
I will connect to the maintainers of this port.
This is some stray patch.

Revision history for this message
Yuri (yuri-tsoft) wrote :

Please close this PR.

Revision history for this message
su_v (suv-lp) wrote :

Closing based on the reporter's feedback.

Changed in inkscape:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.