<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1628</id>
	<title>Nabble - Ghostscript</title>
	<updated>2009-11-30T00:36:32Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Ghostscript-f1628.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ghostscript-f1628.html" />
	<subtitle type="html">Ghostscript consists of an interpreter for the PostScript language and the PDF file format, a set of C procedures (the Ghostscript library) that implement the graphics capabilities that appear as primitive operations in the PostScript language, and a wide variety of output drivers for various file formats and printers. Ghostscript home is &lt;a href=&quot;http://ghostscript.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26570768</id>
	<title>Re: Need opinions for fixing bug #690834</title>
	<published>2009-11-30T00:36:32Z</published>
	<updated>2009-11-30T00:36:32Z</updated>
	<author>
		<name>Ken Sharp</name>
	</author>
	<content type="html">At 18:46 27/11/2009 +0900, you wrote:
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;This patch works as it fixes bug #690384, but there are issues to be
&lt;br&gt;&amp;gt;discussed.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;1) gs_font_cid0.cidata.glyph_data() is called at least twice for each
&lt;br&gt;&amp;gt;CID. &amp;nbsp;This is inefficient.
&lt;br&gt;&amp;gt;2) CID 0 fallback logic is distributed into three functions, &amp;nbsp;one in
&lt;br&gt;&amp;gt;psi and two in base.
&lt;br&gt;&amp;gt;3) Current CID 0 fallback logic does not handle errors correctly.
&lt;br&gt;&amp;gt;Some errors should be risen immediately before falling back to CID 0.
&lt;br&gt;&amp;gt;(I didn't do this because I didn't want to distribute complex code
&lt;br&gt;&amp;gt;three places apart in a system.)
&lt;br&gt;&amp;gt;4) Applying this patch makes bug #687832 go back in life.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;To tell the truth, I don't know where to start. &amp;nbsp;Maybe current font
&lt;br&gt;&amp;gt;handing in gs doesn't go along well with CIDFont.
&lt;/div&gt;&lt;br&gt;Well CIDFont handling was an addition to Ghostscript, since GS predates 
&lt;br&gt;CIDFonts, so its not entirely surprising that its a slightly klunky fit. I 
&lt;br&gt;would leave the inefficiencies in 1 and 2 for now, but feel free to raise a 
&lt;br&gt;new enhancement bug report for them if you want to make sure they don't get 
&lt;br&gt;forgotten.
&lt;br&gt;&lt;br&gt;IMO Point 3 should be a new 'nice to fix' (ie P4) bug, unless a customer 
&lt;br&gt;raises it as an error report. I'd be wary of converting a .notdef print 
&lt;br&gt;into an error, its entirely possible that Acrobat/CPSI behaves this way and 
&lt;br&gt;we've simply copied it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; On the other hand,
&lt;br&gt;&amp;gt;I think I may commit this patch because there is a customer waiting.
&lt;br&gt;&amp;gt;I would like to hear comments from you. &amp;nbsp;I would appreciate any hints,
&lt;br&gt;&amp;gt;directions or priorities you could give me.
&lt;br&gt;&lt;br&gt;As regards #687832, it 'looks' like we need to set the CTM correctly which 
&lt;br&gt;I think ought to be possible though presumably we need different logic than 
&lt;br&gt;was previously applied.
&lt;br&gt;&lt;br&gt;This issue appears to affect a broad range of InDesign files (ID produces 
&lt;br&gt;many CIDFonts in its PostScript and particularly PDF output now). Unless 
&lt;br&gt;absolutely essential I'd prefer to wait on a fix for #690834 until you can 
&lt;br&gt;fix both problems. I suspect the ID issue is considerably more common than 
&lt;br&gt;this new issue and re-introducing a widespread problem in order to fix an 
&lt;br&gt;uncommon problem doesn't seem like a good idea.
&lt;br&gt;&lt;br&gt;By the way, I noticed from your patch for gschar0.c:
&lt;br&gt;&lt;br&gt;@@ -73,10 +74,11 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (fdepth == MAX_FONT_STACK)\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return_error(gs_error_invalidfont);\
&lt;br&gt;&amp;nbsp; &amp;nbsp; pfont = pdata-&amp;gt;FDepVector[pdata-&amp;gt;Encoding[fidx]];\
&lt;br&gt;- &amp;nbsp;if (++fdepth &amp;gt; orig_depth || pfont != pte-&amp;gt;fstack.items[fdepth].font ||\
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;orig_index != fidx)\
&lt;br&gt;+ &amp;nbsp;pte-&amp;gt;fstack.items[fdepth].index = fidx;\
&lt;br&gt;+ &amp;nbsp;if (++fdepth &amp;gt; orig_depth || pfont != pte-&amp;gt;fstack.items[fdepth].font)\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; pte-&amp;gt;fstack.items[fdepth].font = pfont, changed = 1;\
&lt;br&gt;- &amp;nbsp;pte-&amp;gt;fstack.items[fdepth].index = fidx
&lt;br&gt;+ &amp;nbsp;else\
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;;
&lt;br&gt;&lt;br&gt;I don't recall seeing a specific prohibition in the coding standard, but 
&lt;br&gt;I've not seen anywhere else in GS use the multiple statements on single 
&lt;br&gt;line approach in a conditional, and I think it would be better to elide the 
&lt;br&gt;empty else clause altogether, ie:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;if (++fdepth &amp;gt; orig_depth || pfont != pte-&amp;gt;fstack.items[fdepth].font) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; pte-&amp;gt;fstack.items[fdepth].font = pfont;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; changed = 1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;My 2p worth,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ken
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26570768&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposal-for-changing-semantics-of-gx_font_stack_item_t%3A%3Aindex-%28bug--690834%29-tp26407973p26570768.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26540030</id>
	<title>Need opinions for fixing bug #690834</title>
	<published>2009-11-27T01:46:52Z</published>
	<updated>2009-11-27T01:46:52Z</updated>
	<author>
		<name>Masaki Ushizaka</name>
	</author>
	<content type="html">Dear gs-devel,
&lt;br&gt;&lt;br&gt;This is a patch I wrote to fix bug #690834. &amp;nbsp;I wanted to hear opinions &amp;nbsp;
&lt;br&gt;from experienced developers.
&lt;br&gt;&lt;br&gt;This patch implements fix 1-4 I mentioned in bug #690834 comment #8, &amp;nbsp;
&lt;br&gt;but leaves fix 5 (find another solution for bug #687832).
&lt;br&gt;This one also includes a patch I proposed in thread '[gs-devel] &amp;nbsp;
&lt;br&gt;Proposal for changing semantics of gx_font_stack_item_t::index (bug &amp;nbsp;
&lt;br&gt;#690834)'.
&lt;br&gt;&lt;br&gt;A localcluster test said there are differences in tests_private/ 
&lt;br&gt;comparefiles/Bug687832.pdf, which I expected because it reverses a &amp;nbsp;
&lt;br&gt;change in rev. 5613 which is a fix for bug #687832. &amp;nbsp;It also showed &amp;nbsp;
&lt;br&gt;differences in tests_private/comparefiles/Bug689748.pdf. &amp;nbsp;I see one of &amp;nbsp;
&lt;br&gt;the letter during a string rendered one dot horizontally shifted, &amp;nbsp;I &amp;nbsp;
&lt;br&gt;believe this is a number rounding issue and not a real problem.
&lt;br&gt;&lt;br&gt;Now gs_type0_next_char_glyph() calls gs_font_cid0.cidata.glyph_data() &amp;nbsp;
&lt;br&gt;for each CIDs in string. &amp;nbsp;show_state_setup() also calls it under &amp;nbsp;
&lt;br&gt;'glyphshow' or 'cshow'. &amp;nbsp;But this wasn't the end.
&lt;br&gt;&lt;br&gt;CID 0 glyph in a CIDFont serves a role of .notdef character. &amp;nbsp; 
&lt;br&gt;The .notdef fallback process typically takes two stages. &amp;nbsp;First during &amp;nbsp;
&lt;br&gt;the consulting of the CMap dictionary, second during the access of &amp;nbsp;
&lt;br&gt;glyphs in the CIDFont. &amp;nbsp;If the requested CID is not in the CIDFont, it &amp;nbsp;
&lt;br&gt;falls back to CID 0. &amp;nbsp;Without completing this second process, we do &amp;nbsp;
&lt;br&gt;not know what FDArray is going to be used. &amp;nbsp;But current code does this &amp;nbsp;
&lt;br&gt;second process long after gs_type0_next_char_glyph() or &amp;nbsp;
&lt;br&gt;show_state_setup() is called, in ztype9mapcid() (psi/zfcid0.c). &amp;nbsp;To &amp;nbsp;
&lt;br&gt;make this, &amp;nbsp;I copied the logic from ztype9mapcid() into &amp;nbsp;
&lt;br&gt;gs_type0_next_char_glyph() and show_state_setup().
&lt;br&gt;&lt;br&gt;This patch works as it fixes bug #690384, but there are issues to be &amp;nbsp;
&lt;br&gt;discussed.
&lt;br&gt;&lt;br&gt;1) gs_font_cid0.cidata.glyph_data() is called at least twice for each &amp;nbsp;
&lt;br&gt;CID. &amp;nbsp;This is inefficient.
&lt;br&gt;2) CID 0 fallback logic is distributed into three functions, &amp;nbsp;one in &amp;nbsp;
&lt;br&gt;psi and two in base.
&lt;br&gt;3) Current CID 0 fallback logic does not handle errors correctly. &amp;nbsp; 
&lt;br&gt;Some errors should be risen immediately before falling back to CID 0. &amp;nbsp; 
&lt;br&gt;(I didn't do this because I didn't want to distribute complex code &amp;nbsp;
&lt;br&gt;three places apart in a system.)
&lt;br&gt;4) Applying this patch makes bug #687832 go back in life.
&lt;br&gt;&lt;br&gt;To tell the truth, I don't know where to start. &amp;nbsp;Maybe current font &amp;nbsp;
&lt;br&gt;handing in gs doesn't go along well with CIDFont. &amp;nbsp;On the other hand, &amp;nbsp;
&lt;br&gt;I think I may commit this patch because there is a customer waiting.
&lt;br&gt;I would like to hear comments from you. &amp;nbsp;I would appreciate any hints, &amp;nbsp;
&lt;br&gt;directions or priorities you could give me.
&lt;br&gt;&lt;br&gt;Best Regards,
&lt;br&gt;Masaki Ushizaka
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26540030&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;b690834_p2.patch&lt;/strong&gt; (8K) &lt;a href=&quot;http://old.nabble.com/attachment/26540030/0/b690834_p2.patch&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposal-for-changing-semantics-of-gx_font_stack_item_t%3A%3Aindex-%28bug--690834%29-tp26407973p26540030.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26503136</id>
	<title>Re: Converting TIF from PDF created by Word with  UseCropBox option</title>
	<published>2009-11-24T12:57:59Z</published>
	<updated>2009-11-24T12:57:59Z</updated>
	<author>
		<name>Levi Wilson</name>
	</author>
	<content type="html">Alex,
&lt;br&gt;&lt;br&gt;Thanks for the quick response. &amp;nbsp;How would I use the patch that is
&lt;br&gt;shown in pdf_main.ps? &amp;nbsp;I am on Windows and the installation for
&lt;br&gt;windows does not package a gs/Resource/Init/pdf_main.ps with it. &amp;nbsp;How
&lt;br&gt;should I proceed from here?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Levi
&lt;br&gt;&lt;br&gt;On Tue, Nov 24, 2009 at 1:09 PM, Alex Cherepanov &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26503136&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alexcher@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Levi wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I've recently switched from GhostScript 8.63 to GhostScript 8.70.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I noticed the warning about the page not having a /MediaBox attribute.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yes, this is a bug and regression in v. 8.70.
&lt;br&gt;&amp;gt; See &lt;a href=&quot;http://bugs.ghostscript.com/show_bug.cgi?id=690676&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.ghostscript.com/show_bug.cgi?id=690676&lt;/a&gt;&lt;br&gt;&amp;gt; for discussion and a patch.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Alex Cherepanov
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26503136&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Converting-TIF-from-PDF-created-by-Word-with-UseCropBox-option-tp26500679p26503136.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26500799</id>
	<title>Re: Converting TIF from PDF created by Word with UseCropBox option</title>
	<published>2009-11-24T10:09:48Z</published>
	<updated>2009-11-24T10:09:48Z</updated>
	<author>
		<name>Alex Cherepanov</name>
	</author>
	<content type="html">Levi wrote:
&lt;br&gt;&amp;gt; I've recently switched from GhostScript 8.63 to GhostScript 8.70.
&lt;br&gt;...
&lt;br&gt;&amp;gt; I noticed the warning about the page not having a /MediaBox attribute.
&lt;br&gt;Yes, this is a bug and regression in v. 8.70.
&lt;br&gt;See &lt;a href=&quot;http://bugs.ghostscript.com/show_bug.cgi?id=690676&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.ghostscript.com/show_bug.cgi?id=690676&lt;/a&gt;&lt;br&gt;for discussion and a patch.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Alex Cherepanov
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26500799&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Converting-TIF-from-PDF-created-by-Word-with-UseCropBox-option-tp26500679p26500799.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26500679</id>
	<title>Converting TIF from PDF created by Word with UseCropBox option</title>
	<published>2009-11-24T10:04:32Z</published>
	<updated>2009-11-24T10:04:32Z</updated>
	<author>
		<name>Levi Wilson</name>
	</author>
	<content type="html">I've recently switched from GhostScript 8.63 to GhostScript 8.70.
&lt;br&gt;After doing so, my program that converted PDF files that were made
&lt;br&gt;with Microsoft Word now fails. &amp;nbsp;Here is the output from the
&lt;br&gt;command-line of one that fails:
&lt;br&gt;&lt;br&gt;C: &amp;gt;&amp;gt;gswin32c.exe -dPrinted -dBATCH -dUseCropBox -dNOPAUSE -q
&lt;br&gt;-dDITHERPPI=100 -sDEVICE=tiffg4 &amp;nbsp;-r600x600
&lt;br&gt;-sOutputFile=&amp;quot;c:\temp\coverletter.tif&amp;quot; c:\temp\coverletter.pdf
&lt;br&gt;&amp;nbsp; &amp;nbsp;**** Page has no /MediaBox attribute. Using the current page size.
&lt;br&gt;Error: /stackunderflow in --index--
&lt;br&gt;Operand stack:
&lt;br&gt;&amp;nbsp; &amp;nbsp;--dict:8/8(L)-- &amp;nbsp; 612.0 &amp;nbsp; 792.0 &amp;nbsp; 3
&lt;br&gt;Execution stack:
&lt;br&gt;&amp;nbsp; &amp;nbsp;%interp_exit &amp;nbsp; .runexec2 &amp;nbsp; --nostringval-- &amp;nbsp; --nostringval--
&lt;br&gt;--nostringval-- &amp;nbsp; 2 &amp;nbsp; %stopped_push &amp;nbsp; --nostringval--
&lt;br&gt;--nostringval-- &amp;nbsp; --nostring
&lt;br&gt;val-- &amp;nbsp; false &amp;nbsp; 1 &amp;nbsp; %stopped_push &amp;nbsp; 1862 &amp;nbsp; 1 &amp;nbsp; 3 &amp;nbsp; %oparray_pop &amp;nbsp; 1861
&lt;br&gt;&amp;nbsp; 1 &amp;nbsp; 3 &amp;nbsp; %oparray_pop &amp;nbsp; 1845 &amp;nbsp; 1 &amp;nbsp; 3 &amp;nbsp; %oparray_pop &amp;nbsp; --nostringval--
&lt;br&gt;&amp;nbsp; --nost
&lt;br&gt;ringval-- &amp;nbsp; 2 &amp;nbsp; 1 &amp;nbsp; 1 &amp;nbsp; --nostringval-- &amp;nbsp; %for_pos_int_continue
&lt;br&gt;--nostringval-- &amp;nbsp; --nostringval--
&lt;br&gt;Dictionary stack:
&lt;br&gt;&amp;nbsp; &amp;nbsp;--dict:1159/1684(ro)(G)-- &amp;nbsp; --dict:1/20(G)-- &amp;nbsp; --dict:75/200(L)--
&lt;br&gt;--dict:75/200(L)-- &amp;nbsp; --dict:106/127(ro)(G)-- &amp;nbsp; --dict:285/300(ro)(G)--
&lt;br&gt;&amp;nbsp; --dict
&lt;br&gt;:20/25(L)-- &amp;nbsp; --dict:2/6(L)--
&lt;br&gt;Current allocation mode is local
&lt;br&gt;GPL Ghostscript 8.70: Unrecoverable error, exit code 1
&lt;br&gt;&lt;br&gt;I noticed the warning about the page not having a /MediaBox attribute.
&lt;br&gt;&amp;nbsp;Therefore I removed the -dUseCropBox option and the conversion
&lt;br&gt;worked. &amp;nbsp;I have a couple of questions, why does the -dUseCropBox
&lt;br&gt;parameter cause gs to fail like this? &amp;nbsp;And two, by removing that
&lt;br&gt;option from the command-line what am I really doing? &amp;nbsp;Will it hurt
&lt;br&gt;anything? &amp;nbsp;I use this command to not only convert PDF images created
&lt;br&gt;by Word to TIF, but also PDF images of surveys that are sent to us via
&lt;br&gt;our translation vendor. &amp;nbsp;The surveys that are sent to us convert to
&lt;br&gt;TIF from PDF just fine with the -dUseCropBox parameter.
&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;&lt;br&gt;Levi
&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26500679&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Converting-TIF-from-PDF-created-by-Word-with-UseCropBox-option-tp26500679p26500679.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26498462</id>
	<title>Using .joboptions file on linux/ubuntu : pdfwrite</title>
	<published>2009-11-24T07:59:29Z</published>
	<updated>2009-11-24T07:59:29Z</updated>
	<author>
		<name>mawe</name>
	</author>
	<content type="html">I have a Adobe .joboptions file (&lt;a href=&quot;http://epsilon.slu.se/Repros5.joboptions&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://epsilon.slu.se/Repros5.joboptions&lt;/a&gt;) which I would like to use when creating pdf:s in OpenOffice on linux/ubuntu. As I understand, .joboptions files are just post script, and could (somehow) be used with the ghostscript pdfwrite device. Could anyone point me in the right direction for how to accomplish this?
&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;Martin&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-.joboptions-file-on-linux-ubuntu-%3A-pdfwrite-tp26498462p26498462.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26421412</id>
	<title>Bug converting EPS (CMYK) -&gt; PDF (become RGB)</title>
	<published>2009-11-19T09:41:37Z</published>
	<updated>2009-11-19T09:41:37Z</updated>
	<author>
		<name>y.roussel</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I use the following command to convert CMYK EPS to PDF, but this one is RGB.
&lt;br&gt;I just want a CMYK PDF. How to do ? 
&lt;br&gt;&lt;br&gt;gswin32c -q -dNoPause -dSAFER -dNOPAUSE -dBATCH -dDEVICEWIDTHPOINTS=100 -dDEVICEHEIGHTPOINTS=190 -sDEVICE=pdfwrite -sOutputFile=&amp;quot;test_.pdf&amp;quot; -f &amp;quot;test.eps&amp;quot;&lt;a href=&quot;http://old.nabble.com/file/p26421412/test.eps&quot; target=&quot;_top&quot;&gt;test.eps&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks and regards
&lt;br&gt;&lt;br&gt;Y.Roussel&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---bugs-f1630.html&quot; embed=&quot;fixTarget[1630]&quot; target=&quot;_top&quot; &gt;Ghostscript - bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bug-converting-EPS-%28CMYK%29--%3E-PDF-%28become-RGB%29-tp26421412p26421412.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26422698</id>
	<title>Re: Proposal for changing semantics of gx_font_stack_item_t::index (bug #690834)</title>
	<published>2009-11-19T00:37:11Z</published>
	<updated>2009-11-19T00:37:11Z</updated>
	<author>
		<name>Ken Sharp</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&amp;gt;Each member of fstack.items[0.. fstack.depth-1].font is a composite
&lt;br&gt;&amp;gt;font and its descendant fonts can be accessed by described above. &amp;nbsp;But
&lt;br&gt;&amp;gt;contents of FDepVector are references to another gs_font objects.
&lt;br&gt;&amp;gt;'fstack' is an array describing a single path of fonts those ware
&lt;br&gt;&amp;gt;selected to 'show' current glyph. &amp;nbsp;gs_type0_next_char_glyph() is
&lt;br&gt;&amp;gt;called for each glyph to know if selected descendant font path has
&lt;br&gt;&amp;gt;been changed for next glyph.
&lt;br&gt;&lt;br&gt;Ah, that makes more sense now, thanks for the explanation.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ken
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26422698&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposal-for-changing-semantics-of-gx_font_stack_item_t%3A%3Aindex-%28bug--690834%29-tp26407973p26422698.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26422413</id>
	<title>Re: Proposal for changing semantics of gx_font_stack_item_t::index (bug #690834)</title>
	<published>2009-11-19T00:24:29Z</published>
	<updated>2009-11-19T00:24:29Z</updated>
	<author>
		<name>Masaki Ushizaka</name>
	</author>
	<content type="html">&lt;br&gt;On 2009/11/19, at 0:49, Ken Sharp wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; At 22:42 18/11/2009 +0900, Masaki Ushizaka wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; fstack.items[0] is a rootfont. &amp;nbsp;fstack.items[1 .. fstack.depth-1] are
&lt;br&gt;&amp;gt;&amp;gt; intermediate composite fonts. &amp;nbsp;And fstack.items[fstack.depth] is a
&lt;br&gt;&amp;gt;&amp;gt; base font or a CIDFont. &amp;nbsp;These are aligned in
&lt;br&gt;&amp;gt;&amp;gt; gschar0.c:gs_type0_next_char_glyph().
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have no objection to the patch, what I see looks sensible, and is &amp;nbsp;
&lt;br&gt;&amp;gt; the way I thought it worked anyway....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I do have some questions about the existing scheme for my own &amp;nbsp;
&lt;br&gt;&amp;gt; education though if you don't mind answering them.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; fstack.items[0].font is a root font (type 0 composite font) &amp;nbsp;
&lt;br&gt;&amp;gt; currently fstack.items[0].index is always 0.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You describe fstack.items[1 .. fstack.depth-1] &amp;nbsp;(presumably &amp;nbsp;
&lt;br&gt;&amp;gt; the .font member ?) as 'intermediate composite fonts' are these type &amp;nbsp;
&lt;br&gt;&amp;gt; 0 composite fonts, or base fonts of some kind, or can it be either ?
&lt;/div&gt;&lt;br&gt;Yes, I meant '.font' member. &amp;nbsp;'Intermediate composite fonts' are just &amp;nbsp;
&lt;br&gt;usual FontType 0 composite fonts. &amp;nbsp;I said 'intermediate' because some &amp;nbsp;
&lt;br&gt;of us may not aware that composite fonts can be nested up to five &amp;nbsp;
&lt;br&gt;levels.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; fstack.items[fstack.depth], again presumably the font member, is a &amp;nbsp;
&lt;br&gt;&amp;gt; base font or CIDFont. I can see what this means for CIDFonts, what &amp;nbsp;
&lt;br&gt;&amp;gt; is meant by a 'base font', a type 0 or something else ?
&lt;br&gt;&lt;br&gt;The 'base font' is a red book terminology. PLRM3 p. 321, &amp;quot;Fonts of &amp;nbsp;
&lt;br&gt;type 1, 2, 3, 14, and 42 are called base fonts.&amp;quot; &amp;nbsp;This description may &amp;nbsp;
&lt;br&gt;not be sufficient. &amp;nbsp;In Level 2, 'base fonts' are the all fonts but &amp;nbsp;
&lt;br&gt;composite fonts. &amp;nbsp;PLRM2 p. 265, &amp;quot;Type 0 is a composite font composed &amp;nbsp;
&lt;br&gt;of other fonts called base fonts, organized hierarchically.&amp;quot; &amp;nbsp;That is, &amp;nbsp;
&lt;br&gt;the fonts have actual glyph descriptions. &amp;nbsp;It actually includes &amp;nbsp;
&lt;br&gt;Adobe's secret font types like 4, 5, 7... &amp;nbsp;I have been believing that &amp;nbsp;
&lt;br&gt;the CIDFonts are also base fonts but PLRM3 distinguish it from base &amp;nbsp;
&lt;br&gt;font. In PS3, there are three font classes: composite font, base font &amp;nbsp;
&lt;br&gt;and CID keyed font. &amp;nbsp;The CID keyed font is not a base font probably &amp;nbsp;
&lt;br&gt;because Adobe's original plan was to replace all base fonts with &amp;nbsp;
&lt;br&gt;CIDFonts.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; Currently, 'index' member is used:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;For n=0: &amp;nbsp;fstack.items[0].index == 0 (not used)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;For n=[1 .. fstack.depth]:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;fstack.items[n].index == font number used in
&lt;br&gt;&amp;gt;&amp;gt; fstack.items[n-1].font
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;(fstack.items[n-1].font.data.FDepVector[indexed by
&lt;br&gt;&amp;gt;&amp;gt; fstack.items[n].index] == fstack.items[n].font)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So this implies that each member of fstack.items[1...fstack.depth-1] &amp;nbsp;
&lt;br&gt;&amp;gt; is potentially a composite font with its own array of descendants ?
&lt;/div&gt;&lt;br&gt;Each member of fstack.items[1.. fstack.depth-1].font is always a &amp;nbsp;
&lt;br&gt;composite font, as well as fstack.items[0].font. &amp;nbsp;Its descendant fonts &amp;nbsp;
&lt;br&gt;can be accessed by casting it to 'gs_font_type0' and &amp;nbsp;
&lt;br&gt;accessing .data.FDepVector[]. &amp;nbsp;This real code would be:
&lt;br&gt;&lt;br&gt;gs_font_type0 *pfont0 = (gs_font_type0 *)fstack.item[n].font;
&lt;br&gt;assert(pfont-&amp;gt;data.FDepVector[pfont-&amp;gt;data.Encoding[fstack.item[n 
&lt;br&gt;+1].index]] == fstack.item[n+1].font);
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; It also seems to imply that when a composite font has composite &amp;nbsp;
&lt;br&gt;&amp;gt; descendants, the descendants have FDepVector arrays whose members &amp;nbsp;
&lt;br&gt;&amp;gt; are elements of the fstack array ?
&lt;br&gt;&lt;br&gt;Each member of fstack.items[0.. fstack.depth-1].font is a composite &amp;nbsp;
&lt;br&gt;font and its descendant fonts can be accessed by described above. &amp;nbsp;But &amp;nbsp;
&lt;br&gt;contents of FDepVector are references to another gs_font objects. &amp;nbsp; 
&lt;br&gt;'fstack' is an array describing a single path of fonts those ware &amp;nbsp;
&lt;br&gt;selected to 'show' current glyph. &amp;nbsp;gs_type0_next_char_glyph() is &amp;nbsp;
&lt;br&gt;called for each glyph to know if selected descendant font path has &amp;nbsp;
&lt;br&gt;been changed for next glyph.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; I'm puzzled as to the way these fonts are laid out, and would like &amp;nbsp;
&lt;br&gt;&amp;gt; some education on the subject, pictures might be required ;-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ken
&lt;br&gt;&lt;br&gt;I am still learning things here. &amp;nbsp;Those are the things I somehow &amp;nbsp;
&lt;br&gt;managed to figure out so far.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Masaki
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26422413&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposal-for-changing-semantics-of-gx_font_stack_item_t%3A%3Aindex-%28bug--690834%29-tp26407973p26422413.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26422280</id>
	<title>Re: Image resolution not preserved</title>
	<published>2009-11-19T00:12:32Z</published>
	<updated>2009-11-19T00:12:32Z</updated>
	<author>
		<name>Ken Sharp</name>
	</author>
	<content type="html">At 14:04 18/11/2009 -0800, birksworks wrote:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;The picture isn't distorted (i.e. the aspect ratio is visibly correct), so I
&lt;br&gt;&amp;gt;assume the different x/y scaling is hard coded by the Python software to
&lt;br&gt;&amp;gt;make up for rectangular screen pixels. &amp;nbsp;Does that make sense? &amp;nbsp;Is there a
&lt;br&gt;&amp;gt;better solution?
&lt;br&gt;&lt;br&gt;Its not really anything to do with screen pixels or such. As I said in 
&lt;br&gt;PostScript and PDF the image is nominally set on a 1x1 unit square, and the 
&lt;br&gt;CTM is used to scale that 1x1 co-ordinate space to the desired actual coverage.
&lt;br&gt;&lt;br&gt;If we did no scaling then your image would be placed in a square 1/72 of an 
&lt;br&gt;inch on the side, and the resolution would be 594*72 = 42768 dpi in the x 
&lt;br&gt;direction and 544*72 = 39168 dpi in the y direction. It would also of 
&lt;br&gt;course be distorted ;-)
&lt;br&gt;&lt;br&gt;The scaling is there so that the image covers the expected area, and also 
&lt;br&gt;to make sure that it does have the correct aspect ratio. Its just the way 
&lt;br&gt;that PostScript and PDF draw images.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ken
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26422280&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Image-resolution-not-preserved-tp26328064p26422280.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26416622</id>
	<title>Re: Image resolution not preserved</title>
	<published>2009-11-18T14:04:40Z</published>
	<updated>2009-11-18T14:04:40Z</updated>
	<author>
		<name>birksworks</name>
	</author>
	<content type="html">Thanks for the detailed explanation! &amp;nbsp;It's useful to understand exactly where things went wrong. &amp;nbsp;We have forwarded them to the PDF Checkpoint developer. &amp;nbsp;One last question:
&lt;br&gt;&lt;br&gt;The picture isn't distorted (i.e. the aspect ratio is visibly correct), so I assume the different x/y scaling is hard coded by the Python software to make up for rectangular screen pixels. &amp;nbsp;Does that make sense? &amp;nbsp;Is there a better solution?
&lt;br&gt;&lt;br&gt;Bob
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Image-resolution-not-preserved-tp26328064p26416622.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26410337</id>
	<title>Re: Proposal for changing semantics of gx_font_stack_item_t::index (bug #690834)</title>
	<published>2009-11-18T07:49:57Z</published>
	<updated>2009-11-18T07:49:57Z</updated>
	<author>
		<name>Ken Sharp</name>
	</author>
	<content type="html">At 22:42 18/11/2009 +0900, Masaki Ushizaka wrote:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;fstack.items[0] is a rootfont. &amp;nbsp;fstack.items[1 .. fstack.depth-1] are
&lt;br&gt;&amp;gt;intermediate composite fonts. &amp;nbsp;And fstack.items[fstack.depth] is a
&lt;br&gt;&amp;gt;base font or a CIDFont. &amp;nbsp;These are aligned in
&lt;br&gt;&amp;gt;gschar0.c:gs_type0_next_char_glyph().
&lt;br&gt;&lt;br&gt;I have no objection to the patch, what I see looks sensible, and is the way 
&lt;br&gt;I thought it worked anyway....
&lt;br&gt;&lt;br&gt;I do have some questions about the existing scheme for my own education 
&lt;br&gt;though if you don't mind answering them.
&lt;br&gt;&lt;br&gt;fstack.items[0].font is a root font (type 0 composite font) currently 
&lt;br&gt;fstack.items[0].index is always 0.
&lt;br&gt;&lt;br&gt;You describe fstack.items[1 .. fstack.depth-1] &amp;nbsp;(presumably the .font 
&lt;br&gt;member ?) as 'intermediate composite fonts' are these type 0 composite 
&lt;br&gt;fonts, or base fonts of some kind, or can it be either ?
&lt;br&gt;&lt;br&gt;fstack.items[fstack.depth], again presumably the font member, is a base 
&lt;br&gt;font or CIDFont. I can see what this means for CIDFonts, what is meant by a 
&lt;br&gt;'base font', a type 0 or something else ?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;Currently, 'index' member is used:
&lt;br&gt;&amp;gt; &amp;nbsp; For n=0: &amp;nbsp;fstack.items[0].index == 0 (not used)
&lt;br&gt;&amp;gt; &amp;nbsp; For n=[1 .. fstack.depth]:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; fstack.items[n].index == font number used in
&lt;br&gt;&amp;gt;fstack.items[n-1].font
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; (fstack.items[n-1].font.data.FDepVector[indexed by
&lt;br&gt;&amp;gt;fstack.items[n].index] == fstack.items[n].font)
&lt;br&gt;&lt;br&gt;So this implies that each member of fstack.items[1...fstack.depth-1] is 
&lt;br&gt;potentially a composite font with its own array of descendants ?
&lt;br&gt;&lt;br&gt;It also seems to imply that when a composite font has composite 
&lt;br&gt;descendants, the descendants have FDepVector arrays whose members are 
&lt;br&gt;elements of the fstack array ?
&lt;br&gt;&lt;br&gt;I'm puzzled as to the way these fonts are laid out, and would like some 
&lt;br&gt;education on the subject, pictures might be required ;-)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ken
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26410337&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposal-for-changing-semantics-of-gx_font_stack_item_t%3A%3Aindex-%28bug--690834%29-tp26407973p26410337.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26409653</id>
	<title>Re: Proposal for changing semantics of	gx_font_stack_item_t::index (bug #690834)</title>
	<published>2009-11-18T07:13:18Z</published>
	<updated>2009-11-18T07:13:18Z</updated>
	<author>
		<name>Ray Johnston</name>
	</author>
	<content type="html">Masaki,
&lt;br&gt;&lt;br&gt;I have not dug into the CIDFont processing for some time, but
&lt;br&gt;looking at your proposed change, this seems fine to me.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Ray
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Masaki Ushizaka wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dear gs_devel,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I want to change the way gx_font_stack_item_t::index is used, as part of 
&lt;br&gt;&amp;gt; fixing bug #690834. &amp;nbsp;This struct is used in gs_text_enum_t::fstack, and 
&lt;br&gt;&amp;gt; is describing nesting composite-descendant font relationship.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Currently, the 'index' member is used to describe a 'font number' of 
&lt;br&gt;&amp;gt; this font in parent composite font. &amp;nbsp;I want to change it to describe a 
&lt;br&gt;&amp;gt; 'font number' of descendant font.
&lt;br&gt;&amp;gt; In a short, I want to move fstack.items[n].index to 
&lt;br&gt;&amp;gt; fstack.items[n-1].index, to make a room for FDArray index for CIDFonts 
&lt;br&gt;&amp;gt; in fstack.items[fstack.depth].index. &amp;nbsp;Revision 3247 and 5613 assumed 
&lt;br&gt;&amp;gt; fstack.items[fstack.depth].index was an FDArray index, I just want to 
&lt;br&gt;&amp;gt; make it happen.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This patch is however, just to make a room and 
&lt;br&gt;&amp;gt; fstack.items[fstack.depth].index is always set to zero. &amp;nbsp;Finding an 
&lt;br&gt;&amp;gt; FDArray index itself is controversial procedure and I want to discuss it 
&lt;br&gt;&amp;gt; in next proposal.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; These are defined in gxtext.h.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; #define MAX_FONT_STACK 5
&lt;br&gt;&amp;gt; typedef struct gx_font_stack_item_s {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; gs_font *font; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* font at this level */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; uint index; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* index of this font in parent's Encoding */
&lt;br&gt;&amp;gt; } gx_font_stack_item_t;
&lt;br&gt;&amp;gt; typedef struct gx_font_stack_s {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; int depth;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; gx_font_stack_item_t items[1 + MAX_FONT_STACK];
&lt;br&gt;&amp;gt; } gx_font_stack_t;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; #define gs_text_enum_common\
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; gx_font_stack_t fstack;\
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; struct gs_text_enum_s {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; gs_text_enum_common;
&lt;br&gt;&amp;gt; };
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; fstack.items[0] is a rootfont. &amp;nbsp;fstack.items[1 .. fstack.depth-1] are 
&lt;br&gt;&amp;gt; intermediate composite fonts. &amp;nbsp;And fstack.items[fstack.depth] is a base 
&lt;br&gt;&amp;gt; font or a CIDFont. &amp;nbsp;These are aligned in 
&lt;br&gt;&amp;gt; gschar0.c:gs_type0_next_char_glyph().
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Currently, 'index' member is used:
&lt;br&gt;&amp;gt; &amp;nbsp; For n=0: &amp;nbsp;fstack.items[0].index == 0 (not used)
&lt;br&gt;&amp;gt; &amp;nbsp; For n=[1 .. fstack.depth]:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; fstack.items[n].index == font number used in fstack.items[n-1].font
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; (fstack.items[n-1].font.data.FDepVector[indexed by 
&lt;br&gt;&amp;gt; fstack.items[n].index] == fstack.items[n].font)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I want to change this relationship as follows:
&lt;br&gt;&amp;gt; &amp;nbsp; For n=[0 .. fstack.depth-1]:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; fstack.items[n].index == font number used in fstack.items[n].font
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; fstack.items[n].font.data.FDepVector[indexed by 
&lt;br&gt;&amp;gt; fstack.items[n].index] == fstack.items[n+1].font
&lt;br&gt;&amp;gt; &amp;nbsp; For n=fstack.depth:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; If fstack.items[fstack.depth].font is a CIDFontType 0 CIDFont:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fstack.items[fstack.depth].index == index of FDArray font
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; If fstack.items[fstack.depth].font is another type of CIDFonts or 
&lt;br&gt;&amp;gt; base fonts:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fstack.items[fstack.depth].index == 0 (not used)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Functions affected by this change will be:
&lt;br&gt;&amp;gt; gxchar.c:set_char_width()
&lt;br&gt;&amp;gt; gxchar.c:show_state_setup()
&lt;br&gt;&amp;gt; gxchar.c:gx_current_char()
&lt;br&gt;&amp;gt; gschar0.c:gs_type0_next_char_glyph() along with macro select_descendant()
&lt;br&gt;&amp;gt; gschar0.c:gs_stack_modal_fonts()
&lt;br&gt;&amp;gt; gdevpdtc.c:scan_cmap_text()
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; First two functions are already assuming that 
&lt;br&gt;&amp;gt; fstack.items[fstack.depth].index is an FDArray index.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This patch seems not making any differences. &amp;nbsp;However, please let me 
&lt;br&gt;&amp;gt; know if there are possibilities of flaws you might think of.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you,
&lt;br&gt;&amp;gt; Masaki Ushizaka
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----
&lt;br&gt;&amp;gt; Masaki Ushizaka
&lt;br&gt;&amp;gt; Artifex Software Inc. &amp;nbsp;| &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26409653&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;masaki.ushizaka@...&lt;/a&gt;
&lt;br&gt;&amp;gt; phone +81.3.5468.7190 &amp;nbsp;| &amp;nbsp;cell +81.90.4027.4736 &amp;nbsp;| &amp;nbsp;fax +81.3.4496.6017
&lt;br&gt;&amp;gt; 302 Nakamura Bldg., 2-7-14 Shibuya, Shibuya-ku, Tokyo 150-0002 JAPAN
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; gs-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26409653&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26409653&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposal-for-changing-semantics-of-gx_font_stack_item_t%3A%3Aindex-%28bug--690834%29-tp26407973p26409653.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26407973</id>
	<title>Proposal for changing semantics of gx_font_stack_item_t::index (bug #690834)</title>
	<published>2009-11-18T05:42:35Z</published>
	<updated>2009-11-18T05:42:35Z</updated>
	<author>
		<name>Masaki Ushizaka</name>
	</author>
	<content type="html">Dear gs_devel,
&lt;br&gt;&lt;br&gt;I want to change the way gx_font_stack_item_t::index is used, as part &amp;nbsp;
&lt;br&gt;of fixing bug #690834. &amp;nbsp;This struct is used in gs_text_enum_t::fstack, &amp;nbsp;
&lt;br&gt;and is describing nesting composite-descendant font relationship.
&lt;br&gt;&lt;br&gt;Currently, the 'index' member is used to describe a 'font number' of &amp;nbsp;
&lt;br&gt;this font in parent composite font. &amp;nbsp;I want to change it to describe a &amp;nbsp;
&lt;br&gt;'font number' of descendant font.
&lt;br&gt;In a short, I want to move fstack.items[n].index to &amp;nbsp;
&lt;br&gt;fstack.items[n-1].index, to make a room for FDArray index for CIDFonts &amp;nbsp;
&lt;br&gt;in fstack.items[fstack.depth].index. &amp;nbsp;Revision 3247 and 5613 assumed &amp;nbsp;
&lt;br&gt;fstack.items[fstack.depth].index was an FDArray index, I just want to &amp;nbsp;
&lt;br&gt;make it happen.
&lt;br&gt;&lt;br&gt;This patch is however, just to make a room and &amp;nbsp;
&lt;br&gt;fstack.items[fstack.depth].index is always set to zero. &amp;nbsp;Finding an &amp;nbsp;
&lt;br&gt;FDArray index itself is controversial procedure and I want to discuss &amp;nbsp;
&lt;br&gt;it in next proposal.
&lt;br&gt;&lt;br&gt;&lt;br&gt;These are defined in gxtext.h.
&lt;br&gt;&lt;br&gt;#define MAX_FONT_STACK 5
&lt;br&gt;typedef struct gx_font_stack_item_s {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;gs_font *font;		/* font at this level */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;uint index;			/* index of this font in parent's Encoding */
&lt;br&gt;} gx_font_stack_item_t;
&lt;br&gt;typedef struct gx_font_stack_s {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int depth;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;gx_font_stack_item_t items[1 + MAX_FONT_STACK];
&lt;br&gt;} gx_font_stack_t;
&lt;br&gt;&lt;br&gt;#define gs_text_enum_common\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;gx_font_stack_t fstack;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&lt;br&gt;struct gs_text_enum_s {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;gs_text_enum_common;
&lt;br&gt;};
&lt;br&gt;&lt;br&gt;fstack.items[0] is a rootfont. &amp;nbsp;fstack.items[1 .. fstack.depth-1] are &amp;nbsp;
&lt;br&gt;intermediate composite fonts. &amp;nbsp;And fstack.items[fstack.depth] is a &amp;nbsp;
&lt;br&gt;base font or a CIDFont. &amp;nbsp;These are aligned in &amp;nbsp;
&lt;br&gt;gschar0.c:gs_type0_next_char_glyph().
&lt;br&gt;&lt;br&gt;Currently, 'index' member is used:
&lt;br&gt;&amp;nbsp; &amp;nbsp;For n=0: &amp;nbsp;fstack.items[0].index == 0 (not used)
&lt;br&gt;&amp;nbsp; &amp;nbsp;For n=[1 .. fstack.depth]:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fstack.items[n].index == font number used in &amp;nbsp;
&lt;br&gt;fstack.items[n-1].font
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(fstack.items[n-1].font.data.FDepVector[indexed by &amp;nbsp;
&lt;br&gt;fstack.items[n].index] == fstack.items[n].font)
&lt;br&gt;&lt;br&gt;&lt;br&gt;I want to change this relationship as follows:
&lt;br&gt;&amp;nbsp; &amp;nbsp;For n=[0 .. fstack.depth-1]:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fstack.items[n].index == font number used in fstack.items[n].font
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fstack.items[n].font.data.FDepVector[indexed by &amp;nbsp;
&lt;br&gt;fstack.items[n].index] == fstack.items[n+1].font
&lt;br&gt;&amp;nbsp; &amp;nbsp;For n=fstack.depth:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If fstack.items[fstack.depth].font is a CIDFontType 0 CIDFont:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fstack.items[fstack.depth].index == index of FDArray font
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If fstack.items[fstack.depth].font is another type of CIDFonts &amp;nbsp;
&lt;br&gt;or base fonts:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fstack.items[fstack.depth].index == 0 (not used)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Functions affected by this change will be:
&lt;br&gt;gxchar.c:set_char_width()
&lt;br&gt;gxchar.c:show_state_setup()
&lt;br&gt;gxchar.c:gx_current_char()
&lt;br&gt;gschar0.c:gs_type0_next_char_glyph() along with macro &amp;nbsp;
&lt;br&gt;select_descendant()
&lt;br&gt;gschar0.c:gs_stack_modal_fonts()
&lt;br&gt;gdevpdtc.c:scan_cmap_text()
&lt;br&gt;&lt;br&gt;First two functions are already assuming that &amp;nbsp;
&lt;br&gt;fstack.items[fstack.depth].index is an FDArray index.
&lt;br&gt;&lt;br&gt;&lt;br&gt;This patch seems not making any differences. &amp;nbsp;However, please let me &amp;nbsp;
&lt;br&gt;know if there are possibilities of flaws you might think of.
&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;Masaki Ushizaka
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----
&lt;br&gt;Masaki Ushizaka
&lt;br&gt;Artifex Software Inc. &amp;nbsp;| &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26407973&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;masaki.ushizaka@...&lt;/a&gt;
&lt;br&gt;phone +81.3.5468.7190 &amp;nbsp;| &amp;nbsp;cell +81.90.4027.4736 &amp;nbsp;| &amp;nbsp;fax +81.3.4496.6017
&lt;br&gt;302 Nakamura Bldg., 2-7-14 Shibuya, Shibuya-ku, Tokyo 150-0002 JAPAN
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26407973&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;b690834_p1.patch&lt;/strong&gt; (4K) &lt;a href=&quot;http://old.nabble.com/attachment/26407973/0/b690834_p1.patch&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proposal-for-changing-semantics-of-gx_font_stack_item_t%3A%3Aindex-%28bug--690834%29-tp26407973p26407973.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26404672</id>
	<title>Re: Image resolution not preserved</title>
	<published>2009-11-18T01:16:51Z</published>
	<updated>2009-11-18T01:16:51Z</updated>
	<author>
		<name>Ken Sharp</name>
	</author>
	<content type="html">At 16:00 17/11/2009 -0800, birksworks wrote:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;PDF Checkpoint says that output-few has images at 30dpi and that output-many
&lt;br&gt;&amp;gt;has images at 72dpi.
&lt;br&gt;&lt;br&gt;And what does it say about input.pdf ?
&lt;br&gt;&lt;br&gt;input.pdf specifies the image like this:
&lt;br&gt;&lt;br&gt;&amp;lt;&amp;lt;
&lt;br&gt;/ColorSpace /DeviceGray
&lt;br&gt;/Subtype /Image
&lt;br&gt;/Length 323135
&lt;br&gt;/Width 594
&lt;br&gt;/Type /XObject
&lt;br&gt;/BitsPerComponent 8
&lt;br&gt;/Height 544
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&lt;br&gt;The amount of data is given by the Width and Height keys. This image is 594 
&lt;br&gt;samples wide and 544 samples high. Notice that no resolution is given, the 
&lt;br&gt;effective resolution of the image is given by seeing how large the area 
&lt;br&gt;covered is.
&lt;br&gt;&lt;br&gt;To start with in PostScript and PDF the image is assumed to cover the unit 
&lt;br&gt;square, and then the current transformation matrix is applied to scale it 
&lt;br&gt;into the desired output.
&lt;br&gt;&lt;br&gt;In your case this is given as :
&lt;br&gt;&lt;br&gt;142.5 0 0 130.5 0 2.072713 cm
&lt;br&gt;&lt;br&gt;So your image is scaled anamorphically, by a factor of 142.5 in the x 
&lt;br&gt;direction and 130.5 in the y direction. So your image now covers 142.5 
&lt;br&gt;units by 130.5 units. PDF units (like PostScript) are 72 to the inch, so 
&lt;br&gt;your image covers 1.98 inches by 1.81 inches (looks about right by visual 
&lt;br&gt;inspection).
&lt;br&gt;&lt;br&gt;I used the Acrobat Pro 9 measurement tools to verify this (screenshot 
&lt;br&gt;attached).
&lt;br&gt;&lt;br&gt;You image is therefore 594/1.98 = 300 dpi by 544/1.81 = 300.55 dpi. 
&lt;br&gt;Confirming your resolution.
&lt;br&gt;&lt;br&gt;Looking at output-few.pdf we see that the pdfwrite output is a little more 
&lt;br&gt;complex, and involves concatenated CTM operations. However, the image is 
&lt;br&gt;still defined as:
&lt;br&gt;&lt;br&gt;&amp;lt;&amp;lt;
&lt;br&gt;/ColorSpace /DeviceGray
&lt;br&gt;/Subtype /Image
&lt;br&gt;/Filter /FlateDecode
&lt;br&gt;/DecodeParms
&lt;br&gt;&amp;lt;&amp;lt;
&lt;br&gt;/Columns 594
&lt;br&gt;/Predictor 15
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;/Length 97092
&lt;br&gt;/Width 594
&lt;br&gt;/Height 544
&lt;br&gt;/BitsPerComponent 8
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&lt;br&gt;It has the same dimensions as before, so pdfwrite has preserved the image 
&lt;br&gt;resolution. Looking at the content stream we see:
&lt;br&gt;&lt;br&gt;q 0.1 0 0 0.1 0 0 cm
&lt;br&gt;...
&lt;br&gt;...
&lt;br&gt;q 1425 0 0 1305 293.465 6261.06 cm
&lt;br&gt;/R14 Do
&lt;br&gt;&lt;br&gt;The two cm operations are cumulative, so the actual CTM in force is :
&lt;br&gt;142.5 0 0 130.5 29.3465 626.106. The calculation is thus the same as above, 
&lt;br&gt;and the resolution of the image is the same.
&lt;br&gt;&lt;br&gt;Finally we look at output-many.pdf and we see the same image yet again:
&lt;br&gt;&lt;br&gt;&amp;lt;&amp;lt;
&lt;br&gt;/ColorSpace /DeviceGray
&lt;br&gt;/Subtype /Image
&lt;br&gt;/Filter /FlateDecode
&lt;br&gt;/DecodeParms
&lt;br&gt;&amp;lt;&amp;lt;
&lt;br&gt;/Columns 594
&lt;br&gt;/Predictor 15
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;/Length 97092
&lt;br&gt;/Width 594
&lt;br&gt;/Height 544
&lt;br&gt;/BitsPerComponent 8
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Because you have specified a resolution of 300 instead of the default 720 
&lt;br&gt;the numbers are a little different in the content stream:
&lt;br&gt;&lt;br&gt;q 0.24 0 0 0.24 0 0 cm
&lt;br&gt;...
&lt;br&gt;...
&lt;br&gt;q 593.75 0 0 543.75 122.277 2608.77 cm
&lt;br&gt;/R16 Do
&lt;br&gt;&lt;br&gt;We concatenate the matrix operations as before, yielding a CTM of
&lt;br&gt;593 x 0.24 = 142.5
&lt;br&gt;0
&lt;br&gt;0
&lt;br&gt;543.75 x 0.24 = 130.5
&lt;br&gt;122.27 x 0.24 = 29.3448
&lt;br&gt;2608.77 x 0.24 = 626.1048
&lt;br&gt;&lt;br&gt;The important values, the x and y scale are the same as the previous 2 
&lt;br&gt;cases, and therefore the image has the same resolution, 300 dpi.
&lt;br&gt;&lt;br&gt;Now, your PDF Checkpoint tool is out by a factor of 10 in the case of 
&lt;br&gt;output-few.pdf, which is exactly the scale factor applied by the initial 
&lt;br&gt;'cm' operation. In the case of output-many.pdf it is out by a factor of 
&lt;br&gt;4.166 which is exactly the same as the scale factor in the initial 'cm' 
&lt;br&gt;operation in that file (0.24).
&lt;br&gt;&lt;br&gt;It seems clear to me that the application is *not* properly interpreting 
&lt;br&gt;the PDF file, it looks like it is assuming that each 'cm' operation is 
&lt;br&gt;atomic rather than cumulative and only seems to be tracking the last such 
&lt;br&gt;operation. As a result it is applying only that matrix to the image to 
&lt;br&gt;determine its resolution. It should be applying the combined effect of the 
&lt;br&gt;matrices.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;Of course, this could be a bug in PDF Checkpoint but
&lt;br&gt;&amp;gt;since we couldn't find many other checkers, we decided to be cautious. If
&lt;br&gt;&amp;gt;this checker gets it wrong (while getting others right), then perhaps other
&lt;br&gt;&amp;gt;apps in a printer's workflow will be confused too.
&lt;br&gt;&lt;br&gt;The only app you should need to worry about is a PDF interpreter, since it 
&lt;br&gt;will be guided by what's in the PDF file, it won't get confused. If it 
&lt;br&gt;does, then its a bug in the application and you should report it to the 
&lt;br&gt;authors. There isn't anything we can do about other people's bugs.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ken
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26404672&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Image-resolution-not-preserved-tp26328064p26404672.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26401606</id>
	<title>Re: Image resolution not preserved</title>
	<published>2009-11-17T18:49:31Z</published>
	<updated>2009-11-17T18:49:31Z</updated>
	<author>
		<name>birksworks</name>
	</author>
	<content type="html">I've added links to the three pdf file:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.calcworks.net/pdf/input.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.calcworks.net/pdf/input.pdf&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.calcworks.net/pdf/output-few.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.calcworks.net/pdf/output-few.pdf&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.calcworks.net/pdf/output-many.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.calcworks.net/pdf/output-many.pdf&lt;/a&gt;&lt;br&gt;&lt;br&gt;Bob&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Image-resolution-not-preserved-tp26328064p26401606.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26400088</id>
	<title>Re: Image resolution not preserved</title>
	<published>2009-11-17T16:00:56Z</published>
	<updated>2009-11-17T18:47:06Z</updated>
	<author>
		<name>birksworks</name>
	</author>
	<content type="html">I've uploaded three files. The first (&lt;a href=&quot;http://www.calcworks.net/pdf/input.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.calcworks.net/pdf/input.pdf&lt;/a&gt;) is a small test file with images at 300dpi, the second (&lt;a href=&quot;http://www.calcworks.net/pdf/output-few.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.calcworks.net/pdf/output-few.pdf&lt;/a&gt;) was obtained by running GhostScript on the input file with the following minimal options
&lt;br&gt;&lt;br&gt;gs -sDEVICE=pdfwrite -q -dBATCH -dNOPAUSE -dSAFER -dPDFX -dPDFSETTINGS=/prepress -dEmbedAllFonts=true -dSubsetFonts=false -sOutputFile=output-few.pdf -f input.pdf -c quit
&lt;br&gt;&lt;br&gt;and the third (&lt;a href=&quot;http://www.calcworks.net/pdf/output-many.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.calcworks.net/pdf/output-many.pdf&lt;/a&gt;) was obtained by running GhostScript on the input file with the following many options
&lt;br&gt;&lt;br&gt;gs -sDEVICE=pdfwrite -q -r300 -dBATCH -dNOPAUSE -dSAFER -dPDFX -dPDFSETTINGS=/prepress -dEmbedAllFonts=true -dSubsetFonts=false -dJPEGQ=100 -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dUseFlateCompression=true -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dMaxSubsetPct=100 -dAutoFilterMonoImages=false -dMonoImageFilter=/CCITTFaxEncode -dCompatibilityLevel=1.3 -dDownsampleColorImages=false -dDownsampleGrayImages=false -dDownsampleMonoImages=false -sOutputFile=output-many.pdf -f input.pdf -c quit
&lt;br&gt;&lt;br&gt;PDF Checkpoint says that output-few has images at 30dpi and that output-many has images at 72dpi. Of course, this could be a bug in PDF Checkpoint but since we couldn't find many other checkers, we decided to be cautious. If this checker gets it wrong (while getting others right), then perhaps other apps in a printer's workflow will be confused too. 
&lt;br&gt;&lt;br&gt;Bob
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Image-resolution-not-preserved-tp26328064p26400088.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26383108</id>
	<title>Re: Image resolution not preserved</title>
	<published>2009-11-16T17:46:45Z</published>
	<updated>2009-11-16T17:46:45Z</updated>
	<author>
		<name>birksworks</name>
	</author>
	<content type="html">Thanks for the help, Ken and dingodog. &amp;nbsp;
&lt;br&gt;&lt;br&gt;I should have mentioned that I'm using Ghostscript 8.64 on Ubuntu 9.10. &amp;nbsp;I will create a simple test version of my file that reproduces the problem and make it available to the list. 
&lt;br&gt;&lt;br&gt;Bob&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Image-resolution-not-preserved-tp26328064p26383108.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26339339</id>
	<title>Re: Image resolution not preserved</title>
	<published>2009-11-13T08:28:23Z</published>
	<updated>2009-11-13T08:28:23Z</updated>
	<author>
		<name>Ken Sharp</name>
	</author>
	<content type="html">At 07:55 13/11/2009 -0800, birksworks wrote:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;but with no luck. &amp;nbsp;Can anyone suggest a way to preserve image resolutions?
&lt;br&gt;&lt;br&gt;Ghostscript already preserves images at their native resolution in general, 
&lt;br&gt;and even when it does not (for example flattening transparency) it uses the 
&lt;br&gt;specified resolution, in your case 300 dpi.
&lt;br&gt;&lt;br&gt;How are you determining the image resolution of the original images, and 
&lt;br&gt;the images in the created PDF file ?
&lt;br&gt;&lt;br&gt;You don't say which version of Ghostscript you are using, nor which 
&lt;br&gt;platform you are running on, and obviously you haven't supplied a test file 
&lt;br&gt;for us to look at, its going to be pretty nearly impossible to help you 
&lt;br&gt;without all that information. BTW you also don't seem to have discovered 
&lt;br&gt;the image downsample controls 'xxxImageDownsampleThreshold' and 
&lt;br&gt;'xxxImageDownsampleType'
&lt;br&gt;&lt;br&gt;If you are using the latest version of Ghostscript, and are sure this is 
&lt;br&gt;still a problem, then your best bet is to open a bug report at:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://bugs.ghostscript.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.ghostscript.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Once the report is open you can attach files to it, if they are sensitive 
&lt;br&gt;then you can mark them as private, which limits their availability to 
&lt;br&gt;Artifex employees.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ken
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339339&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Image-resolution-not-preserved-tp26328064p26339339.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26328064</id>
	<title>Image resolution not preserved</title>
	<published>2009-11-12T14:56:47Z</published>
	<updated>2009-11-12T14:56:47Z</updated>
	<author>
		<name>birksworks</name>
	</author>
	<content type="html">I'm using ghostscript to embed fonts in some existing pdf documents. The options 
&lt;br&gt;&amp;nbsp;-dEmbedAllFonts=true 
&lt;br&gt;&amp;nbsp;-dSubsetFonts=false
&lt;br&gt;do this for me but the images in the resulting pdf document &amp;nbsp;have a lower resolution (72dpi) than those of the original document (300dpi). &amp;nbsp;I've tried setting many options that could affect this:
&lt;br&gt;&lt;br&gt;&amp;nbsp;-sDEVICE=pdfwrite 
&lt;br&gt;&amp;nbsp;-q 
&lt;br&gt;&amp;nbsp;-r300 
&lt;br&gt;&amp;nbsp;-dBATCH 
&lt;br&gt;&amp;nbsp;-dNOPAUSE 
&lt;br&gt;&amp;nbsp;-dSAFER 
&lt;br&gt;&amp;nbsp;-dPDFX 
&lt;br&gt;&amp;nbsp;-dPDFSETTINGS=/prepress 
&lt;br&gt;&amp;nbsp;-dEmbedAllFonts=true 
&lt;br&gt;&amp;nbsp;-dSubsetFonts=false 
&lt;br&gt;&amp;nbsp;-dJPEGQ=100 
&lt;br&gt;&amp;nbsp;-dAutoFilterColorImages=false 
&lt;br&gt;&amp;nbsp;-dColorImageFilter=/FlateEncode 
&lt;br&gt;&amp;nbsp;-dAutoFilterGrayImages=false 
&lt;br&gt;&amp;nbsp;-dGrayImageFilter=/FlateEncode 
&lt;br&gt;&amp;nbsp;-dUseFlateCompression=true 
&lt;br&gt;&amp;nbsp;-dTextAlphaBits=4 
&lt;br&gt;&amp;nbsp;-dGraphicsAlphaBits=4 
&lt;br&gt;&amp;nbsp;-dMaxSubsetPct=100 
&lt;br&gt;&amp;nbsp;-dAutoFilterMonoImages=false 
&lt;br&gt;&amp;nbsp;-dMonoImageFilter=/CCITTFaxEncode 
&lt;br&gt;&amp;nbsp;-dCompatibilityLevel=1.3
&lt;br&gt;&lt;br&gt;but with no luck. &amp;nbsp;Can anyone suggest a way to preserve image resolutions?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Bob&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Image-resolution-not-preserved-tp26328064p26328064.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26399052</id>
	<title>Libtiff performance</title>
	<published>2009-11-12T02:37:40Z</published>
	<updated>2009-11-12T02:37:40Z</updated>
	<author>
		<name>Lars Uebernickel</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I've done a bit of performance testing with the new TIFF devices (based
&lt;br&gt;on libtiff).
&lt;br&gt;&lt;br&gt;I &amp;nbsp;measured cpu time needed in user space for two documents at 300 dpi:
&lt;br&gt;&lt;br&gt;* a document which only does showpage, to minimize the work done by the
&lt;br&gt;interpreter and renderer
&lt;br&gt;* tiger.eps, to compare the implementations of the tiff compression
&lt;br&gt;algorithms
&lt;br&gt;&lt;br&gt;To get the confidence intervals into somehow sane levels, I did 20
&lt;br&gt;iterations for each device and implementation.
&lt;br&gt;&lt;br&gt;The columns in the results are: mean, standard deviation, confidence
&lt;br&gt;interval (95%) and a relative comparison of the two versions (the
&lt;br&gt;slowest one being 100%). &amp;nbsp;Note the relatively slow rendering times: my
&lt;br&gt;computer died a few weeks ago and I'm on an older machine (1.3Ghz
&lt;br&gt;athlon) right now.
&lt;br&gt;&lt;br&gt;Unfortunately, libtiff seems to be slower in quite a few &amp;nbsp;cases,
&lt;br&gt;especially for compressed files (see tiffg* and tiffcrle). It seems to
&lt;br&gt;be faster for lzw, though. &amp;nbsp;It might be worthwhile to switch back to
&lt;br&gt;ghostscript's own compression in some cases.
&lt;br&gt;&lt;br&gt;The python script I used to do these tests is attached.
&lt;br&gt;&lt;br&gt;Please let me know what you think, or if I have overlooked anything ;)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Lars
&lt;br&gt;&lt;br&gt;&lt;br&gt;Results for the white page:
&lt;br&gt;&lt;br&gt;tiffgray
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.304500 0.002233 &amp;nbsp;0.299066 &amp;lt;= t &amp;lt;= 0.309934 &amp;nbsp; 100.00 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.294500 0.001983 &amp;nbsp;0.289673 &amp;lt;= t &amp;lt;= 0.299327 &amp;nbsp; 96.72 %
&lt;br&gt;&lt;br&gt;tiff12nc
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.531500 0.005906 &amp;nbsp;0.517128 &amp;lt;= t &amp;lt;= 0.545872 &amp;nbsp; 100.00 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.503500 0.006620 &amp;nbsp;0.487390 &amp;lt;= t &amp;lt;= 0.519610 &amp;nbsp; 94.73 %
&lt;br&gt;&lt;br&gt;tiff24nc
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.420000 0.004413 &amp;nbsp;0.409261 &amp;lt;= t &amp;lt;= 0.430739 &amp;nbsp; 100.00 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.391500 0.004604 &amp;nbsp;0.380296 &amp;lt;= t &amp;lt;= 0.402704 &amp;nbsp; 93.21 %
&lt;br&gt;&lt;br&gt;tiff32nc
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.443500 0.004429 &amp;nbsp;0.432722 &amp;lt;= t &amp;lt;= 0.454278 &amp;nbsp; 100.00 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.394000 0.005544 &amp;nbsp;0.380509 &amp;lt;= t &amp;lt;= 0.407491 &amp;nbsp; 88.84 %
&lt;br&gt;&lt;br&gt;tiffsep
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4.274500 0.032138 &amp;nbsp;4.196293 &amp;lt;= t &amp;lt;= 4.352707 &amp;nbsp; 98.23 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4.351500 0.040758 &amp;nbsp;4.252318 &amp;lt;= t &amp;lt;= 4.450682 &amp;nbsp; 100.00 %
&lt;br&gt;&lt;br&gt;tiffcrle
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.260000 0.001451 &amp;nbsp;0.256469 &amp;lt;= t &amp;lt;= 0.263531 &amp;nbsp; 98.67 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.263500 0.001094 &amp;nbsp;0.260837 &amp;lt;= t &amp;lt;= 0.266163 &amp;nbsp; 100.00 %
&lt;br&gt;&lt;br&gt;tiffg3
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.267500 0.002891 &amp;nbsp;0.260466 &amp;lt;= t &amp;lt;= 0.274534 &amp;nbsp; 98.53 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.271500 0.003500 &amp;nbsp;0.262983 &amp;lt;= t &amp;lt;= 0.280017 &amp;nbsp; 100.00 %
&lt;br&gt;&lt;br&gt;tiffg32d
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.264000 0.002103 &amp;nbsp;0.258883 &amp;lt;= t &amp;lt;= 0.269117 &amp;nbsp; 97.24 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.271500 0.002209 &amp;nbsp;0.266123 &amp;lt;= t &amp;lt;= 0.276877 &amp;nbsp; 100.00 %
&lt;br&gt;&lt;br&gt;tiffg4
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.264500 0.001846 &amp;nbsp;0.260008 &amp;lt;= t &amp;lt;= 0.268992 &amp;nbsp; 96.18 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.275000 0.002565 &amp;nbsp;0.268758 &amp;lt;= t &amp;lt;= 0.281242 &amp;nbsp; 100.00 %
&lt;br&gt;&lt;br&gt;tifflzw
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.272500 0.001758 &amp;nbsp;0.268221 &amp;lt;= t &amp;lt;= 0.276779 &amp;nbsp; 85.83 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.317500 0.001602 &amp;nbsp;0.313602 &amp;lt;= t &amp;lt;= 0.321398 &amp;nbsp; 100.00 %
&lt;br&gt;&lt;br&gt;tiffpack
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.276000 0.003195 &amp;nbsp;0.268224 &amp;lt;= t &amp;lt;= 0.283776 &amp;nbsp; 99.82 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.276500 0.004369 &amp;nbsp;0.265867 &amp;lt;= t &amp;lt;= 0.287133 &amp;nbsp; 100.00 %
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Results for tiger.eps:
&lt;br&gt;&lt;br&gt;tiffgray
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.574500 0.004892 &amp;nbsp;0.562595 &amp;lt;= t &amp;lt;= 0.586405 &amp;nbsp; 99.91 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.575000 0.005781 &amp;nbsp;0.560932 &amp;lt;= t &amp;lt;= 0.589068 &amp;nbsp; 100.00 %
&lt;br&gt;&lt;br&gt;tiff12nc
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.870000 0.002991 &amp;nbsp;0.862721 &amp;lt;= t &amp;lt;= 0.877279 &amp;nbsp; 100.00 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.820000 0.004920 &amp;nbsp;0.808026 &amp;lt;= t &amp;lt;= 0.831974 &amp;nbsp; 94.25 %
&lt;br&gt;&lt;br&gt;tiff24nc
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.749500 0.003733 &amp;nbsp;0.740416 &amp;lt;= t &amp;lt;= 0.758584 &amp;nbsp; 100.00 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.728500 0.004547 &amp;nbsp;0.717436 &amp;lt;= t &amp;lt;= 0.739564 &amp;nbsp; 97.20 %
&lt;br&gt;&lt;br&gt;tiff32nc
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.867000 0.003411 &amp;nbsp;0.858701 &amp;lt;= t &amp;lt;= 0.875299 &amp;nbsp; 100.00 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.832500 0.005020 &amp;nbsp;0.820285 &amp;lt;= t &amp;lt;= 0.844715 &amp;nbsp; 96.02 %
&lt;br&gt;&lt;br&gt;tiffsep
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4.738000 0.010428 &amp;nbsp;4.712625 &amp;lt;= t &amp;lt;= 4.763375 &amp;nbsp; 99.03 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4.784500 0.012576 &amp;nbsp;4.753898 &amp;lt;= t &amp;lt;= 4.815102 &amp;nbsp; 100.00 %
&lt;br&gt;&lt;br&gt;tiffcrle
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.659500 0.002112 &amp;nbsp;0.654361 &amp;lt;= t &amp;lt;= 0.664639 &amp;nbsp; 100.00 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.576000 0.002224 &amp;nbsp;0.570587 &amp;lt;= t &amp;lt;= 0.581413 &amp;nbsp; 87.34 %
&lt;br&gt;&lt;br&gt;tiffg3
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.660000 0.001919 &amp;nbsp;0.655329 &amp;lt;= t &amp;lt;= 0.664671 &amp;nbsp; 100.00 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.576500 0.002209 &amp;nbsp;0.571123 &amp;lt;= t &amp;lt;= 0.581877 &amp;nbsp; 87.35 %
&lt;br&gt;&lt;br&gt;tiffg32d
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.866000 0.003026 &amp;nbsp;0.858636 &amp;lt;= t &amp;lt;= 0.873364 &amp;nbsp; 100.00 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.714000 0.002938 &amp;nbsp;0.706851 &amp;lt;= t &amp;lt;= 0.721149 &amp;nbsp; 82.45 %
&lt;br&gt;&lt;br&gt;tiffg4
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.965000 0.002856 &amp;nbsp;0.958050 &amp;lt;= t &amp;lt;= 0.971950 &amp;nbsp; 100.00 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.736000 0.002340 &amp;nbsp;0.730307 &amp;lt;= t &amp;lt;= 0.741693 &amp;nbsp; 76.27 %
&lt;br&gt;&lt;br&gt;tifflzw
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.547000 0.001792 &amp;nbsp;0.542640 &amp;lt;= t &amp;lt;= 0.551360 &amp;nbsp; 90.86 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.602000 0.001717 &amp;nbsp;0.597822 &amp;lt;= t &amp;lt;= 0.606178 &amp;nbsp; 100.00 %
&lt;br&gt;&lt;br&gt;tiffpack
&lt;br&gt;&amp;nbsp; new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.532500 0.002036 &amp;nbsp;0.527546 &amp;lt;= t &amp;lt;= 0.537454 &amp;nbsp; 100.00 %
&lt;br&gt;&amp;nbsp; old &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.530500 0.002112 &amp;nbsp;0.525361 &amp;lt;= t &amp;lt;= 0.535639 &amp;nbsp; 99.62 %
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26399052&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;compareperformance.tar.gz&lt;/strong&gt; (7K) &lt;a href=&quot;http://old.nabble.com/attachment/26399052/0/compareperformance.tar.gz&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Libtiff-performance-tp26399052p26399052.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26244850</id>
	<title>Re: Convert PDF to PS - Automatic page rotation to Portrait</title>
	<published>2009-11-07T05:25:57Z</published>
	<updated>2009-11-07T05:25:57Z</updated>
	<author>
		<name>Ken Sharp</name>
	</author>
	<content type="html">At 13:21 07/11/2009 +0100, Lakos Dániel wrote:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;with '-sDevice=pswrite' the output page size is correct A4 (8.26 x 11.69 
&lt;br&gt;&amp;gt;inches) -- characters and page size are OK.
&lt;br&gt;&lt;br&gt;Yes, sorry I meant A4, no letter previously.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;using '-sDevice=ps2write' the output 8.50 x 11.00 inches -- charachters ar 
&lt;br&gt;&amp;gt;ok, but the document doesnt fit
&lt;br&gt;&lt;br&gt;8.5x11 is Letter size.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;It seems that the code i using (device=pswrite) is correctly convert the 
&lt;br&gt;&amp;gt;pdf to ps (checked using adobe distiller).
&lt;br&gt;&amp;gt;When Hylafax conerts this PS to Tiff, things go wrong.
&lt;br&gt;&lt;br&gt;Goes wrong how ? Can you run the produced PostScript file back through 
&lt;br&gt;Ghostscript, and the output is correct ?
&lt;br&gt;&lt;br&gt;You can have Ghostscript create a TIFF file for you if that's all you want, 
&lt;br&gt;and you can do it from the original PDF.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;How to get ps2write working with the correct papersize?
&lt;br&gt;&amp;gt;I hope the output of ps2write is going to give better results when 
&lt;br&gt;&amp;gt;converted to tiff.
&lt;br&gt;&lt;br&gt;Sounds like your system may be defaulting to letter media.
&lt;br&gt;You could try -sPAPERSIZE=a4 -dFIXEDMEDIA also -sDEFAULTPAPERSIZE=a4
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ken
&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26244850&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-PDF-to-PS---Automatic-page-rotation-to-Portrait-tp26243552p26244850.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26244263</id>
	<title>Re: Convert PDF to PS - Automatic page rotation to Portrait</title>
	<published>2009-11-07T04:21:03Z</published>
	<updated>2009-11-07T04:21:03Z</updated>
	<author>
		<name>Lakos Dániel</name>
	</author>
	<content type="html">Ken Sharp írta:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; At 11:23 07/11/2009 +0100, =?ISO-8859-2?Q?Lakos_D=E1niel?= wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ive found a solution in the GS archives, and the rotation works as it
&lt;br&gt;&amp;gt;&amp;gt; should, but some text are malformed/characters missing after conversion.
&lt;br&gt;&amp;gt;&amp;gt; Does Anybody have an idea whats wrong?
&lt;br&gt;&amp;gt;&amp;gt; Is there any other method to &amp;quot;auto rotate&amp;quot; pages?
&lt;br&gt;&amp;gt;&amp;gt; My GhostScript Version is 8.15.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; First suggestion, upgrade to something more recent. The current
&lt;br&gt;&amp;gt; version is 8.70 and 8.15 is quite old.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You might also consider using ps2write instead of pswrite as ps2write
&lt;br&gt;&amp;gt; generally does a better job.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; By the way, the code you are using only auto-rotates pages if they are
&lt;br&gt;&amp;gt; landscape letter (842x595 points), other page sizes may be scaled
&lt;br&gt;&amp;gt; and/or centered.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Ken
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;Thank you for taking time to answer.
&lt;br&gt;&lt;br&gt;I upgraded to 8.70.
&lt;br&gt;with '-sDevice=pswrite' the output page size is correct A4 (8.26 x 11.69 inches) -- characters and page size are OK.
&lt;br&gt;using '-sDevice=ps2write' the output 8.50 x 11.00 inches -- charachters ar ok, but the document doesnt fit
&lt;br&gt;&lt;br&gt;As I know the 842x592 points are correct for A4 papersize. &amp;nbsp;
&lt;br&gt;&lt;br&gt;It seems that the code i using (device=pswrite) is correctly convert the pdf to ps (checked using adobe distiller).
&lt;br&gt;When Hylafax conerts this PS to Tiff, things go wrong.
&lt;br&gt;&lt;br&gt;How to get ps2write working with the correct papersize? 
&lt;br&gt;I hope the output of ps2write is going to give better results when converted to tiff. 
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26244263&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-PDF-to-PS---Automatic-page-rotation-to-Portrait-tp26243552p26244263.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26243952</id>
	<title>Re: Convert PDF to PS - Automatic page rotation to Portrait</title>
	<published>2009-11-07T03:31:43Z</published>
	<updated>2009-11-07T03:31:43Z</updated>
	<author>
		<name>Ken Sharp</name>
	</author>
	<content type="html">At 11:23 07/11/2009 +0100, =?ISO-8859-2?Q?Lakos_D=E1niel?= wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;Ive found a solution in the GS archives, and the rotation works as it
&lt;br&gt;&amp;gt;should, but some text are malformed/characters missing after conversion.
&lt;br&gt;&amp;gt;Does Anybody have an idea whats wrong?
&lt;br&gt;&amp;gt;Is there any other method to &amp;quot;auto rotate&amp;quot; pages?
&lt;br&gt;&amp;gt;My GhostScript Version is 8.15.
&lt;br&gt;&lt;br&gt;First suggestion, upgrade to something more recent. The current version is 
&lt;br&gt;8.70 and 8.15 is quite old.
&lt;br&gt;&lt;br&gt;You might also consider using ps2write instead of pswrite as ps2write 
&lt;br&gt;generally does a better job.
&lt;br&gt;&lt;br&gt;By the way, the code you are using only auto-rotates pages if they are 
&lt;br&gt;landscape letter (842x595 points), other page sizes may be scaled and/or 
&lt;br&gt;centered.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ken
&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26243952&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-PDF-to-PS---Automatic-page-rotation-to-Portrait-tp26243552p26243952.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26243552</id>
	<title>Convert PDF to PS - Automatic page rotation to Portrait</title>
	<published>2009-11-07T02:23:18Z</published>
	<updated>2009-11-07T02:23:18Z</updated>
	<author>
		<name>Lakos Dániel</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Im using Hylafax, which can only send portrait documents, &amp;nbsp;but &amp;nbsp;theres a
&lt;br&gt;need &amp;nbsp;to fax &amp;nbsp;landscape PDFs as well.
&lt;br&gt;So I need a solution to detect page orientation and rotate the document
&lt;br&gt;to portrait, if its landscape.
&lt;br&gt;Portrait pages should be left alone...
&lt;br&gt;&lt;br&gt;Ive found a solution in the GS archives, and the rotation works as it
&lt;br&gt;should, but some text are malformed/characters missing after conversion.
&lt;br&gt;Does Anybody have an idea whats wrong?
&lt;br&gt;Is there any other method to &amp;quot;auto rotate&amp;quot; pages?
&lt;br&gt;My GhostScript Version is 8.15.
&lt;br&gt;&lt;br&gt;Thank You in Advance,
&lt;br&gt;Daniel
&lt;br&gt;&lt;br&gt;The solution I use, is the following.
&lt;br&gt;-----------------------------------------------------------------------------
&lt;br&gt;gs -sOutputFile=out.ps \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -sDEVICE=pswrite \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -dBATCH -dNOPAUSE -dSAFER=true \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; autorotate.ps \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; in.pdf
&lt;br&gt;-----------------------------------------------------------------------------
&lt;br&gt;autorotate.ps:::::
&lt;br&gt;%!PS
&lt;br&gt;&amp;nbsp; % &amp;nbsp; Sequence to set up for a single page size, auto fit all pages.
&lt;br&gt;&amp;nbsp; &amp;lt;&amp;lt; /Policies &amp;lt;&amp;lt; /PageSize 3 &amp;gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/InputAttributes currentpagedevice /InputAttributes get &amp;nbsp; &amp;nbsp;%current
&lt;br&gt;dict
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;dup { pop 1 index exch undef } forall &amp;nbsp; &amp;nbsp;% remove all page sizes
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;dup 0 &amp;lt;&amp;lt; /PageSize [ 595 842 ] &amp;gt;&amp;gt; put &amp;nbsp; &amp;nbsp;% for A4 use [ 595 842 ]
&lt;br&gt;&amp;nbsp; &amp;gt;&amp;gt; setpagedevice
&lt;br&gt;-----------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26243552&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-PDF-to-PS---Automatic-page-rotation-to-Portrait-tp26243552p26243552.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26173782</id>
	<title>make so fails on Mac OS X</title>
	<published>2009-11-02T17:41:18Z</published>
	<updated>2009-11-02T17:41:18Z</updated>
	<author>
		<name>Matt Broughton</name>
	</author>
	<content type="html">I checked out revision 10257 with svn and tried to do a 'make so' 
&lt;br&gt;under Mac OS X. &amp;nbsp;The 'make so' fails with undefined symbols. &amp;nbsp;This is 
&lt;br&gt;the case for building x86_64 under OS X 10.6.1 and ppc under OS X 
&lt;br&gt;10.4.11.
&lt;br&gt;&lt;br&gt;A standard 'make' works fine.
&lt;br&gt;&lt;br&gt;I am not sure if I missed something in patching the unix-dll.mak file 
&lt;br&gt;or if there is something else going on. &amp;nbsp;Any help would be 
&lt;br&gt;appreciated.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I patched the unix-dll.mak as follows:
&lt;br&gt;--- gs/base/unix-dll.mak.orig	2009-11-02 11:46:37.000000000 -0600
&lt;br&gt;+++ gs/base/unix-dll.mak	2009-11-02 11:50:33.000000000 -0600
&lt;br&gt;@@ -52,13 +52,13 @@
&lt;br&gt;&amp;nbsp; LDFLAGS_SO=-shared -Wl,-soname=$(GS_SONAME_MAJOR)
&lt;br&gt;&lt;br&gt;&amp;nbsp; # MacOS X
&lt;br&gt;-#GS_SOEXT=dylib
&lt;br&gt;-#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT)
&lt;br&gt;-#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT)
&lt;br&gt;-#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT)
&lt;br&gt;-#LDFLAGS_SO=-dynamiclib -flat_namespace
&lt;br&gt;-#LDFLAGS_SO=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR)
&lt;br&gt;-#LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME)
&lt;br&gt;+GS_SOEXT=dylib
&lt;br&gt;+GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT)
&lt;br&gt;+GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT)
&lt;br&gt;+GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT)
&lt;br&gt;+LDFLAGS_SO=-dynamiclib -flat_namespace
&lt;br&gt;+LDFLAGS_SO=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR)
&lt;br&gt;+LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME)
&lt;br&gt;&lt;br&gt;&amp;nbsp; GS_SO=$(BINDIR)/$(GS_SONAME)
&lt;br&gt;&amp;nbsp; GS_SO_MAJOR=$(BINDIR)/$(GS_SONAME_MAJOR)
&lt;br&gt;&lt;br&gt;&lt;br&gt;I used the following autogen command:
&lt;br&gt;./autogen.sh --without-x --enable-cups --with-ijs --with-drivers=ALL
&lt;br&gt;&lt;br&gt;With OS X 10.6.1, the failure is:
&lt;br&gt;Total %rom% structure size is 7397508 bytes.
&lt;br&gt;gcc &amp;nbsp;-DHAVE_MKSTEMP -DHAVE_HYPOT &amp;nbsp; &amp;nbsp;-O2 &amp;nbsp;-Wall -Wstrict-prototypes 
&lt;br&gt;-Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings 
&lt;br&gt;-Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin 
&lt;br&gt;-fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE=&amp;quot;unsigned long int&amp;quot; 
&lt;br&gt;-I./obj/../soobj -I./base &amp;nbsp;-o ./obj/../soobj/gsromfs1.o -c 
&lt;br&gt;./obj/../soobj/gsromfs1.c
&lt;br&gt;./obj/../soobj/echogs -w ./obj/../soobj/ldt.tr -n - gcc -dynamiclib 
&lt;br&gt;-install_name &amp;nbsp;-o ./bin/../sobin/libgs.8.71.dylib
&lt;br&gt;./obj/../soobj/echogs -a ./obj/../soobj/ldt.tr -n -s 
&lt;br&gt;./obj/../soobj/gsromfs1.o ./obj/../soobj/gs.o -s
&lt;br&gt;cat ./obj/../soobj/ld.tr &amp;gt;&amp;gt;./obj/../soobj/ldt.tr
&lt;br&gt;./obj/../soobj/echogs -a ./obj/../soobj/ldt.tr -s - -ldl -lm &amp;nbsp;-liconv 
&lt;br&gt;-lstdc++ &amp;nbsp; -lpthread -lm
&lt;br&gt;if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEVICE_DEVS_EXTRA= \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /bin/sh &amp;lt;./obj/../soobj/ldt.tr
&lt;br&gt;Undefined symbols:
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;_gs_romfs_buildtime&amp;quot;, referenced from:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_romfs_file_status in gsiorom.o
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;_gs_romfs&amp;quot;, referenced from:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_romfs_open_file in gsiorom.o
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_romfs_file_status in gsiorom.o
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_romfs_enumerate_next in gsiorom.o
&lt;br&gt;ld: symbol(s) not found
&lt;br&gt;collect2: ld returned 1 exit status
&lt;br&gt;make[1]: *** [bin/../sobin/libgs.8.71.dylib] Error 1
&lt;br&gt;make: *** [so] Error 2
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Matt Broughton
&lt;br&gt;Only relatives are absolute.
&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26173782&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/make-so-fails-on-Mac-OS-X-tp26173782p26173782.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26164135</id>
	<title>Re: xref error under Mac OS X</title>
	<published>2009-11-02T05:51:54Z</published>
	<updated>2009-11-02T05:51:54Z</updated>
	<author>
		<name>Matt Broughton</name>
	</author>
	<content type="html">At 1:18 PM -0500 11/1/09, Alex Cherepanov wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;Matt Broughton wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Sample PDF is at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;lt;&lt;a href=&quot;http://webpages.charter.net/mbroughtn/beta/cgpdftopdfOUT.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://webpages.charter.net/mbroughtn/beta/cgpdftopdfOUT.pdf&lt;/a&gt;&amp;gt;. 
&lt;br&gt;&amp;gt;&amp;gt;This is the output from the running of Apple's cgpdftopdf filter on 
&lt;br&gt;&amp;gt;&amp;gt;a PDF spool file. &amp;nbsp;This is the normal Apple printing workflow. 
&lt;br&gt;&amp;gt;&amp;gt;Ghostscript is indicating there is an error. &amp;nbsp;Apple believes the 
&lt;br&gt;&amp;gt;&amp;gt;PDF is compliant.
&lt;br&gt;&amp;gt;The file is invalid. The file has no object 11 and this is OK.
&lt;br&gt;&amp;gt;However, xref entry for the object 11 places it at the position 0.
&lt;br&gt;&amp;gt; &amp;nbsp; 0000000000 00000 n
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Ghostscript validates xref table and complains about this entry.
&lt;br&gt;&amp;gt;Ghostscript also chooses rebuild the whole table, which is not needed
&lt;br&gt;&amp;gt;in this case. The table is valid except one insignificant entry.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;According to the spec, free entries should form a linked list.
&lt;/div&gt;. . .
&lt;br&gt;&lt;br&gt;&amp;gt;Ghostscript doesn't validate the linked list. It just ignores all free
&lt;br&gt;&amp;gt;entries regardless of the numbers, but free entries should have 'f'
&lt;br&gt;&amp;gt;keyword.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thank you for the very detailed explanation.
&lt;br&gt;-- 
&lt;br&gt;Matt Broughton
&lt;br&gt;Only relatives are absolute.
&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26164135&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/xref-error-under-Mac-OS-X-tp26152262p26164135.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26153394</id>
	<title>Re: xref error under Mac OS X</title>
	<published>2009-11-01T10:18:05Z</published>
	<updated>2009-11-01T10:18:05Z</updated>
	<author>
		<name>Alex Cherepanov</name>
	</author>
	<content type="html">Matt Broughton wrote:
&lt;br&gt;&amp;gt; Sample PDF is at 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://webpages.charter.net/mbroughtn/beta/cgpdftopdfOUT.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://webpages.charter.net/mbroughtn/beta/cgpdftopdfOUT.pdf&lt;/a&gt;&amp;gt;. &amp;nbsp;This is 
&lt;br&gt;&amp;gt; the output from the running of Apple's cgpdftopdf filter on a PDF spool 
&lt;br&gt;&amp;gt; file. &amp;nbsp;This is the normal Apple printing workflow. &amp;nbsp;Ghostscript is 
&lt;br&gt;&amp;gt; indicating there is an error. &amp;nbsp;Apple believes the PDF is compliant.
&lt;br&gt;The file is invalid. The file has no object 11 and this is OK.
&lt;br&gt;However, xref entry for the object 11 places it at the position 0.
&lt;br&gt;&amp;nbsp; &amp;nbsp;0000000000 00000 n
&lt;br&gt;&lt;br&gt;Ghostscript validates xref table and complains about this entry.
&lt;br&gt;Ghostscript also chooses rebuild the whole table, which is not needed
&lt;br&gt;in this case. The table is valid except one insignificant entry.
&lt;br&gt;&lt;br&gt;According to the spec, free entries should form a linked list.
&lt;br&gt;0000000011 65535 f
&lt;br&gt;0000035459 00000 n
&lt;br&gt;0000002647 00000 n
&lt;br&gt;0000005659 00000 n
&lt;br&gt;0000000022 00000 n
&lt;br&gt;0000002627 00000 n
&lt;br&gt;0000002751 00000 n
&lt;br&gt;0000005623 00000 n
&lt;br&gt;0000009976 00000 n
&lt;br&gt;0000018475 00000 n
&lt;br&gt;0000032076 00000 n
&lt;br&gt;0000000000 00000 f
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;Ghostscript doesn't validate the linked list. It just ignores all free
&lt;br&gt;entries regardless of the numbers, but free entries should have 'f'
&lt;br&gt;keyword.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Alex Cherepanov
&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26153394&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/xref-error-under-Mac-OS-X-tp26152262p26153394.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26152285</id>
	<title>Re: xref error under Mac OS X</title>
	<published>2009-11-01T08:06:23Z</published>
	<updated>2009-11-01T08:06:23Z</updated>
	<author>
		<name>Martin Schröder</name>
	</author>
	<content type="html">2009/11/1 Matt Broughton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26152285&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;walterwego@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; I would ask that someone please take a look give an opinion/statement as to
&lt;br&gt;&amp;gt; whether there is a bug in Ghostscript or Apple's filter.
&lt;br&gt;&lt;br&gt;The latter. Where is object 11?
&lt;br&gt;&lt;br&gt;Best
&lt;br&gt;&amp;nbsp; &amp;nbsp;Martin
&lt;br&gt;&lt;br&gt;PS: I can't recommend qpdf enough.
&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26152285&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-xref-error-under-Mac-OS-X-tp26152285p26152285.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26152262</id>
	<title>xref error under Mac OS X</title>
	<published>2009-11-01T08:02:42Z</published>
	<updated>2009-11-01T08:02:42Z</updated>
	<author>
		<name>Matt Broughton</name>
	</author>
	<content type="html">Sample PDF is at 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://webpages.charter.net/mbroughtn/beta/cgpdftopdfOUT.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://webpages.charter.net/mbroughtn/beta/cgpdftopdfOUT.pdf&lt;/a&gt;&amp;gt;. &amp;nbsp;This 
&lt;br&gt;is the output from the running of Apple's cgpdftopdf filter on a PDF 
&lt;br&gt;spool file. &amp;nbsp;This is the normal Apple printing workflow. &amp;nbsp;Ghostscript 
&lt;br&gt;is indicating there is an error. &amp;nbsp;Apple believes the PDF is compliant.
&lt;br&gt;&lt;br&gt;I would ask that someone please take a look give an opinion/statement 
&lt;br&gt;as to whether there is a bug in Ghostscript or Apple's filter.
&lt;br&gt;&lt;br&gt;$ gs -v
&lt;br&gt;GPL Ghostscript 8.70 (2009-07-31)
&lt;br&gt;Copyright (C) 2009 Artifex Software, Inc. &amp;nbsp;All rights reserved.
&lt;br&gt;&lt;br&gt;$ gs -dFirstPage=1 &amp;nbsp;-q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE 
&lt;br&gt;-sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer=&amp;quot;HEWLETT-PACKARD&amp;quot; 
&lt;br&gt;-sDeviceModel=&amp;quot;DESKJET 870&amp;quot; -dDEVICEWIDTHPOINTS=612 
&lt;br&gt;-dDEVICEHEIGHTPOINTS=792 -r300 
&lt;br&gt;-sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2 
&lt;br&gt;-dIjsUseOutputFD -sOutputFile=testOut.prn cgpdftopdfOUT.pdf
&lt;br&gt;&amp;nbsp; &amp;nbsp; **** Warning: &amp;nbsp;File has an invalid xref entry: &amp;nbsp;11. &amp;nbsp;Rebuilding xref table.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; **** This file had errors that were repaired or ignored.
&lt;br&gt;&amp;nbsp; &amp;nbsp; **** The file was produced by:
&lt;br&gt;&amp;nbsp; &amp;nbsp; **** &amp;gt;&amp;gt;&amp;gt;&amp;gt; Mac OS X 10.6 Quartz PDFContext &amp;lt;&amp;lt;&amp;lt;&amp;lt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; **** Please notify the author of the software that produced this
&lt;br&gt;&amp;nbsp; &amp;nbsp; **** file that it does not conform to Adobe's published PDF
&lt;br&gt;&amp;nbsp; &amp;nbsp; **** specification.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Matt Broughton
&lt;br&gt;Only relatives are absolute.
&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26152262&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/xref-error-under-Mac-OS-X-tp26152262p26152262.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26037283</id>
	<title>Re: Ps to pdf problem</title>
	<published>2009-10-24T02:09:52Z</published>
	<updated>2009-10-24T02:09:52Z</updated>
	<author>
		<name>yvan roussel</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;It's not a bug.
&lt;br&gt;You need to know at first the size of &amp;nbsp;your eps.
&lt;br&gt;gswin32c -sDEVICE=bbox -dNOPAUSE -dBATCH &amp;quot;d:\testing\test.ps&amp;quot; &amp;gt; size.txt
&lt;br&gt;The size is in the file size.txt
&lt;br&gt;Then you do the pdf with the good size (width and height)
&lt;br&gt;gswin32c -dDEVICEWIDTHPOINTS=width -dDEVICEHEIGHTPOINTS=height -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=&amp;quot;d:\testing\test.pdf&amp;quot; &amp;quot;d:\testing\test.ps&amp;quot; 
&lt;br&gt;regards
&lt;br&gt;Y.Roussel
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Gerald Manickam wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi Friends,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; I used batch file pstopdf1.4 &amp;nbsp;present in lib folder of Ghostscript 8.14. I passed arguments like the below.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ps2pdf13 &amp;quot;D:\testing\test.ps&amp;quot; &amp;quot;D:\testing\testing.pdf&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp;The output pdf file is cropped to A4 size. [612 X 792]. My aim is to get the full page size. when i checked the distiller the default size is A4. I do know how to set the original page size. Please tell me how to get the full page size.
&lt;br&gt;&lt;br&gt;Thanks and Regards,
&lt;br&gt;Gerald Manickam Philiph
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---bugs-f1630.html&quot; embed=&quot;fixTarget[1630]&quot; target=&quot;_top&quot; &gt;Ghostscript - bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ps-to-pdf-problem-tp12249708p26037283.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26034202</id>
	<title>PDFWRITE convert CMYK to RVB</title>
	<published>2009-10-23T15:36:46Z</published>
	<updated>2009-10-23T15:36:46Z</updated>
	<author>
		<name>yvan roussel</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;When I convert my EPS file with a CMYK image embedded to PDF,it becomes RVB!
&lt;br&gt;I want a PDF with CMYK.
&lt;br&gt;How can I do ?
&lt;br&gt;&lt;br&gt;Here is the command :
&lt;br&gt;gswin32c -q -dNoPause -dSAFER -dNOPAUSE -dBATCH -dDEVICEWIDTHPOINTS=412 -dDEVICEHEIGHTPOINTS=511 -sDEVICE=pdfwrite -sOutputFile=&amp;quot;9510448322.pdf&amp;quot; -f &amp;quot;9510448322.eps&amp;quot;
&lt;br&gt;&lt;br&gt;Thank's
&lt;br&gt;&lt;br&gt;Y.Roussel&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---bugs-f1630.html&quot; embed=&quot;fixTarget[1630]&quot; target=&quot;_top&quot; &gt;Ghostscript - bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PDFWRITE-convert-CMYK-to-RVB-tp26034202p26034202.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26023008</id>
	<title>Unable to decode JPX image data - Ghostscript 8.70</title>
	<published>2009-10-23T02:03:42Z</published>
	<updated>2009-10-23T02:03:42Z</updated>
	<author>
		<name>LexLuthor</name>
	</author>
	<content type="html">Ghostscript - PDF to JPG - Linux Cent OS
&lt;br&gt;&lt;br&gt;We have problems converting this pdf &lt;a href=&quot;http://pdf.kewl.se/view/test/120/120.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pdf.kewl.se/view/test/120/120.pdf&lt;/a&gt;&lt;br&gt;&lt;br&gt;This is the command we use today 
&lt;br&gt;/usr/bin/gs -I/usr/share/fonts/default/Type1 -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -sDEVICE=png16m -dUseCIEColor -dFirstPage=1 -dLastPage=1 -r300x300 -sOutputFile=page.png 120.pdf
&lt;br&gt;&lt;br&gt;&lt;br&gt;The error we get is 
&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;GPL Ghostscript 8.70 (2009-07-31)
&lt;br&gt;Copyright (C) 2009 Artifex Software, Inc. All rights reserved.
&lt;br&gt;This software comes with NO WARRANTY: see the file PUBLIC for details.
&lt;br&gt;Processing pages 1 through 1.
&lt;br&gt;Page 1
&lt;br&gt;error: cannot decode code stream
&lt;br&gt;unable to decode JPX image data.
&lt;br&gt;&lt;br&gt;**** Warning: File has insufficient data for an image.
&lt;br&gt;&lt;br&gt;**** This file had errors that were repaired or ignored.
&lt;br&gt;**** The file was produced by:
&lt;br&gt;**** Adobe PDF Library 8.0
&lt;br&gt;**** Please notify the author of the software that produced this
&lt;br&gt;**** file that it does not conform to Adobe's published PDF
&lt;br&gt;**** specification.
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Our setup
&lt;br&gt;- We have a Linux CentOS server where ghostscript is installed
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unable-to-decode-JPX-image-data---Ghostscript-8.70-tp26023008p26023008.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26015285</id>
	<title>strange font splitting in -sDEVICE=pdfwrite</title>
	<published>2009-10-22T11:50:26Z</published>
	<updated>2009-10-22T11:50:26Z</updated>
	<author>
		<name>Péter Szabó</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Thank you for the informative and detailed response. Based your answer
&lt;br&gt;I was able to simulate `glyphshow' using `show' and the Encoding
&lt;br&gt;array. This solved my problem.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&lt;br&gt;Péter
&lt;br&gt;_______________________________________________
&lt;br&gt;gs-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26015285&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gs-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.ghostscript.com/mailman/listinfo/gs-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ghostscript.com/mailman/listinfo/gs-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ghostscript---Dev-f1635.html&quot; embed=&quot;fixTarget[1635]&quot; target=&quot;_top&quot; &gt;Ghostscript - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/strange-font-splitting-in--sDEVICE%3Dpdfwrite-tp26015285p26015285.html" />
</entry>

</feed>
