Pages: 1 2 3 [4]   Go Down

Author Topic: Simple PDF Solution; "Gostscript" -> Developer Needed  (Read 37714 times)

ivan_holmes

  • Valued Member
  • **
  • Offline Offline
  • Posts: 28
  • New Member
Re: Simple PDF Solution; "Gostscript" -> Developer Needed
« Reply #60 on: June 04, 2020, 06:29:04 AM »

Qpdf already supports linking with normal jpeglib so you shouldn't have many problems with that part, at least.
Logged

OS923

  • Platinum Member
  • *****
  • Offline Offline
  • Posts: 888
Re: Simple PDF Solution; "Gostscript" -> Developer Needed
« Reply #61 on: June 05, 2020, 01:37:07 AM »

From https://sourceforge.net/projects/qpdf/files/contrib/vc6/

Code: [Select]
This area contains a port of qpdf to make it build with Microsoft
Visual C++ version 6.0.  This port has been generously provided by
Jian Ma <[email protected]> who has agreed to allow them to
distributed under the same terms as qpdf.  I am grateful for his
contribution.

VC6 is too old to support qpdf directly, but only minor modifications
were required to make it work.

If they can make it work in Visual C++ 6 then we have a good chance that it will work on OS 9. It uses the standard templates library and I didn't see includes of missing files.

The main problem is that the downloads (qpdf, libjpeg and zlib) contain much clutter, make files, test files, test programs, cryptic file names and file names that are too long for OS 9 and that everything should be ordered and linked as 3 libraries with test programs.
Logged

OS923

  • Platinum Member
  • *****
  • Offline Offline
  • Posts: 888
Re: Simple PDF Solution; "Gostscript" -> Developer Needed
« Reply #62 on: June 08, 2020, 01:58:41 AM »

I linked libjpeg and zlib. Qpdf uses templates that I don't have. Which version of STL would they use?
Logged

OS923

  • Platinum Member
  • *****
  • Offline Offline
  • Posts: 888
Re: Simple PDF Solution; "Gostscript" -> Developer Needed
« Reply #63 on: June 24, 2020, 10:24:44 AM »

See solution in attachment.
Logged

adespoton

  • Valued Member
  • **
  • Offline Offline
  • Posts: 39
  • Crusty Member
Re: Simple PDF Solution; "Gostscript" -> Developer Needed
« Reply #64 on: July 13, 2020, 10:02:01 AM »

To go down a completely different route, has anyone investigated the open source javascript PDF viewer bundled in the likes of Firefox?  This would be post-classilla, but as the code is available, maybe it works with a javascript runtime that'll run in OS 9?  It might also be something that could be ported to C++ or MacPython.

This would have the added benefit that it supports modern PDF versions and just ignores the objects (encrypted forms, etc.) that it can't handle, instead of refusing to open the PDF at all.
Logged

OS923

  • Platinum Member
  • *****
  • Offline Offline
  • Posts: 888
Re: Simple PDF Solution; "Gostscript" -> Developer Needed
« Reply #65 on: July 15, 2020, 11:16:41 AM »

In my experience it would require Java that is too sophisticated for OS 9.

I wouldn't recommend Qpdf either because when I link it as a static library or if I try to separate it from the console then I get weird bugs, which indicates that this software isn't kosher. I won't include this in OS 9.3.
Logged

ivan_holmes

  • Valued Member
  • **
  • Offline Offline
  • Posts: 28
  • New Member
Re: Simple PDF Solution; "Gostscript" -> Developer Needed
« Reply #66 on: August 08, 2020, 12:54:30 PM »

See solution in attachment.

I've only just seen this - thought I had notifications on for this thread. Anyway, I checked it out and it looks very useful, will have to look in more detail sometime.

To go down a completely different route, has anyone investigated the open source javascript PDF viewer bundled in the likes of Firefox?

My gut instinct is that this will be too difficult - I doubt a suitable JS runtime exists.
Logged

Mat

  • Platinum Member
  • *****
  • Offline Offline
  • Posts: 683
Re: Simple PDF Solution; "Gostscript" -> Developer Needed
« Reply #67 on: May 23, 2021, 07:15:16 PM »

I'm actually working on a PDF Viewer for Mac OS 9 that can open modern PDF's.
… but I will probably post something about it soon :)
I do not intend to create any pressure! I just like to suggest to think about having the program ready when we celebrate the 10th aniversary of this thread. ;)
Logged

Knezzen

  • Administrator
  • Platinum Member
  • *****
  • Offline Offline
  • Posts: 1089
  • Pro Tools Addict!
    • Macintosh Garden
Re: Simple PDF Solution; "Gostscript" -> Developer Needed
« Reply #68 on: May 24, 2021, 03:39:49 AM »

I'm actually working on a PDF Viewer for Mac OS 9 that can open modern PDF's.
… but I will probably post something about it soon :)
I do not intend to create any pressure! I just like to suggest to think about having the program ready when we celebrate the 10th aniversary of this thread. ;)

I actually dropped this after OS923 pointed out the Unicode stuff to me. I don't really know where the sources are now, but I can have a look.
Quite sure they are horrible :P
Logged
Pro Tools addict and admin at Mac OS 9 Lives!, System 7 Today and Macintosh Garden.

Mat

  • Platinum Member
  • *****
  • Offline Offline
  • Posts: 683
Re: Simple PDF Solution; "Gostscript" -> Developer Needed
« Reply #69 on: June 16, 2024, 06:40:27 AM »

Try this: (Fully Working Copy)
MacGSView 2 & GhostScript 8.5 (Open Modern PDFs)
http://macos9lives.com/smforum/index.php?topic=3228.msg20549#msg20549
Where has this posting/thread gone?

Can somebody with knowledge perhaps create an installer with GSView and GhostSrcipt 8.54 from Reply #47
Logged

IIO

  • Global Moderator
  • Platinum Member
  • *****
  • Offline Offline
  • Posts: 4557
  • just a number
Re: Simple PDF Solution; "Gostscript" -> Developer Needed
« Reply #70 on: July 11, 2024, 11:25:41 AM »

the GSView app is in   /Text& Math (but it might be moved to the /OS9Lives folder one day :) )
Logged
insert arbitrary signature here
Pages: 1 2 3 [4]   Go Up
 

Recent Topics