Save View-Only drawing as PDF

Discussion in 'SolidWorks' started by lcifers, Dec 8, 2005.

  1. lcifers

    lcifers Guest

    I have written apps that batch saves PDF documents from SW drawings and
    to save time loads the drawings (which are assumed to be last saved
    since the model was changed) as view-only. I am starting a new one now,
    and it looks like something in SW has changed. The only save option for
    view-only drawings is PDF (and save as PDF via API call fails). I've
    tested on SW 2005 and 2006. The funny thing is, the last app I wrote
    for this ran on SW 2005, but I dont remember what service pack.

    I have the SaveAsPDF addin loaded and when opening drawings normally I
    can save as PDF with no problem.

    Does anyone have any more information on this? Or better yet, am I
    missing something and the functionality is still there (wishful
    thinking I'm afraid).

    Thanks in advance.

    Regards,

    - Luther
     
    lcifers, Dec 8, 2005
    #1
  2. Hi,

    are you using:
    Debug.Print Model.SaveAs4("D:\samples\d1.pdf", 0, 0, e, w)
    or something else (is there other ways?)

    I'm using it on add-in but without "view only" and it works ok in
    05sp3.1 and 06sp1.0.

    --

    regards

    Markku Lehtola

    www.markkulehtola.net
     
    Markku Lehtola, Dec 9, 2005
    #2
  3. lcifers

    lcifers Guest

    Yes, I'm using the SaveAs4 call. The call works fine, it's only that I
    am unable to save as PDF when drawing is opened view-only. SolidWorks
    support has told me that this is normal behavior, so I am unsure why
    this worked in the past, but aparrently it's not supposed to :)

    Regards,

    - Luther
     
    lcifers, Dec 12, 2005
    #3
  4. How about using "print to file" to create pdf, like SWup -
    www.markkulehtola.net/swxx.html

    I haven't tried but It should work with View-only...

    --

    regards

    Markku Lehtola

    www.markkulehtola.net
     
    Markku Lehtola, Dec 12, 2005
    #4
  5. lcifers

    SW Monkey Guest

    The only option I get when opening a "VIEW-ONLY" drawing is TIFF file.
     
    SW Monkey, Dec 13, 2005
    #5
  6. Yep, that's it then. It's possible to convert tiff to pdf but that's not
    a very good idea I think :-(

    --

    regards

    Markku Lehtola

    www.markkulehtola.net
     
    Markku Lehtola, Dec 13, 2005
    #6
  7. lcifers

    That70sTick Guest

    Perhaps if you access your PDF-producing application (Bluebeam?) as a
    printer instead of through "Save As". I've done this previously
    creating PDF's on IE5 via PDF995 for a program that makes books of
    charts from a list of stock symbols.
     
    That70sTick, Dec 13, 2005
    #7
  8. lcifers

    SW Monkey Guest

    Is there a way to make Bluebeam print to a PDF file? it acts like it
    does when you try it, but it doesnt allow you to choose a location to
    save the file.
     
    SW Monkey, Dec 13, 2005
    #8
  9. I guess it depends what software you are using, for example I can do
    that with Thunderbird that I'm using to write this message because TB's
    print dialog has "print to file" option...it seems to work just fine,
    BUT, the result is of course .prn, not PDF.

    You can use it for example GhostScript + FreeDist to convert .prn to .pdf.


    --

    regards

    Markku Lehtola

    www.markkulehtola.net
     
    Markku Lehtola, Dec 13, 2005
    #9
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.