<div dir="ltr"><div><div><div>Hi,<br><br></div>Unfortunately, the wkPDFResolution resource applies only to NCL's original PDF driver, which was superseded by a newer driver that supports the advanced color capabilities. If you are not making use of those advanced features (opacity, exact-colors, etc.), then you can still access the original driver by using a workstation type of "oldpdf".<br><br></div>Hope that helps...<br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 7, 2016 at 8:48 PM, <a href="mailto:yinjinfang88@163.com">yinjinfang88@163.com</a> <span dir="ltr"><<a href="mailto:yinjinfang88@163.com" target="_blank">yinjinfang88@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div><span></span>Dear all,</div><div> I am just trying to use the <span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:1.5">wkPDFResolution resource to increase the PDF figure resolution. Two ways have been tested, but it does not work. The NCL is version 6.3.0. </span></div><div><br></div>
<div>One way to set a value for the wkPDFResolution is :</div><div><br></div><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)"> type = "pdf"<br> type@wkPSResolution = 5400; (default is 1800)<br> wks = gsn_open_wks(type, "54511")</span></div><div><br></div><div>However, a warning is given</div><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><i>warning:wkPSResolution is not a resource in the given object</i></span></div><div>The warning indicates that the <span style="font-size:10.5pt;line-height:1.5;background-color:window">wkPSResolution resource is unavailable at this time.</span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window"><br></span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window">Alternative way is </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">using a gsun to open a workstation.</span></div><div>xworkid = create "testWork" pdfWorkstationClass defaultapp <br> "wkPDFResolution" : 5400 <br> "wkPDFFileName" : "test.pdf" <br> end create </div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window"><br></span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window">This setting works well. However, </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">the size of the pdf file remains </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">unchanged.</span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window"><br></span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window">Any idea? </span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window">Thanks a lot.</span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window"><br></span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window"> Jin-Fang Yin </span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window"><br></span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window"><br></span></div><div><br></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window"><br></span></div><div><span style="font-size:10.5pt;line-height:1.5;background-color:window"><br></span></div><div><br></div><hr style="width:210px;min-height:1px" color="#b5c4df" align="left" size="1">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt">
<i><span style="font-size:12.0pt;line-height:150%;font-family:"Times New Roman","serif"" lang="EN-US">State Key Laboratory of Severe Weather, Chinese
Academy of Meteorological Sciences, Beijing 100081, China</span></i>
</div></span></div>
</div><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>