Adobe Distiller?

Discussion in 'AutoCAD' started by Kwnart, Oct 20, 2004.

  1. Kwnart

    Kwnart Guest

    I was wonder if someone could help me.

    I have some drawings I am generating and then saving to a directory. I want to take these drawings and then convert them for .PDF for the sales people to use, since they don't have autocad.

    I orginally was going to have the pdf generated off the open drawing, and couldn't get around the automatically naming the file thing. But, if the distiller object i can take a saved file and convert it. Well, I can't figure out how to do it.

    I have the following code.

    sub File2PDF()

    Dim PDF1 As PdfDistiller
    Dim Source as String
    Dim Out as String

    PDF1.FileToPDF Source, Out

    End Sub


    I keep getting the Object variable or With block not set error...

    What do I need to set PDF1 = to? Do i set it to thisdrawing.activelayout or what?

    Any suggestions?

    Rich
     
    Kwnart, Oct 20, 2004
    #1
  2. Kwnart

    Warren M Guest

    Hello Rich.

    I don't have Distiller, so I don't know what there is for an 'Object Model' to know if it can be done.

    However, you could do it from the AutoCAD side...
    Create a function to 'Plot' the dwg to the Distiller PDF printer.

    Hope this helps
    Warren M
     
    Warren M, Oct 21, 2004
    #2
  3. Kwnart

    Ed Jobe Guest

    If you search this forum for "distiller", you should find some sample code.
    But there are two ways to set an object.

    1.
    Dim myObject As Object
    Set myObject = New Object

    2.
    Dim myObject As New Object

    --
    ----
    Ed
    ----
    want to take these drawings and then convert them for .PDF for the sales
    people to use, since they don't have autocad.
    couldn't get around the automatically naming the file thing. But, if the
    distiller object i can take a saved file and convert it. Well, I can't
    figure out how to do it.
     
    Ed Jobe, Oct 21, 2004
    #3
  4. Set PDF1 = New PdfDistiller


    want to take these drawings and then convert them for .PDF for the sales
    people to use, since they don't have autocad.
    couldn't get around the automatically naming the file thing. But, if the
    distiller object i can take a saved file and convert it. Well, I can't
    figure out how to do it.
     
    Tim Strandberg, Oct 22, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.