IWDPDFDocumentCreationContext Interface - no static text rendered

WebDynPro java.  Netweaver 2004s
Adobe LiveCycleDesigner 7.1 I believe (how can I confirm?)
I am using the IWDPDFDocumentCreationContext to render a non-interative PDF form.  When the pdf is rendered, none of the static text, horizontal lines, page headers are displayed.  They ARE displayed in the PDF Preview tab of the interactive LiveCycleDesigner.  The data layout that is taken from the context node is displayed correctly.
I am using the following code:
       InputStream xdpStream  = new FileInputStream(xdpFilename);
       ByteArrayOutputStream templateSourceOutputStream = new ByteArrayOutputStream();
       IOUtil.write(xdpStream, templateSourceOutputStream);
IWDPDFDocumentCreationContext pdfContext =     WDPDFDocumentFactory.getDocumentHandler().getDocumentCreationContext();
                  pdfContext.setTemplate(templateSourceOutputStream);
       pdfContext.setData(WDInteractiveFormHelper.getContextDataAsStream(wdContext.nodeOrderTemplate()));
       IWDPDFDocument pdf = pdfContext.execute(); //the PDF is created
       ByteArrayOutputStream pdfOutputStream = new ByteArrayOutputStream();
       IOUtil.write(pdf.getPDFAsStream(), pdfOutputStream);
       String pdfFileName = "OrderTemplate.pdf";
       FileWriter fileWriter = new FileWriter(pdfFileName);
       fileWriter.write(pdfOutputStream.toString());
       fileWriter.close();

Once again thanks Steven,
I don't think I've explained my self in the right way.
In GeneratorText_en.properties I can see these definitions:
SAVE_BUTTON_LABEL = &Save
could you please explain if "&Save" is the end value (in that case what means the "&") or a reference to a variable where the global definition of "&Save" is defined. If its a reference one could only change the value once instead of changing it several times.
SELECT_TITLE = Select {0}
Whats the porpoise of {0} ?
Regards,

Similar Messages

  • Question about text rendering in flash authoring tool and in flash player.

    Hi everyone, i have found that:
    1. There has a subtle difference between a static text field in flash authoring tool which has been set to use the device font when it's got focus(state that user can type character in) and lose focus;
    2. There also has a subtle difference between when it is being rendered in flash player and in flash authoring tool.
    (Note that the key factor here is setting the text field to use device font.)
    I want to know  what causes this difference. Thanks in advance!

    both in flash authoring tool not flash player.

  • Java2D text rendering quality

    Dear all,
    I am currently trying to get high quality rendering for monochrome text, targeting epaper viewers. I draw strings into a BufferedImage, and display it on my LCD monitor in order to quickly check the rendering quality, before transferring it to epaper. I am encountering some disappointing surprises using Java2D, and cannot get a good output quality:
    - TextAttribute.WEIGHT produces only 2 different renderings, regular or bold.
    - Fonts appear very very light for sizes up to 17pt, and suddenly appear bold at 18pt+ sizes
    I am working under Windows XP SP 2, with JDK 1.6.0. Here follows a small piece of code illustrating the second problem. When comparing output with Photoshop or Fireworks outputs, the results are really disapointing, and I am sure that I am missing something...
    Thanks in advance for any help/tip.
    Sincerely,
    Jean-Marie
    import javax.swing.*;
    import java.awt.*;
    import java.awt.font.FontRenderContext;
    import java.awt.font.TextLayout;
    import java.awt.font.TextAttribute;
    import java.awt.image.BufferedImage;
    import java.text.AttributedString;
    public class TextRendering extends JPanel {
        private static final int WIDTH = 2000;
        private static final int HEIGHT = 8000;
        private static final int MIN_SIZE = 13;
        private static final int MAX_SIZE = 72;
        private static final int STEP = 1;
        private BufferedImage buf;
        public TextRendering() {
            setMinimumSize(new Dimension(WIDTH, HEIGHT));
            setPreferredSize(new Dimension(WIDTH, HEIGHT));
            buf = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_BYTE_GRAY);
            Graphics2D g2d = (Graphics2D) buf.getGraphics();
            g2d.setColor(Color.WHITE);
            g2d.fillRect(0, 0, WIDTH, HEIGHT);
            g2d.setColor(Color.BLACK);
            g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);
            g2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
            g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
            // g2d.setRenderingHint(RenderingHints.KEY_TEXT_LCD_CONTRAST, 250);
            FontRenderContext frc = g2d.getFontRenderContext();
            Font f = new Font("Arial", Font.PLAIN, 24);
            int y = 20;
            for (int i = MIN_SIZE; i <= MAX_SIZE; i += STEP) {
                String s = new String(i + "pt- I would like to get a better rendering ! ");
                AttributedString attText = new AttributedString(s);
                attText.addAttribute(TextAttribute.FOREGROUND, Color.black);
                attText.addAttribute(TextAttribute.FONT, f.deriveFont((float)i));
                TextLayout textlayout = new TextLayout(attText.getIterator(), frc);
                textlayout.draw(g2d, 10, y);
                y += i + 10;
        public void paint(Graphics g) {
            Graphics2D g2d = (Graphics2D) g;
            g2d.drawImage(buf, 0, 0, null);
        public static void main(String[] args) {
            JFrame f = new JFrame("Text rendering demo");
            f.getContentPane().add(new JScrollPane(new TextRendering()), BorderLayout.CENTER);
            f.setSize (600, 800);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setVisible(true);
    }

    Of course, the same rendering problem can be observed with the more sophisticated "Font2DTest" example which can be found in the JDK samples: with the Arial font, the text becomes "semi-bold" starting from 18pt size, whereas it is very light for sizes up to 17pt.
    Thanks again for any help.
    Jean-Marie

  • Fireworks CS6 text rendering is a disaster

    This is text rendered in Fireworks CS6 next to text of the same size produced by Paint.NET, with both using their default settings.
    And if we zoom in a bit:
    Can you guess which was produced by a product costing $300, and which was produced by a free utility?
    Seriously, is this a joke? There is no way I could use the garbage that CS6 is producing in production or to show to a client.

    It may be worth adding here that not every typeface will render well at a single, specific small size, like 10px. Particularly at small sizes, different typefaces have different "sweet spots". So a typeface that renders horribly at 10px may actually look quite decent at 9px.
    JonR001: If you don't have it already, I highly recommend The Complete Manual of Typography by James Felici (published by Adobe Press!). It's extremely thorough yet readable. I purchased a second-hand 2003 edition at my local bookstore as the more recent updated version seemed to disappoint a lot reviewers.
    I suspect that what you're noticing is, in part, an outcome of history. As I understand it, Adobe built its empire on print and making technology that allowed for the production of high-quality print materials. The computer display was just a weigh station in that process, not the final goal. By contrast, Apple and Microsoft have always placed a higher priority on the actual screen output. It seems that Adobe has yet to come up with a way to incorporate both worlds within their software, in terms of typographical output. They're still hanging on to their successful, print-based system.
    Let's also keep in mind that, for screen output, it's better to use actual text—rather than an image of text—for at least two reasons, the first being accessibility, the second being type rendering.
    I've linked to this article elsewhere, but it's got some great insights into all that goes into rendering type on screen:
    http://www.smashingmagazine.com/2009/11/02/the-ails-of-typographic-anti-aliasing/
    Interestingly, while doing some quick studies on this, I noticed that Photoshop's interface uses 10px type, but with subpixel anti-aliasing:
    Yet Photoshop itself cannot produce this kind of output. (I suppose this is being generated by the Mac OS?)
    I also found that, within Fireworks, the CS5 default Custom Anti-Alias setting—8x Oversampling, 192 Sharpness, 64 Strength—seemed to produce the best results:
    Then, of course, there's the aliased type option, but that seems to be a sore subject.

  • Text rendering on MacBook Pro differs from PowerBook.

    It appears that various applications use a different text rendering technique on the MacBook Pro than on the Powerbook. Camino for instance uses sub-pixel rendering on the PowerBook but standard anti-aliasing on the MacBook Pro. So do Word and MSN and others.
    At first I thought it had something to do with the app being universal or not. But Camino is supposed to be a universal binary.
    Anyone has a clue about why this difference?
    (You can easily see if sub-pixel or standard rendering is used by zooming in with option-cmd-8. Standard rendering has only shades of gray. Sub-pixel rendering uses colors. More on OS X text rendering can be found here: http://daringfireball.net/2003/11/panthertextrendering.)

    First, I wonder - does it look good or bad? Or, is this simply a comment that it is different?
    Second, and I'll bet this is your answer, is that the difference is most likely due to the type of video card being used. I notice that nothing effects rendering of fonts like the type of video card.
    I am interested because I will be doing lots of text work on my MBP, and would like to know if there is an issue with this. I had a notebook (Toshiba) about three years ago that the text was soft and nothing I could do would make it sharper. I ended up dumping the notebook and getting something else. MS Cleartype seems to work to some degree in Windows machines, but I don't see anything like that on my PB. However, the PB is fine as it...
    Bob

  • Static Text to Strings

    HI,
    I am simply trying to obtain the static text from a field (BP Name on Business Partner Form) and convert it to string as part of a message.
                    Dim oBPString As String
                    Dim oItem As SAPbouiCOM.Item
                    Dim oBPForm As SAPbouiCOM.Form
                    oBPForm = oApp.Forms.GetForm(134, 0)
                    oItem = oBPForm.Items.Item(7)
                    oBPString = oItem.Specific
                    oApp.MessageBox(oBPString" additional text")
    How do I display/convert current edit box items text to a string for such purposes?

    Hi,
    Use the String.Format method. Otherwise use "7" instead of 7
            Dim oBPString As String
            Dim oItem As SAPbouiCOM.Item
            Dim oBPForm As SAPbouiCOM.Form
            oBPForm = oApp.Forms.GetForm(134, 0)
            oItem = oBPForm.Items.Item("7")
            oBPString = oItem.Specific
            oApp.MessageBox(String.Format("{0} additional text", oBPString))
    or in one line
    oApp.MessageBox(String.Format("{0} additional text",
    oBPForm.Items.Item("7").Specific.string))
    Regards
    J.
    ps: do not forget the points....
    Edited by: Janos  Nagy on Jul 23, 2008 3:14 PM

  • Static text in ALV Report

    Hi,
    I have a requirement to create an ALV report which has to display some static text on each page. In the format below, the line item texts and sub total texts will be the same for each page. Each page displays data for one company code. The company code should be displayed on the top of page.
    Line Items    Sub totals          Amounts
    Line item 1                              Amt1
    Line item 2                              Amt2
    Line item 3                              Amt3
                            Sub total          1-3
    Line item 4                              Amt4
    Line item 5                              Amt5
                            Sub total        1-5           
                                                 Total
    1. How to display the same item texts on each page? Can I use text symbols to avoid hard coding?
    2. How do I get sub totals?
    3. Display company code on top of page according to the viewed page?
    any sample code greatly appreciated.
    Thanks,
    MJ

    Hi,
    I have a requirement to create an ALV report which has to display some static text on each page. In the format below, the line item texts and sub total texts will be the same for each page. Each page displays data for one company code. The company code should be displayed on the top of page.
    Line Items                       Amounts
    Line item 1                        Amt1
    Line item 2                        Amt2
    Line item 3                        Amt3
    Sub total                             1-3
    Line item 4                         Amt4
    Line item 5                         Amt5
    Sub total                            1-5           
       Total                               1-5
    1. How to display the same item texts on each page? Can I use text symbols to avoid hard coding?
    2. How do I get sub totals?
    3. Display company code on top of page according to the viewed page?
    any sample code greatly appreciated.
    Thanks,
    MJ

  • Need to have static text on every page of a MS Excel report exported from SSRS

    I need to place an object with a brief static text message in a report using SQL Server Reporting Services 2008 R2.
    When that report is exported to MS Excel from Report Manager and viewed, this static text object must appear "once" at the bottom of every page without using "print preview."
    Furthermore, it must appear only "once" on every page regardless of both the number of groups as well as the number of records in each group.
    Thanks in advance.
    Sincerely,
    Mike

    Hi Mike,
    By default, Excel does not have a concept of a "page" in "Normal" view. So when we export the report to excel and open the file, Excel automatically hides the footers as they are displayed in "Normal" view. Since this issue is relevant to Excel, if we want
    to see the page footer in Excel, we can try to switch to "Page Layout" view in the View Tab. Just as you said, they also shown up while printing.
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Displaying user selection from drop down list in static text on master page

    Hello,
    I am using LC 7.0 at workk and I have hit a road block.
    I have a drop down list at the top of the form. Once the user makes a selection, I want to take that value and paste it in static text located on the master page. I can't seem to get it to work.
    Please help!!!

    Hi,
    Place the Drop Down list on form
    Place text object(s) on master page
    here is the script to display the value and/or text of drop down
    Script will be on Drop Down list events
    Calculate event to display value of DD - FormCalc
    form1.pageSet.Page1.StaticText1.rawValue = this.rawValue;
    Change event to display Text of DD - JavaScript
    form1.pageSet.Page1.StaticText2.rawValue = xfa.event.newText;
    SAVE the form as dynamic pdf.
    Hope this will help.
    Thanks,
    Raghu.

  • How to use formatted text in a static text/laben(or other) component?

    Hello everyone,
    my web application reads a VARCHAR from a SQL Server database which is bound to a static text/label component. The problem is that I don't manage to include line breaks this way.
    Is there any way to do it? It doesn't have to be using a static text or label component, I just want to display formatted text on a web page which was read from a database.
    Thank you very much for your help,
    Arthur

    unfortunately it doesn't work this way(or I am doing it wrong as I don't know anything about css)
    If I set white-space: nowrap the text is displayed in one single line ( so probably I implemented it the right way)
    but with white-space:pre he still ignores all the whitespaces!
    reading the same text (from a microsoft sql server table)with a textarea component all whitespaces and line breaks are shown! there has to be a way to make the static text or label component act this way(I don't want to use the textarea component because it's ugly and doesn't serve for my purpose).
    can anybody help me?
    edit: observation:
    if I use "nowrap" for the textarea component he still keeps all whitespaces WITHIN the string but displays the whole string in one line
    but somehow he deletes white spaces in the beginning of the string
    the static text/label components delete all whitespaces before AND within the string
    Edited by: Arthur... on Feb 15, 2008 9:34 AM

  • Adobe form -- Issue in Displaying Dynamic text along with Static text

    Hi All,
    I am having an issue when i am displaying a dynamic text along with static text in adobeforms.
    The dynamic text is slightly coming down and not aligned with the static text. i can see half row it is coming down.
    how to align both texts to be printed in same format.
    Request all of your expert advices in achieving this .
    Thank you in advance.
    Thanks&Regards,
    Phani Miriyaila.

    Hi,
    Select both dynamic and static text in the layout. Goto Object palette -> Layout. Give values to X,Y coordinates and Height & Width. Anchor properly and specify margins as well.
    Select both dynamic and static text in the layout. Right click on it and goto palettes -> Paragraph. It gives you the text alignment options. Align the text and give similar font and size.
    Thanks & Regards,
    Sanoosh

  • Presentation Variable in Legend or Static Text

    Hi Experts,
    Is it possible to call the Presentation variable in Legend or Static Text View.
    Please let me know how can I achive this.
    Thanks,
    Balaa...

    Take a look at this. It shows you where you can use session, repository and presentation variables and their syntax:
    http://shivabizint.files.wordpress.com/2008/10/obiee-variables-overview.jpg

  • Feature Request: Option to wrap static text.

    It would be really nice (in fact, demanded by my current client) to be able to have multi-line static text that appears as a paragraph. Unfortunately, static text is one-line and either stretches out the width of the entire dialog box if you let it or is truncated if you don't.
    Present work-around is to force line-breaks, but that makes for some funny looking alignment, which may not be so "funny" when you see it on the "other" platform...
    Thanks,
    Rob

    I faced the same issue today.  I discovered the "wrap" property applies to static_texts as well as edit_fields.   It doesn't appear to be documented at all in the SDK API Reference, while it is documented in the SDK Programmers Guide as applying to edit_fields but not static_texts.  Here's a test program illustrating its use:
    local LrDialogs = import 'LrDialogs'
    local LrFunctionContext = import 'LrFunctionContext'
    local LrView = import 'LrView'
    local f = LrView.osFactory()
    local text = [=[Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed feugiat quam nec mauris auctor dignissim eu sit amet sapien. Nullam scelerisque lacus libero. Donec iaculis lacinia viverra. Nulla suscipit viverra condimentum. Nam id diam metus, non ullamcorper justo. Curabitur mollis urna sed ligula molestie ullamcorper convallis nisl adipiscing. Suspendisse blandit lobortis risus non laoreet. Proin dictum, nulla a varius faucibus, enim elit pharetra tortor, a commodo mi nulla et leo. Cras in varius odio. Donec erat neque, bibendum at elementum sit amet, tincidunt a nunc. Donec tincidunt aliquet libero non vulputate. Proin eget nibh ante. Curabitur tincidunt felis quis turpis.]=]
    LrFunctionContext.callWithContext ("test", function (context)
        text = string.gsub (text, "%c", " ")
        LrDialogs.presentModalDialog {title = "Test", contents = f:column {
            f:edit_field {value = text, wrap = true, width_in_chars = 40,
                height_in_lines = 10, enabled = false},
            f:static_text {title = text, wrap = true, width_in_chars = 40,
                height_in_lines = 10}}}
        end)

  • Inserting static text in between rows returned from a pivot table

    Is there a way to type static text (eg. “Note that the data for Land has an accuracy of 98%”) in between rows returned from the dataset in the rtf template. The alternative would be to break the BI analysis report (which is the source of the template data) into 2 parts and then insert each part into the template one below the other with the text typed in between.

    Oracle support has confirmed that this requirement is not possible to implement

  • How to add long text for existing static text in Adobe forms.

    Hi all,
    I have a requirement that I need to add  a long text for existing Static text in my adobe form
    1) Counter part inputs
    2) Mack Inputs.
    These two are static texts, I need to add the long text in the following manner.
    1)Counter Part Inputs(zds220)
    2)mack Inouts(zds340)
    Please suggest me how to do it.
    Thank You.
    Suneel.

    Hi Nitin Sikka,
    Thanks for your reply. I found solution for the above issue. I need to change the text to text field and  binding to that text field.
    Thank You,
    Suneel.

Maybe you are looking for