Author Topic: Exported PDFs contain graphics but no text  (Read 4695 times)

crmdgn

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Scribus User
Exported PDFs contain graphics but no text
« on: April 18, 2012, 07:58:20 pm »
I'm running Scribus 1.4.0 rc3 on a Mac. I need to generate a PDF that's mostly text, with one PNG graphic. When I use File > Export > Save as PDF, the resulting PDF contains the PNG, exactly where it should be, and the rest of the page is blank. What is the remedy?

Meho R.

  • Full Member
  • ***
  • Posts: 198
  • Karma: 0
Re: Exported PDFs contain graphics but no text
« Reply #1 on: April 18, 2012, 09:05:58 pm »
Can you provide an example .sla file which shows the issue for testing purposes?

crmdgn

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Scribus User
Re: Exported PDFs contain graphics but no text
« Reply #2 on: April 18, 2012, 11:07:37 pm »
See attached: the .sla and the exported .pdf.

Nermander

  • Hero Member
  • *****
  • Posts: 1306
  • Karma: 17
Re: Exported PDFs contain graphics but no text
« Reply #3 on: April 19, 2012, 11:28:59 am »
I see the Blah Blah and Text Text.

What are you using to view the PDF? Anything else than Adobe Reader might have bugs (even Adobe Reader in some versions have bugs).

I did get a warning message that the font (Gil Sans I think) was not embedded, but I don't think that matters.

utnik

  • Hero Member
  • *****
  • Posts: 1306
  • Karma: 14
Re: Exported PDFs contain graphics but no text
« Reply #4 on: April 19, 2012, 01:08:43 pm »
I did get a warning message that the font (Gil Sans I think) was not embedded, but I don't think that matters.

the font is embedded, but there is something wrong with it (as the warning tells, the reader can't extract it…)
other pdf viewers may not be able to display it correct – try to check what's wrong with this font – or replace it.

utnik

Nermander

  • Hero Member
  • *****
  • Posts: 1306
  • Karma: 17
Re: Exported PDFs contain graphics but no text
« Reply #5 on: April 19, 2012, 02:10:15 pm »
I think the information in the PDF says it was made with Scribus 1.4.0rc3, an upgrade to the final 1.4.0 might solve the problem.

crmdgn

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Scribus User
Re: Exported PDFs contain graphics but no text
« Reply #6 on: April 19, 2012, 02:39:16 pm »
The font embedding is almost certainly the problem: I switched to font outlining and the PDF displays properly (I'm using Preview, BTW, since you asked). I also upgraded to the final 1.4.0 and the problem still exists.

Outlined fonts are OK for now, until I can figure out how to fix the embedding. Thanks to you both for your help.

utnik

  • Hero Member
  • *****
  • Posts: 1306
  • Karma: 14
Re: Exported PDFs contain graphics but no text
« Reply #7 on: April 19, 2012, 04:27:50 pm »
it's the same on my system:
  • your test pdf: no text in preview, ok in adobe reader
  • pdf generated here with your sla file: no text in preview, ok in adobe reader
  • pdf generated after font replacement: looks ok. in preview as well as in adobe reader

utnik

Nermander

  • Hero Member
  • *****
  • Posts: 1306
  • Karma: 17
Re: Exported PDFs contain graphics but no text
« Reply #8 on: April 19, 2012, 05:16:18 pm »
Sounds like a problem in Preview then?

Meho R.

  • Full Member
  • ***
  • Posts: 198
  • Karma: 0
Re: Exported PDFs contain graphics but no text
« Reply #9 on: April 21, 2012, 05:15:27 pm »
Sounds like a problem in Preview then?

I don't think so. There's no text displayed in Okular PDF reader on Linux, so it's more likely the font issue. I replaced Gill Sans in .sla file with Gill Sans Std.otf and everything is fine in the resulting PDF file.

@crmdgn, that Gill Sans font you're using might be faulty, or, for some reason, Scribus cannot handle it properly. Did the font come with your OS, or you bought a licence separately? In case of the latter, do you have OpenType version of font?

Nermander

  • Hero Member
  • *****
  • Posts: 1306
  • Karma: 17
Re: Exported PDFs contain graphics but no text
« Reply #10 on: April 23, 2012, 09:25:06 am »
Neither Preview nor Okular are Adobe Reader, they might not be fully compliant.

Adobe Reader is the reference application.

utnik

  • Hero Member
  • *****
  • Posts: 1306
  • Karma: 14
Re: Exported PDFs contain graphics but no text
« Reply #11 on: April 23, 2012, 03:13:48 pm »
hi nermander

reader is the reference, but reader tells, that something is wrong with this font - do you really think, the adobe application does this for users of other viewers only?

utnik

Meho R.

  • Full Member
  • ***
  • Posts: 198
  • Karma: 0
Re: Exported PDFs contain graphics but no text
« Reply #12 on: April 24, 2012, 03:35:17 pm »
Neither Preview nor Okular are Adobe Reader, they might not be fully compliant.

Adobe Reader is the reference application.

Even if "the reference application", Adobe Readers is, if not the buggiest (which it is in my experience), then definitely in top 5 buggiest PDF readers out there, which is one of the main reasons why many people use Sumatra, PDF-XChange, Foxit etc. On the other hand, default readers on Linux are Evince and Okular on most desktops, so if Scribus fails to create PDFs readable by those viewers too, then it's an epic fail for Scribus.
« Last Edit: April 24, 2012, 03:41:17 pm by Meho R. »

Nermander

  • Hero Member
  • *****
  • Posts: 1306
  • Karma: 17
Re: Exported PDFs contain graphics but no text
« Reply #13 on: April 25, 2012, 09:25:24 am »
Well, Scribus should create a PDF that conforms to the specification. If other readers can not handle all features of the PDF created by Scribus it is not an error in Scribus.

As far as I know Scribus main target remains "PDF for professional printing".