Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #3627

Re: Font embedding in Existing PDF's

From ken <ken@spamcop.net>
Newsgroups comp.lang.postscript
Subject Re: Font embedding in Existing PDF's
Date 2021-02-03 07:55 +0000
Message-ID <MPG.3a846755fabea3969898c4@usenet.plus.net> (permalink)
References <f598435b-83be-4769-ba82-60fc3fdbcca8n@googlegroups.com>

Show all headers | View raw


In article <f598435b-83be-4769-ba82-60fc3fdbcca8n@googlegroups.com>, 
daffodils345@gmail.com says...
> 
> I need to embed fonts in generated PDF fom word Document programtically in C# .net.
> 
> Currently I am using Ghostscript 9.53 for embedding fonts. The resultant PDF's are approx 3-4 times bigger comapred to the ones genrarted with Ghostscript 9.07. These PDF's are sent to the Printer and to Archive.
> 
> Since bigger PDF's are eating the archive Disk space very quickly, what possibilites exists to make the PDF's smaller with embedded fonts using GS 9.53.3.
> 
> I've tried using the resource folder from 9.07 in 9.53.3 and also using the ResourceDir switch. The Resultant PDF was still the same size.
> 
> My requirement is that fonts needs to be embedded and keep the PDF's to the smallest size as Possible.


As I said on IRC (though you did not respond so I have no idea if you 
saw it), it is very unlikely that you can reliably produce a new PDF 
file with the fonts embedded, which correctly draws the text, without 
the file being substantially larger.

It is conceivable that, for PDF files produced systematically in the 
same way, a simpler treatment is possible and that is why (for the PDF 
files you are processing) an older and less reliable method produces 
acceptable results.

However, should the production of the original PDF files change you may 
well discover the reason that the files are now larger is because you 
were taking advantage of some 'quirk' of the original PDF files which no 
longer applies with the new ones.

As I said, I cannot possibly venture to guess at a reason wiithout 
seeing the original files. Nor I suspect can anyone else, given that I 
maintain the software which creates the PDF files. If you would like 
someone to look at your problem you should open a bug report, attach an 
example file and state the command line you are using.

You can sign up to the Ghostscript bug tracker at bugs.ghostscript.com


			Ken

Back to comp.lang.postscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Font embedding in Existing PDF's Rohan Suku <daffodils345@gmail.com> - 2021-02-02 02:55 -0800
  Re: Font embedding in Existing PDF's "Jeffrey H. Coffield" <jeffrey@digitalsynergyinc.com> - 2021-02-02 14:34 -0800
  Re: Font embedding in Existing PDF's ken <ken@spamcop.net> - 2021-02-03 07:55 +0000
    Re: Font embedding in Existing PDF's Rohan Suku <daffodils345@gmail.com> - 2021-02-03 06:34 -0800
      Re: Font embedding in Existing PDF's ken <ken@spamcop.net> - 2021-02-03 16:11 +0000
        Re: Font embedding in Existing PDF's Rohan Suku <daffodils345@gmail.com> - 2021-02-05 03:44 -0800
          Re: Font embedding in Existing PDF's ken <ken@spamcop.net> - 2021-02-05 11:47 +0000

csiph-web