• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 510
  • Last Modified:

Converting PS to PDF with code

I need to learn how to do this without making the person do this, it needs to be done within the program
0
wkbrdr03
Asked:
wkbrdr03
  • 7
  • 2
  • 2
  • +1
2 Solutions
 
Karl Heinz KremerCommented:
If you have access to the full version of Adobe Acrobat, you can use the Distiller automation interface. This is documented in the Acrobat SDK. The current version of the SDK is unfortunately no longer available for free: You have to be a ASN member to get access to it. The Acrobat 5 SDK is however still available on Adobe's web server, and it does have all the documentation you need to convert a PostScript file to a PDF file. You will of course not find any information about new Acrobat 6 features, but the general process has not changed.

You can find the Acrobat 5 SDK here (scroll to the end of the page): http://partners.adobe.com/asn/acrobat/download.jsp#fullinstall

0
 
Karl Heinz KremerCommented:
If you don't have access to the full version of Acrobat, you need to use software like Ghostscript (http://www.ghostscript.com). Just make sure that you understand the two licenses that Ghostscript is released under.
0
 
joghurtCommented:
If you need a nice example on how to write PDF files, check out the Amyuni PDF converter. It's open license and you can get the source, too.
See http://www.amyuni.com/en/products/pdf_converter/
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
wkbrdr03Author Commented:
I need a free version but that amyuni.com website doesn't work.  anyone know where i can get that
0
 
joghurtCommented:
Strange. I've copied the URL from my browser right after checking which page I should link to. But now the whole www.amyuni.com site is unreachable.
0
 
Karl Heinz KremerCommented:
"Open license" does _NOT_ mean "open source". Yes, they offer an "open license", but this means that you pay a certain amount upfront, get the source code and distribute the software without paying any further royalties.

This is _NOT_ free software.

.. and yes, their web site seems to be down.
0
 
Karl Heinz KremerCommented:
The web site is back up again.
0
 
xassetsCommented:
GNU ghostscript is free for redistribution for profit, subject to certain minor caveats, its a different license to the latest version. Its callable from VB. Its about a year older than the latest version but still works OK

The example is about 150 lines of VB - do you want it ?

0
 
Karl Heinz KremerCommented:
xassets,
your statement is not necessarily true. You can distribute (and use) GNU Ghostscript as long as
- your application is licensed under the GPL, in this case you don't have any limitations about what you can do with it
- you only run the Ghostscript executable and don't link to it, or even base your own code on it. The GPL does not allow you to take the GNU Ghostcript code and e.g. create an ActiveX control out of it and use that in your application, or link it's DLLs into your application.

That's what I ment by " make sure that you understand the two licenses that Ghostscript is released under".
0
 
xassetsCommented:
I'm interested in this. Text from the gnu license:

These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works.

and

GNU Ghostscript may not be incorporated into commercial products which forbid copying or for which customers cannot obtain source code for no more than the cost of reproduction, although it may be distributed ("aggregated") with commercial products;


If you're just using ghostscript to convert or print reports in pdf, in say an accounting system, then I think "aggregated" would apply. I didn't see anything that requires the commercial product to be under GPL.

------------------------------------
Also I mailed artifex as follows:

> Hi There
> We are interested in redistributing gswin32.dll with a low cost report
> writer program we are developing:
>
>     * We do not require support
>     * We do not want upgrades
>     * We are happy to include the gswin32.dll source, although I doubt
>       if any of our customers would be interested in it
>     * We do not know how many people will buy the product, but we are
>       not keen on licensing gswin32.dll "per customer" because it
>       would be unmanageable
>     * Developers would want to use this product in place of xyzxyz
>       reports, and would need to be able to sell their product without
>       worrying about ghostscript licensing.
>     * This is a venture being taken on by developers without funding
>
> Our product would be under a commercial license, not gpl, and would
> not include our own source code.
> What would be a typical pricing arrangement for this kind of scenario ?

And the Artifex response:

It sounds to me like, based on your comments below, you don't really
need the Artifex commercial version of Ghostscript. If you don't:

require support
don't want upgrades
doubt that your customers would be interested
don't know how many people would buy?
...
---------------------------------------------------------------

theres much more to say on this, but dont want to clog up EE - would like to hear your views though

0
 
Karl Heinz KremerCommented:
Please read my comment again, I listed two cases in which you can use Ghostscript. The first one is a given: If your app is released under the GPL, there is of course no problem. In the second case, you have to be careful about how it's used.

If you link (or use a COM or ActiveX component), you are no longer independent of GS (or any other GPL'ed software). My interpretation is that if your application can work with different RIPs, GS being one of them, your app is indenpendent enough that it's not a problem to distribute GS with your app (but keep in mind that you need to provide the source code for GS as well).
0
 
Karl Heinz KremerCommented:
Split between joghurt and khkremer
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now