Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #3628
| Newsgroups | comp.lang.postscript |
|---|---|
| Date | 2021-02-03 06:34 -0800 |
| References | <f598435b-83be-4769-ba82-60fc3fdbcca8n@googlegroups.com> <MPG.3a846755fabea3969898c4@usenet.plus.net> |
| Message-ID | <d9180159-1e0d-4e15-b78e-e3169759998en@googlegroups.com> (permalink) |
| Subject | Re: Font embedding in Existing PDF's |
| From | Rohan Suku <daffodils345@gmail.com> |
On Wednesday, 3 February 2021 at 08:56:00 UTC+1, ken wrote: > In article <f598435b-83be-4769...@googlegroups.com>, > daffod...@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 Hi, The command hasn't changed. The only diferrence I can notice is in the version of ghostscript. The smaller ones were generated via 9.07 and bigger ones with 9.53. The text and image contents of the files remain the same. The only operation perfomed is to embed the fonts completely. Thats's were the size difference occurs. The PDF's were generated systematically. I can generate a sample file and provide it to you. I cannot share the currently generated files because it contains certain sensitive information. For me it seems the only difference is in bigger fonts thats embedded into the PDF Files (9.07 had smaller font files comapred to 9.53.3). My concern here ist how can I instruct ghostscript not to use the bigger Fonts or use the Resources from version 9.07?
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar
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