Author Topic: Ghostscript: The Thread  (Read 20695 times)

0 Members and 1 Guest are viewing this topic.

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Ghostscript: The Thread
« Reply #30 on: July 10, 2008, 12:05:44 PM »
Has anyone run across issues with regards to Autocad wipe outs just become bleeding thru with certain plotters?

I am currently trying to find if there is a setting but I haven't exhausted searching thru things for a setting.
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Ghostscript: The Thread
« Reply #31 on: July 10, 2008, 12:21:11 PM »
My printing Co. had problems with wipe-outs until we told them about a certain setting in Acrobat Reader.

TheSwamp.org  (serving the CAD community since 2003)

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Ghostscript: The Thread
« Reply #32 on: July 10, 2008, 12:56:13 PM »
My printing Co. had problems with wipe-outs until we told them about a certain setting in Acrobat Reader.
It was uncheck and still is.  Actualy I tried checking it and it lessen the bleed thru but I set it back to uncheck..

Background. 
After getting set up by Se7en back in the middle of June (Thanks! Seven), I ran a project thru and FTPed the drawings to our Printer.  Since I we are under the gun on some other projects I was told thru set under desk since the owners and state housing authority and jump on other project.  I am not getting to that set.  The wipe outs in the right side of the sheet; from the printer's set; start to get lines in the middle of the wipe out.  I new it was a printer issue but using other PDF writers (autocad's and Adobe writer 5) in the past has never had a issue.  So verify that Ghostscript is or is not the problem ran the very same pdf file to our plotter (hp1050c and printer Sharp MX-2300 [8 1/2x11 & 11x17]).  The plotter no problem but the Sharp had major bleed thru.  (I really thought I had tested both printers back in June for this, but it was so long ago)  Tweaking some settings dpi and some ole raster slide bar in Ghostscript has made a slight improvement in the bleed thru from the Sharp
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

JohnK

  • Administrator
  • Seagull
  • Posts: 10625
Re: Ghostscript: The Thread
« Reply #33 on: July 10, 2008, 02:54:30 PM »
No problem.

Can you email me one of those PDFs?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Ghostscript: The Thread
« Reply #34 on: July 10, 2008, 03:45:56 PM »
No problem.

Can you email me one of those PDFs?
Coming at you.
Thanks.

What I have got so far is that if I crank down the DPI to 150 the bleeding stops on the Sharp and still maintains good line "crispness" but it plots horrible on the HP.  :x
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Ghostscript: The Thread
« Reply #35 on: July 25, 2008, 01:38:29 PM »
Cool .. now I just need to automate it in my plotting script
Please post how you automate, as I couldn't figure it out.

I found a way to combine all the pdf's in one directory into one pdf with ghostscript.  You have to enable 'Delayed environment Variable Expansion' in the registry, but that is explained in the batch file code posted.  I couldn't figure out how to do it at run time.  They said to start a new command window with the /v:on statement, but I didn't know how to do that unless I have one batch open a new command window with the switch on, and then call another batch file to execute the code.  I'm welcomed to suggestions.

Code: [Select]
@echo off

::  The ! syntax is needed to cause the environment variable to
::  be evaluated every time it's referenced instead of only at
::  the beginning of the statement. This is known as Delayed
::  Environment Variable Expansion (catchy name, I know). This is
::  NOT turned on by default.
 
::  To turn on Delayed Environment Variable Expansion for this
::  just script, run cmd with the /v:on switch. To set Delayed
::  Environment Variable Expansion on permanently for a given
::  user on a machine, create this REG_DWORD value and set it to 1:
 
::  HKEY_CURRENT_USER\Software\Microsoft\Command Processor\DelayedExpansion

::  To set this as the default for all users on a given machine,
::  use this key instead:
 
::  HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\DelayedExpansion

::  http://aspn.activestate.com/ASPN/Mail/Message/activeperl/3002204
echo.

set list=
for /F "delims=" %%i in ('dir *.pdf /b /od') do set list=!list! %%i
"c:\gs\gs8.54\bin\gswin32c" -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=allfiles.pdf %list%
echo Done!

Here is code to create pdf of all the .plt's in the directory, and combine them into one pdf.

Code: [Select]
@echo off
::  process all the .plt files in this directory to create them as pdf files,
::  then add them all into one pdf file named "AllFiles.pdf"

::  The ! syntax is needed to cause the environment variable to
::  be evaluated every time it's referenced instead of only at
::  the beginning of the statement. This is known as Delayed
::  Environment Variable Expansion (catchy name, I know). This is
::  NOT turned on by default.
 
::  To turn on Delayed Environment Variable Expansion for this
::  just script, run cmd with the /v:on switch. To set Delayed
::  Environment Variable Expansion on permanently for a given
::  user on a machine, create this REG_DWORD value and set it to 1:
 
::  HKEY_CURRENT_USER\Software\Microsoft\Command Processor\DelayedExpansion

::  To set this as the default for all users on a given machine,
::  use this key instead:
 
::  HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\DelayedExpansion

::  http://aspn.activestate.com/ASPN/Mail/Message/activeperl/3002204
echo.
for %%f in (*.plt) do "c:\gs\gs8.54\bin\gswin32c" -dSAFER -dBATCH -dNOPAUSE -sOutputFile="%%~nf.pdf" -sDEVICE=pdfwrite -c "<</Orientation 1>> setpagedevice" -f "%%f"

set list=
for /F "delims=" %%i in ('dir *.pdf /b /od') do set list=!list! %%i
"c:\gs\gs8.54\bin\gswin32c" -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=AllFiles.pdf %list%

echo Done!

Edit:  If you want to delete the pdf files used to create the main pdf, then you can add this line right after you create the main pdf ( the blank line before 'echo Done!' ).
Code: [Select]
for %%f in ( %list% ) do del %%f
« Last Edit: July 25, 2008, 04:45:57 PM by T.Willey »
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.