Import pdf & eps fails

Previous topic - Next topic

cosnet

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

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

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

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

#4
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.






amunizp

Quote from: mnawij on July 10, 2020, 03: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

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

Quote from: dragonfly on July 10, 2020, 11:37:44 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.

Quote from: dragonfly on July 10, 2020, 11:37:44 AM

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.

Quote from: dragonfly on July 10, 2020, 11:37:44 AM

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

#7
QuoteI 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 ..

QuoteSo 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..