Scribusoid

Author Topic: Import pdf & eps fails  (Read 715 times)

cosnet

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
  • Scribus User
Import pdf & eps fails
« on: December 02, 2019, 02:18:15 am »
I would likle to open pdf or eps files but there is
ghostscript fatal error after import of approx. 30% of the file:

----------------------------------------------------------
Ghostscript diagnostics:

        GPL Ghostscript 9.26: Unrecoverable error, exit code 1

        alse

        Execution stack:

           %interp_exit   .runexec2   --nostringval--   --nostringval--   --nost                          ringval--   2   %stopped_push   --nostringval--
           --nostringval--   --nostringval--   false   1   %stopped_push   2044                             1   3   %oparray_pop   2043   1   3   %oparra
        y_pop   2024   1   3   %oparray_pop   1884   1   3   %oparray_pop   --no                          stringval--   %errorexec_pop   .runexec2   --no
        stringval--   --nostringval--   --nostringval--   2   %stopped_push   --                          nostringval--

        Dictionary stack:

           --dict:1236/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--

        Current allocation mode is global

        Current file position is 2202

^CPostScript import failed when calling gs as:
-q -dNOPAUSE -dNODISPLAY -dBATCH -dDELAYBIND -g4764x1684 -r288 -dTextAlphaBits=4                           -dGraphicsAlphaBits=4 -c 0 0 translate -sTraceFile=/home/ka/.scribus//ps.out -s                          ExportFiles=/h/MAYSTAR/INDD/colorcha_en /usr/lib/scribus/import.prolog /h/MAYSTA                          R/INDD/colorcha_en.eps -c flush cfile closefile quit

-------------------------------------
Scribus version 1.4.8
Ghostscript 9.26
The same result with Windows 10 64 bit.

This problem exist at all my pdf and eps files.
 :(

mnawij

  • Sr. Member
  • ****
  • Posts: 290
  • Karma: 2
  • Scribus User
Re: Import pdf & eps fails
« Reply #1 on: December 02, 2019, 03:17:51 am »
Hi cosnet,

This is only a guess, but the newer versions of InDesign CC pdf files put extra information in the files... They also write out pdf file v. 1.7 which I have had problems with in Scribus...

From Adobe.com "Since ISO 32000 is equivalent to Adobe's PDF 1.7, Adobe is not producing a PDF 1.8 Reference. However, Adobe is publishing a document specifying what extended features for PDF, beyond ISO 32000-1 (PDF 1.7), are supported in its newly released products."

Could you share one of the pdf files for review? Do you still have access to InDesign, if so could you try saving the pdf as version 1.5 and then try importing into Scribus?  You mention same problem with Windows 10, which OS were you using before?  One last suggestion, have you tried using the 1.5 version of Scribus?

Cheers!

mnawij

amunizp

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Scribus User
Re: Import pdf & eps fails
« Reply #2 on: July 09, 2020, 07:53:44 pm »
Hello, bumping this up hoping to find a solution to it. I have tried finding bug report and a wiki on this with no luck.

The documents that I (and many other) wish to import into scribus for editing is any of the ones contained here: https://www.food.gov.uk/business-guidance/safer-food-better-business

The PDF in particular I would like to annotate on using scribus is https://www.food.gov.uk/sites/default/files/media/document/sfbb-caterers-pack-fixed.pdf

When open existing document the command line feeds this back:

Quote
$ scribus
Gtk-Message: 17:34:52.628: Failed to load module "canberra-gtk-module"
PostScript import failed when calling gs as:
-q -dNOPAUSE -dNODISPLAY -dBATCH -dDELAYBIND -g2381x3368 -r288 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -c 0 0 translate -sTraceFile=/home/andres/.scribus//ps.out -sExportFiles=/home/andres/Documents/kitchen/Document--sfbb-caterers-pack-fixed /usr/lib/scribus/import.prolog /home/andres/Documents/kitchen/sfbb-caterers-pack-fixed.pdf -c flush cfile closefile quit

Ghostscript diagnostics:

   GPL Ghostscript 9.26: Unrecoverable error, exit code 1

   alse

   Execution stack:

      %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
      --nostringval--   --nostringval--   false   1   %stopped_push   2044   1   3   %oparray_pop   2043   1   3   %oparra
   y_pop   2024   1   3   %oparray_pop   1884   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --no
   stringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--

   Dictionary stack:

      --dict:1236/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--

   Current allocation mode is global

   Current file position is 2202


Quote
$ uname -a
Linux  5.3.0-62-generic #56~18.04.1-Ubuntu SMP Wed Jun 24 16:17:03 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ scribus -v
Gtk-Message: 17:51:45.839: Failed to load module "canberra-gtk-module"

Scribus, Open Source Desktop Publishing
---------------------------------------
Homepage:       http://www.scribus.net
Documentation:  http://docs.scribus.net
Wiki:           http://wiki.scribus.net
Issues:         http://bugs.scribus.net

Scribus Version 1.4.8




mnawij

  • Sr. Member
  • ****
  • Posts: 290
  • Karma: 2
  • Scribus User
Re: Import pdf & eps fails
« Reply #3 on: July 10, 2020, 04:43:20 am »
By 'annotate' do you mean to fill in the boxes with text and check marks or to add your comments outside of these items?

Cheers!

mnawij

dragonfly

  • Full Member
  • ***
  • Posts: 160
  • Karma: 0
  • Scribus User
Re: Import pdf & eps fails
« Reply #4 on: July 10, 2020, 12:37:44 pm »
Some ideas.  I downloaded a test pdf from your link.

Foxit PDF Reader has some nice features for annotating such forms.

Another approach might be to break the pdf into images and import these to Scribus to annotate.

I tried the Ubuntu command as described here ..

https://askubuntu.com/questions/50170/how-to-convert-pdf-to-image

pdftoppm input.pdf outputname -png

By the way, I am on Ubuntu 18.04 and when I run

gs --version

I get 9.26 returned.





« Last Edit: July 10, 2020, 12:41:26 pm by dragonfly »

amunizp

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Scribus User
Re: Import pdf & eps fails
« Reply #5 on: July 11, 2020, 03:29:38 am »
By 'annotate' do you mean to fill in the boxes with text and check marks or to add your comments outside of these items?

Cheers!

mnawij

I both would be nice, but not needed.

Opening the pdf in scribus is the first thing I would like to do.

Second thing would be to be able to write on top of it like a layer I am currently doing this with Xournal.

Third and ideal would be to open it like I can open it with libreoffice draw but being able to keep the layout. So that I can for example find the word "staff" and change it to participant.

amunizp

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Scribus User
Re: Import pdf & eps fails
« Reply #6 on: July 11, 2020, 03:53:58 am »
Some ideas.  I downloaded a test pdf from your link.

Foxit PDF Reader has some nice features for annotating such forms.


Thanks, did not know foxit reader worked on linux. I think the term annotate is not what I was looking for, it seems to do comments which is not exactly what I need. I would rather not use propietary options and wanted to try out scribus.


Another approach might be to break the pdf into images and import these to Scribus to annotate.



I tried the Ubuntu command as described here ..

https://askubuntu.com/questions/50170/how-to-convert-pdf-to-image

pdftoppm input.pdf outputname -png


I would rather work with vector graphics.


By the way, I am on Ubuntu 18.04 and when I run

gs --version

I get 9.26 returned.

I get the same.

dragonfly

  • Full Member
  • ***
  • Posts: 160
  • Karma: 0
  • Scribus User
Re: Import pdf & eps fails
« Reply #7 on: July 11, 2020, 12:00:14 pm »
Quote
I would rather work with vector graphics.

like this ..

Inkscape > Open PDF > Save as Optimised SVG > Scribus

[After thought]
Incidentally this is a good example of where Scripter > ScribusGenerator script can come into play.

Assume that you have a number of businesses to whom you wish to post customised food health leaflets. You have written ..

Quote
So that I can for example find the word "staff" and change it to participant.

You can create a library of overlay images .. such as participant.png, and so on ....

And  then a csv mapping overlay images to underlying fields.

In your form overlay page(s) you overlay the variables ...  <%VAR_field01%>, <%VAR_field02%>

Apply ScribusGenerator and you have the equivalent of "merged business cards" .. but in this case for customised health and safety leaflets..
« Last Edit: July 11, 2020, 12:43:45 pm by dragonfly »

 

palmate