How to change setlinewidth on a given page?

We have our PostScript printer driver send a text file with some extra instructions. Among other things, this file establishes a custom "6 setlinewidth" mainly for fractional divider lines. The custom value is apparently reset to the default value of 1 with each new page, which is convenient. However, on some pages with such a line we also wish a character to be drawn. The strokes used in drawing the character on those pages are set at a width of 6, which is too black and too blurry for a character. The PS default setting of 1 would be appropriate, and we can see that it is so on pages that don't have horizontal lines. The wordprocessing program allows printer commands and files to be sent anywhere on the page. My approach to getting a drawn character of default thickness was to insert the command before the character and, if need be for further lines on the page, after it. But a printer command of "1 setlinewidth" (or any other value) results merely in a gap being left for the character. What PS code will tell the character to be printed in the space left for it?
What doesn't work is inserting 2 simple PS files in the file that is to be printed. I inserted a file with this content "gsave | 1 setlinewidth" immediately before the font that is to invoke the character to be drawn, and a file with "grestore" immediately after the code for the character. The resulting printout or the PDF always has an adequate space for the character but never prints it.
/Plantin-BoldR 450 _ff
end end save 1200 72 div dup scale
gsave
1 setlinewidth
restore wpdict begin wpdict2 begin
/TimesNRGreekMT-BoldInclinedR 450 _ff
3114 5216 _m
end end save 1200 72 div dup scale
grestore
restore wpdict begin wpdict2 begin
3164 5216 _m
/Plantin-BoldR 550 _ff
It's the same white gap if I simply send the command "1 setlinewidth" before the switch to TimesNRGreekMT-BoldInclinedR. What can be preventing the character to be drawn when setlinewidth is inserted? There are several setlinewidth commands in the file, but "6 setlinewidth" is left operable at this point.

You might consider using the following method instead of "hardcoding" a default value of 0 for "setlinewidth" just in case the default changes to something other than 0. This should be much less processing overhead than using gsave and grestore.:
/BRline {
%% First get the current/default linewidth and store it in PREVlinewidth  before making any changes with setlinewidth.
currentlinewidth /PREVlinewidth exch def
6 setlinewidth
0 exch rmoveto
0 rlineto stroke
%% Now change setlinewidth back to its previous/default value with PREVlinewidth, whatever it was before BRline was run.
PREVlinewidth setlinewidth
} def
Also, I noticed the use of restore's in your original post but their corresponding save's were not visible, but I would guess the issue you were having was being overridden by the restore's and the position relative to your instructions.
- Marvin

Similar Messages

  • How to change the color background in Pages for iPad?

    how to change the color background in Pages for iPad?

    You can find many themes at https://github.com/hdoria/xcode-themes  There's a download zip button on the right side of the page.
    Unzip and and copy the .dvtcolortheme files into /Users/YourUsername/Library/Developer/XCode/UserData/FontAndColorThemes Create the directory if it doesn't exist.
    If you can't find the Library directory you can get to it by using Finder's "Go to Folder..." option under "Go" or press shift + cmd + G then type the path.

  • How to change the header in all pages at once?

    I'm new to iWeb and can't figure out how to change the headers of all pages without having to go through and do it to every page. There should be a way, but is this a feature iWeb doesn't have?

    Hi,
    Refer following link which states how to change the Page Setup setting (just an addition to above poster's explanation):-
    http://docs.oracle.com/cd/E12825_01/epm.111/fr_user/frameset.htm?1900.html
    Regards,
    Edited by: 918547 on Dec 14, 2012 6:17 PM

  • How to change to landscape orientation in Pages for iPhone4s?

    Does anyone know how to change to landscape orientation in Pages for iPhone 4s and iPad?

    The functionality on an iPhone is greatly diminished when having to work in potrait mode due to the screen size; it really becomes a bit useless.
    It seeems a no-brainer; I guess that's why I asked on the forum.
    Maybe someone else knows more.?
    I hope that you're not right but think you probably are.
    Thanks again for offering to help!

  • How to change pdf to jpeg in pages?

    How do I change pdf to jpeg in pages?

    Why do you want to do that? It will get worse and bigger.
    Peter

  • How to change the oracle's home page to show our custom message.

    Hi,
    Can we anyway change the oracle's home page to show our own messages,if yes then how can we do it.

    Ram,
    Can you reply on this thread:
    How to introduce html code in the <head> tag of an OAF page
    --Mukul                                                                                                                                                                                                                                                                                                   

  • How to  change Image in Portal logon page

    Hi
    we installed the portal EP6SP16.can anybody tell how to change the Standard image with my Company's logo.can any provide the document how to do that.please help
    Regards
    Prasad

    Hi
    Goto System Administration => System Configuration => UM Configuration => Direct Editing.
    In the set of properties listed there, change the value of ume.logon.branding_image to the location of your new image. Don forget to restart the portal server after making changes.
    Place the image in the layout folder of your project which is nothing but the modification of the logon par file (com.sap.portal.runtime.logon.par.bak).
    Regards
    Yoga

  • How to change the http regular login page

    The iFS/HTTP authenticates users as Guest automatically. Can someone tell me how to change it back to the login dialog? Thanks.

    Hey,
    Thanks for the reply, but I didn't understand much.
    Guess I'm just going to try and look on why I can't change the context path when deploying a webservice package using ant tasks.
    Thanks again for the reply.
    William

  • How to change the size of New Page create pop up window ?

    In Site Actions on clicking of New Page the pop up page is opened it is stretched mode.
    I want to change the width of that pop up windows only.
    After pressing F12 key i find that it is happening because of the java script  function on calling of which that page is opened.
    But i am unable to find that javascript function from where it is calling or where it is written or how i can modify that function.
    So please help me out in solving that issue.

    Hi,
    According to your post, my understanding is that you want to change the size of the new page pop up dialog.
    We can create a new dialog with proper size to achieve it.
    I have made a simple code demo to create a new dialog with proper size, you can have a look at it.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
    ready();
    function ready(){
    $("span[title='Open Menu']").click(function(){
    //alert(2);
    setTimeout(openNewPageClick,500);
    function openNewPageClick(){
    //setTimeout(openNewPage,1000);
    $("#mp1_0_3").removeAttr("onMenuClick");
    $("#mp1_0_3").click(function(){
    url="http://sps/_layouts/createwebpage.aspx";
    openDialogBox(url);
    function openDialogBox(url){
    var options = SP.UI.$create_DialogOptions();
    options.url = url;
    options.height = 900;
    SP.UI.ModalDialog.showModalDialog(options);
    </script>
    Note: You should change the ID or class to fit your environment.
    More reference:
    http://kyleschaeffer.com/sharepoint/sharepoint-2010-pop-up-dialogs/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to change table name after creating page and application

    Hi HTMLDB Team,
    i have created a application with page where the region use master detail form with table name emp.Now after developing the page and the application i want to change the table from emp to emp2 where emp2 is the table with same structure of existing emp and same field properties.How can i edit the table as emp2 ?
    Thanks in advance,
    Cheers,
    koushik

    Koushik,
    Depending on the amount of customizations that you did, it may be easier to use the wizard to re-create the master-detail form & report.
    If you still want to give it a go:
    Assuming that you created the 2-page Master Detail report & form:
    On the first page, you will have to chage the SQL to reflect the new table name. Once you do that, you'll have to re-create the link on the EMPID column.
    On the second page, you'll need to do some more work. You'll have to change both Page Rendering Processes: Fetch Row from EMP and Get Next or Previous Primary Key. You'll then need to change the Page Processing Process: Process Row of EMP. Also, ensure that you have a proper Foreign Key relationship between EMP2 and DEPT (or your detail table).
    Thanks,
    - Scott -

  • How to change link strings on multiple page PDFs - urgent please

    I have several muly page PDF pages, and on each PDF page there are 20-50 different web links.
    Each of the links are done as Open a Weblink, but on each one I did them like below.
    javascript:void(window.open('http://www.website.com/link1'))
    javascript:void(window.open('http://www.website.com/link2'))
    javascript:void(window.open('http://www.xyz.com/link3'))
    etc.
    I would like to be able to remove the beginning and ending on each link, for either one or multiple PDFs using some type of automated process, instead of clicking on each one, one at a time.
    I NEED TO REMOVE THIS FROM THE BEGINNING javascript:void(window.open('
    ADOBE shows it as javascript:void\(window.open\('
    REMOVE THIS FROM THE ENDING '))
    ADOBE shows it as '\)\)
    I tried this using notepad and an editor, but doing so resulted in an error when reopening the PDF
    an unrecognized token was found '0.35w' was found
    Does Acrobat Pro 9 do this? or??
    Thank you

    Hi,
    Try to change the Text Property of that Link through personalization.
    Through Personalize page link which is on top of the page Left Side-
    Click on Pencil icon which is in front of that item and change the property to whatever text so want to see like=> "click here to go back"
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to change the resolution of a page in iWeb

    Hi,
    I'm making a website for a project, and I decided to do it in iWeb. The brief of mt project says the resolution has to be 1024*768, however, when I change the resolution to this, the page instantly looks horrible with a white border to the right of my content. Is there a way to change this, or centre my content in the white part?
    Thanks,
    Jonny.

    There is no formula for a web page and you have to consider the type of content and what device the viewer is using.
    A "standard" width for a conventional webpage could be considered to be 980px with a page height of no more than about 1200px to avoid too much scrolling. Any page that is much higher than this should, at least, have a "back to the top" button...
    http://www.iwebformusicians.com/iWeb/Navigation.html
    The browser width on personal computers is user adjustable and not everybody wants to fill the whole screen width.
    The browser width on mobile devices is fixed and the user only has the option of portrait or landscape orientation.
    US letter size is 8.5 inches wide by 11 high (816 x 1056 px) and the European A4 is 8.27 × 11.69 (794 x 1123 px). Either would be a good starting point for an e-zine.
    The iPad is 768 px wide in portrait mode but remember that its not the only tablet available. I think Kindle is 600px wide and others are smaller.
    Text on wide pages is difficult to read - hence the use of columns in magazines and newspapers.
    Designing web pages for mobile devices in general is not possible with iWeb since it can only use a fixed page width. An example of a folding column magazine style layout can be found on this page...
    http://www.ezmacwebdesign.com/showcase.html

  • How to change font size on web page when have no icon in View tool to do so

    menu bar at top of screen does not have icon to change font size of a web page as described in your support information--you show it as between stop and reload in View icon and I do not have it at all in my toolbar.

    See this: <br />
    https://support.mozilla.com/en-US/kb/Page+Zoom

  • How to change a Windows Phone start page programmatically?

    FYI, I know the title is similar to many posts in this forum, but they don't address this specific problem.
    I have the following line in the App.xaml.cs file:
    if (!rootFrame.Navigate(typeof(Page1), e.Arguments))
    When I change MainPage to Page1, it changes the page you see on startup. So far so good. The problem is:
    On Page1 I have checkbox so a user can check "do not show this page again". When a user clicks continue, on the button click event if the box is checked every time the program starts going forward it should load MainPage.
    I am working with the following I have found:
    To fix this you need to do the following in your tutorial page's button click
    // Inside the Button click event of TutorialPage.xaml
    // Change the mapping so that MainPage points to itself
    ((UriMapper)App.RootFrame.UriMapper).UriMappings[0].MappedUri =
    new Uri("/MainPage.xaml", UriKind.Relative);
    // Since RootFrame.CurrentSource is still set to MainPage, you need to pass
    // some dummy query string to force the navigation
    App.RootFrame.Navigate(new Uri("/MainPage.xaml?dummy=1", UriKind.Relative));
    // Remove back entry so that if user taps the back button
    // you won't get back to tutorial
    App.RootFrame.RemoveBackEntry();
    This seems like what I want, but I get two errors I can't solve.  Error 1 The type or namespace name 'UriMapper' could not be found (are you missing a using directive or an assembly reference?) and Error 2 'My.App' does not
    contain a definition for 'RootFrame' 
    I can't find a using statement or anything that will remove the URI error. as far as RootFrame, that is used in App.xaml.cs with no errors. It's spelled rootFrame but when I change it in Page1 it doesn't make a difference. I still get the same error. Using
    statements are the same for both pages.
    I would appreciate any help or a point in the right direction.  I'm using Visual Studio 2013 with the blank Windows Phone template.

    I hope I'm not missing something because this is a very obvious solution...
    Store a user setting and test it when the app launches.
    if(usersetting == true)
    if (!rootFrame.Navigate(typeof(Page1), e.Arguments))
    else
    if (!rootFrame.Navigate(typeof(MainPage), e.Arguments))
    That user setting would have to be stored in the local user settings (consider the first line of my code to be pseudo-code).
    This works perfectly for a scenario where you have a page that should only launch the first time an app is run or an optional landing page.
    I'm a self-taught noob amateur. Please take this into account when responding to my posts or when taking advice from me.

  • How to change the Crystal Reports start page

    The CR Start page has a panel on the bottom half which displays Highlights, Key Resources, and eLearning tabs. It is annoying. How do I turn it off?

    One more idea:
    Go to your below directory on your machine:
    C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\Start Page\en
    Take a backup of start.html file (If the below, doesn't work you can put it back)
    Open start.html and edit in notepad remove below code and save it , your annoying tab disappears
    <div id="onlinecontent">
    <iframe width="100%"
          height="1200px" align="center" scrolling="auto" FRAMEBORDER="0" class="resources" id="onlineresourse"></iframe>
    <script type="text/javascript">InitializeResourcesTag("onlineresourse")</script>
        <script type="text/javascript">SetFrameSource("onlineresourse")</script>
      </div>

Maybe you are looking for