Bug 691960

Summary: Space Character
Product: Ghostscript Reporter: venkateswarlu <m.mvlbrm>
Component: PDF WriterAssignee: Ken Sharp <ken.sharp>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P4    
Version: 8.70   
Hardware: PC   
OS: Windows 7   
Customer: Word Size: ---
Attachments: Postscript

Description venkateswarlu 2011-02-13 12:49:53 UTC
Hi 

Please find attached .PS file.
Comment 1 venkateswarlu 2011-02-13 12:51:58 UTC
(In reply to comment #0)
> Hi 
> Please find attached .PS file.

I have got information Space character in end of .PS file.

Because this space i'm getting blank pdf page end of the document.

Could you please tell how to find the space character in attached .PS file.

Thanks
Comment 2 Ken Sharp 2011-02-13 15:08:31 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > Hi 
> > Please find attached .PS file.

Not attached.
 
> I have got information Space character in end of .PS file.
> 
> Because this space i'm getting blank pdf page end of the document.
> 
> Could you please tell how to find the space character in attached .PS file.

To be honest, no. While it might be possible for this particular document, in the general case it is not possible. Also without seeing the PostScript file I certainly can't tell you how to find the extra space.

Assuming that you have created the PostScript file from some application then you should go back to the original document, remove the trailing space, and recreate the PostScritp file.

This does not appear to be a Ghostscript bug or enhancement request.
Comment 3 venkateswarlu 2011-02-15 15:39:12 UTC
Created attachment 7250 [details]
Postscript
Comment 4 Ken Sharp 2011-02-15 15:51:07 UTC
%%Page: (2) 2
%%BeginPageSetup
_S
0 0 translate
/pagenum 2 def
/fname (E:/gs/temp/conv.txt) def
/fdir (E:/gs/temp/) def
/ftail (conv.txt) def
/user_header_p false def
/user_footer_p false def
%%EndPageSetup
5 831 M
( ) s
_R
S
%%Trailer
%%Pages: 2
%%DocumentNeededResources: font 
%%EOF

The !( ) s! is the line that renders the space.

Note that since this is PostScript, removing this won't get rid of the final page. As I said in comment #2 go back to the original document and remove the trailing space/second page definition in that document, and remake the PostScript file.
Comment 5 Ken Sharp 2011-02-15 15:59:51 UTC
*** Bug 691969 has been marked as a duplicate of this bug. ***