READ_TEXT: format problem when printing to PDF

Hello everybody,
I am using READ_TEXT function module to get long text then display to PDF format.
I met a problem with format as following:
The long text has bold format, for e.g.: This is bold text.
The READ_TEXT FM will then read the data as: <H>This is bold text.</>
When output to PDF instead of display as This is bold text., it is displaying <H>This is bold text.</>
Please suggest me how to fix this.
Thanks,
Khanh

Hi Khanh ,
Below is the sample code for your reference .
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'ZG01'
LANGUAGE = 'EN'
NAME = TH_INDATA_F01-VBELN_A
OBJECT = 'VBBK'
IMPORTING
HEADER =
TABLES
LINES = TD_LINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
Here lines = td_line refers to Lines of text read
The table contains all text lines belonging to a text module. The line structure is defined in table TLINE. The line contents are stored in ITF format.
Hope this helps you .
Regards ,
Navya .

Similar Messages

  • Rendering Problem when printing to PDF using PDFCreator.

    When I print my report to PDF using PDF Creator it overlays the text over itself vs when i export to pdf and then print it prints it fine, can anyone enlighten me as to why it does this?

    Hi Raudel,
    According to your description, you can export the report to PDF and print it well. However, when you print the report directly to PDF with PDF Creator, fields are overlapping.
    Since you mentioned the report can display correctly after you export the report to PDF then print it, we can make sure the PDF rendering can work fine with reporting services. So it should not be the issue in Reporting Services. As we tested in our environment,
    when print the report directly to PDF with PDF Creator, report also display well. In your scenario, it supposed to be issue with PDF Creator. I suggest you contact the PDF Creator vendor to get some more effective advices.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • Problem when printing from PDF created by InDesign

    Ok, here's the scenario!
    I have a flyer, created in InDesign. I have drawn a grey curve (in InDesign) which goes at the top of each page.
    I import a transparent logo in PSD format, and place it on top of the grey curve.
    In InDesign and when I PDF it, it looks fine (at any zoom level).
    However when I print it, there is a slight outline around the transparent logo and it has a slightly different shade of grey as its background (it stands out from the curve).
    Does anyone know why this could be?  I also tried importing the logo with the same grey background as in InDesign but the same problem occurs.
    Any help appreciated!

    If you can't select composite CMYK it means your printer isn't postscript, or you aren't using the postscript driver option if one is available.
    Since this is a printer-related function, not a property of the file itself, you don't want to do anything to your pdf to compensate. That's the printer's job, if necessary, when he processes your PDF.

  • Margins problem when printing to PDF (Pages '09 v4.0.3 build 766)

    Hi,
    I don't know if this is connected to the latest Mac OS X v10.6.4 update, but some of my machines exhibit a very curious behaviour.
    + multiple pages A4 document
    + choose File > Print, click on "Save as PDF", under the PDF button
    ++ set pages 6 & 7 to print
    ++ set 2 pages per spread, so as to have Pages shrink the A4 document to somewhat A5, and have the two pages side-by-side on the same sheet
    ++ save the PDF
    Then, when I open the PDF with Preview, the margins are all wrong (i.e. too big, there's too much white running around).
    And from Preview's inspector, I can tell that the Page Size is set to US Letter, although in Pages both the document size AND the Printing Format are set to A4.
    The most curious part of the story is that my MacPro, my work MacBook Pro 13 and a white MacBook exhibit the problem, whereas my personal iMac 27" DOES NOT.
    And they are all running Mac OS X v10.6.4, with ALL the most recent updates, and the exact same version of Pages!!!
    I suspect that something has been changed in a framework somewhere, but I cannot figure out what it is...
    Any idea is welcome!
    Thanks,
    K2r

    I can do the same in TextEdit (although it's even more painful to control the margins!!).
    My problem is not that Pages won't put pages on one sheet; It's that the generated PDF does not respect the sheet physical size (A4 vs. US Letter), thus adding wider margins all around the document.

  • Color problems when printing from PDF created in Pages

    I have created a newsletter in Pages, and have used the Export > PDF so that the file can be sent to a professional printer.  One of the graphics (created by an outside graphic designer and put into my Pages document as a jpg file) prints in all sorts of bizarre colors - nothing like how it displays on the screen.  Is there some sort of color formatting that I can do to make it print in the correct color?

    The Pages pdf will have many more problems than this case of mismatched color profiles.
    Unless you really know what you are doing avoid using Pages for commercial output. For a start all your bitmaps will have been rendered to a too low 72dpi resolution.
    Peter

  • Problem when printing a PDF file

    I am currently using Pagemaker 7 and after I create a PDF file and then email it to my client, the image shrinks when they print it out on their printer. If I print that same PDF file on my printer it does not shrink. Can anyone explain why this happens and how I can correct this problem? Would be must appreciated.

    Screen captures are a good way to show people how to set page scaling to none
    Jay

  • Formatting problem when transform to PDF

    Hi all,
    I've found a problem with program RSTXPDFT4 and functions CONVERT_ABAPSPOOL ... and CONVERT_OTFSPOOL...
    I want to convert to PDF the spool generated by a report using "classic" list programming (write and so on).
    Output format is x_65_132, which is ok while I'm in SAPGUI, but when transforming it with report RSTXPDFT4, I get a PDF file in a x_65_80 (I think) format, so I'm having half of my list cut.
    I've searched for notes and forums, and I found nothing about this.
    Any Ideas? Is this a limitation of these FM's? Is there any other way of converting a list spool into PDF?
    Thanks in advance,
    Rafa

    Hi all,
    yesterday I went home and I tried the same in the MIniWas I have installed in my laptop, and the result was exactly the same!!
    The test I made was: run a program in online mode, generate a spool request, and then use standard program RSTXPDFT4 to convert this request into a PDF file.
    The report is defined as 65 x 132 (which should be landscape),  but the PDF file appears in portrait (65 x 80 I presume).
    I think the problem is in the funcions CONVERTxxx_SPOOLJOBxxx.
    Did anybody have this problem? Should I think that it's not possible to convert list output spools to PDF???
    Here is the code I used at home in the report.
    REPORT  z_test_list NO STANDARD PAGE HEADING
                        LINE-SIZE 132
                        LINE-COUNT 65
                        MESSAGE-ID zzrn_msj.
    * tablas **********************************************************************
    TABLES: usr01.
    * variables globales **********************************************************************
    DATA: aux_usr     TYPE bapibname-bapibname,
          wa_address  TYPE bapiaddr3 ,
          it_profiles TYPE TABLE OF bapiprof,
          wa_profiles TYPE bapiprof,
          it_groups   TYPE TABLE OF bapiagr,
          wa_groups   TYPE bapiagr,
          it_return   TYPE TABLE OF bapiret2,
          wa_return   TYPE bapiret2,
          resto       TYPE i.
    * pantalla de selección **********************************************************************
    SELECT-OPTIONS: so_usr FOR usr01-bname.
    TOP-OF-PAGE.
      FORMAT COLOR COL_HEADING.
      WRITE: /01 'LISTADO DE CARACTERISTICAS DE USUARIOS DEL SISTEMA ', SY-SYSID.
      ULINE.
      FORMAT COLOR COL_TOTAL.
      WRITE: /01 'Fecha del listado:', sy-datum, ' -- ', sy-uzeit.
      ULINE.
      SKIP 1.
    START-OF-SELECTION.
      SELECT bname
        INTO aux_usr
        FROM usr01
        WHERE bname IN so_usr.
        CALL FUNCTION 'BAPI_USER_GET_DETAIL'
          EXPORTING
            username             = aux_usr
    *     CACHE_RESULTS        = 'X'
        IMPORTING
    *     LOGONDATA            =
    *     DEFAULTS             =
          address              = wa_address
    *     COMPANY              =
    *     SNC                  =
    *     REF_USER             =
    *     ALIAS                =
    *     UCLASS               =
    *     LASTMODIFIED         =
    *     ISLOCKED             =
          TABLES
    *       PARAMETER            =
            profiles             = it_profiles
            activitygroups       = it_groups
            return               = it_return
    *        ADDTEL               =
    *        ADDFAX               =
    *        ADDTTX               =
    *        ADDTLX               =
    *        ADDSMTP              =
    *        ADDRML               =
    *        ADDX400              =
    *        ADDRFC               =
    *        ADDPRT               =
    *        ADDSSF               =
    *        ADDURI               =
    *        ADDPAG               =
    *        ADDCOMREM            =
    *        PARAMETER1           =
    *        GROUPS               =
    *        UCLASSSYS            =
    *        EXTIDHEAD            =
    *        EXTIDPART            =
    *        SYSTEMS              =
        LOOP AT it_return INTO wa_return WHERE type EQ 'E'.
          resto = sy-tabix MOD 2.
          IF resto = 0.
            FORMAT COLOR COL_NORMAL INTENSIFIED ON.
          ELSE.
            FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
          ENDIF.
          WRITE: /01 'ERROR' COLOR COL_NEGATIVE, wa_return-message.
        ENDLOOP.
        CHECK sy-subrc NE 0.
        WRITE: /01 'DATOS DEL USUARIO' COLOR COL_GROUP INTENSIFIED ON.
        ULINE.
        FORMAT COLOR COL_NORMAL INTENSIFIED ON.
        WRITE: /01  sy-vline, space,  aux_usr(10), space, sy-vline, space, wa_address-fullname(50), space, sy-vline, space, wa_address-e_mail(50), space, sy-vline.
        ULINE.
        FORMAT COLOR COL_NORMAL RESET.
        SKIP 1.
        WRITE: /01 'PERFILES ASIGNADOS' COLOR COL_GROUP INTENSIFIED ON.
        WRITE: /01(87) sy-uline.
        LOOP AT it_profiles INTO wa_profiles.
          resto = sy-tabix MOD 2.
          IF resto = 0.
            FORMAT COLOR COL_NORMAL INTENSIFIED ON.
          ELSE.
            FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
          ENDIF.
          WRITE: /01 sy-vline, space, wa_profiles-bapiprof, space, sy-vline, space, wa_profiles-bapiptext, space, sy-vline.
        ENDLOOP.
        WRITE: /01(87) sy-uline.
        FORMAT COLOR COL_NORMAL RESET.
        SKIP 1.
        WRITE:  /01 'ROLES ASIGNADOS' COLOR COL_GROUP INTENSIFIED ON.
        WRITE: /01(125) sy-uline.
        LOOP AT it_groups INTO wa_groups.
          resto = sy-tabix MOD 2.
          IF resto = 0.
            FORMAT COLOR COL_NORMAL INTENSIFIED ON.
          ELSE.
            FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
          ENDIF.
          WRITE: /01 sy-vline, space, wa_groups-agr_name, space, sy-vline, space, wa_groups-agr_text, space, sy-vline.
        ENDLOOP.
        WRITE: /01(125) sy-uline.
        NEW-PAGE.
      ENDSELECT.

  • Formating problems when printing from googlemail text program

    I often use the text program in my google mail account to write letters. However when I click on print preview the format is altered in an undesireable way.
    How can I avoid such unwanted format changes?

    volpe75 wrote:
    Please note that google text program uses Adobe for print preview and printing.
    They "may" use it for the viewing end of things but the formatting end is all theirs and doesn't involve Adobe Reader. Reader just views the end product.

  • Problem with page breaks in IE when printing to PDF

    Hey,
    I am having formatting issues with IE when printing to pdf, I have a dynamically created report which has page breaks at the end of each page, if I open this report(report is in html) in firefox and goto print the formatting is correct, if I open the same report in IE and print the report 80% of the pagebreaks are in tact, 20% are ignored which just makes the report look rubbish, my question is,( I know it not directly related to the reader but was unsure on which forum to post) is there a different css or formatting I should use to make IE play ball.
    Cheers
    Tom.
    the style I use to insert pagebreak is
    <code>
    .breakhere {page-break-before: always;}
    code I then use to implement it is.
    <TABLE BORDER=0 WIDTH=100% CELLSPACING=0 CELLPADDING=0 CLASS="breakhere">
    </code>

    You may use a forum for IE.

  • Bad crash when printing to pdf in Morningstar software - is it a 64 bit problem?

    Had bad crash when printing to pdf in Morningstar Principia Pro software - is it a 64 bit compatability problem? All other software I have can print
    to Acrobat pdf, but in Morningstar the Window 7 PC freezes and not even Task manager can
    unfreeze the computer. Acrobat worked fine in my old XP 32 bit PC when printing from Morningstar. Recently a webinar using
    an Adobe webinar software I was told I must only use a 32 bit browser, so I suspect Acrobat is incompaitble with my new 64 bit PC. Work around solution is to print to Microsoft XPS and then convert to Acrobat but I want to use Acrobat only! Is there a patch for people using 64 bit PCs?
    Can someone at Adobe respond to me, please? I have used Acrobat for over 10 years and am very loyal.

    Michael: I have tested other programs ability to print to Acrobat and also tested ability for other programs to
    export to Excel or Word. The only crash is when printing an Acrobat pdf from Morningstar Principia Pro I get a bad crash. The work around is to print to XPS and then convert the XPS file to Acrobat pdf. To get out of the crash which can't be fixed by Windows Task Manager shut down, is to open the printer file and tell the printer to delete the pending print job.
    I'm using latest Version 9.3.4 Standard Acrobat; Win 7 Pro 64 bit, 10 g of RAM, HPE 390t standalone PC, no networking.

  • Margin problem when printing on ipad from pdf app

    On 4500g there is no top margin and very small left margin when printing from pdf printer app on my ipad. Where can i set margins before printing?

    Hello Leonie1938,
    Welcome to the HP Support Forums!
    If I understood correctly, you are printing from an iPad to the Officejet 4500 G510g using a .PDF printer App. If this is correct, what is the App name? I searched and found an App called PDF Printer for iPhone for $2.99, is this the App?
    If you are not using a HP App, all I can offer is to clean the rollers on the printer. This is best done by following steps here: The All-in-One Does Not Pick Up or Feed Paper, Solution four.
    Cheers,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • "Problem When Printing" error on Mac Mini

    Hi all,
    I just recently updated my Mac Mini from 10.3 to 10.4. Instead of Archive and Install I formatted and did a clean install.
    I have my printer set up, however whenever I try and print anything from any application I get a very unhelpful "Problem when printing" error, and nothing prints.
    I also get the same error when trying to save to PDF.
    My printer is a HP Deskjet 3750, and the driver is the one included with 10.4 (as per HP's instruction), but I don't think it's a driver problem as Save to PDF gives me the same error.
    I've already tried repairing permissions. Anyone know what could be causing this. Any help is greatly appreciated.
    Thanks.

    Bugger. PSR is often a winner
    You could try installing Gutenprint 5.0.1 available from Sourceforge (it's about 15MB). It's an updated version of the included GIMP-Print drivers and may repair/replace/install some of the core files. Otherwise you may have to contact Apple and see if you can get 10.4.9 mailed to you.

  • Format Changes when Exporting to PDF

    I'm using Crystal 12.0 and have an issue very similar to these threads listed below. 
    While viewing a report on my development machine, all is fine.  I can export to PDF and the formatting is OK. 
    However, when the report is exported to PDF on the web server, the spacing between some of the text is off.  The spacing is used for a CrossTab cell in a "Display String" that I changed using "Format Field."   All that's supposed to happen here is several spaces are used to move the text under the proper column. 
    When exporting to PDF on the web, the text moves over to the left like it's missing some of the spaces.  I wondering if the below threads apply to Crystal 12.0. 
    Thread:1220516 and
    Format Changes when Exporting to PDF
    Thanks kindly for your assistance,
    -Marty

    I'm having a very similar problem using Crystal Reports for Visual Studio 2008. Everything is perfect when running in VS 2008, it takes the report and exports it to PDF format via VB code. The PDF file is idenitcal to the report. However, when run on the server the one page report (when exported to PDF) gets chopped into ten 4x4 chunks. So the PDF file is 10 pages....its like puzzle pieces of the original.
    I've drawn a bunch of lines on the report to look like boxes - perhaps this is causing issues? The font on the report is Arial.
    The server has the 10_5 runtime installed and it is set to the same default printer as the development PC. I have been stuck on this for days and would really appreciate any advice you may have.
    Thanks!
    Edited by: WanderingEye on Sep 18, 2009 4:54 PM

  • Problem with printing a PDF

    Hi All,
    I'm developing a web application written in J2EE that uses Java Reporting Component (JRC) to display crystal reports from some filters recovered from a jsp and passed to a report .rpt previously designed and invoked just at runtime.
    I have a problem with printing a PDF:
    I want, after entering the filters in a jsp, to print a report in PDF format (WORD) without opening it
    with Adobe Reader (Microsoft Word). The class of API JRC used for export is ReportExportControl.
    Can anyone help me?
    I wish a great day to You all.

    Hi Ted Ueda,
    sorry for the delay of my answer.
    I understand very well the problems related to security.
    With the following code that I used to produce a report (PDF) at runtime,
    is the PDF created on the server and then sent to the client, or is it directly created on the client as PDF
    from RTF previously realized?
    ReportExportControl exportControl = new ReportExportControl();
    String report = report path;
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(report, OpenReportOptions._openAsReadOnly);
    Object reportSource = null;
    reportSource = reportClientDoc.getReportSource();
    //The method setConnectionProperties() stores all the connection parameters in the collection
    //ConnectioInfos
    ConnectionInfos connInfos = setConnectionProperties(request, reportClientDoc);
    exportControl.setEnableLogonPrompt(false);
    exportControl.setEnableParameterPrompt(false);
    exportControl.setReportSource(reportSource);
    exportControl.setDatabaseLogonInfos(connInfos);
    //Single method to pass parameters to Crystal Reports. Using classes ParameterFieldController and
    //ParameterFieldDiscreteValue
    setReportParametersValue(reportClientDoc, reportParameters, subReportParameters);
    ExportOptions exportOptions = new ExportOptions();
    //Set the export format (PDF)
    exportOptions.setExportFormatType(ReportExportFormat.PDF);
    PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
    exportOptions.setFormatOptions(PDFExpOpts);
    exportControl.setExportOptions(exportOptions);
    exportControl.setExportAsAttachment(true);
    try {
          exportControl.getHtmlContent(request, response, getServletConfig().getServletContext());
    } catch (ReportSDKExceptionBase e) {
    throw new ApplicationException("error code", ": error message"); }               
    As, however, I predicted in my previous message about the direct printing on the client,
    I read about ActiveX, but I don't know how to use them.
    I read this information in the 'Crystal Reports for Eclipse Developer Guide' about "printMode" attribute:
    "In ActiveX print mode, an ActiveX control is downloaded to the client machine and the report is send directly to the printer...."
    The ActiveX alternative is a java applet that runs on the client and takes the pdf from the server and prints directly onto the clients through the commands that I used in the DOS command line:
    1)     AcroRd32.exe /p /h FILENAME
    where
    /p = print
    /h = hide window
    to print the report and
    2)     tkill AcroRd32
    to close Adobe Reader, because it doesn't end automatically after printing and the command  /h  is used just to minimize the process.
    I hope you can give me advice because I need to print directly on the client. Thank you

  • Missing images when printing to pdf from Word

    When printing to pdf from MS Word 2003 in some cases textboxes and/or images disappear in the target PDF, depending on their position.
    Word and Acrobat Standard are the latest updates. If the Word text is converted on a Mac the target pdf has the images present, so it looks like it's a Windows only problem. Any suggestions where to start looking for a fix?

    You may have to turn on "display large images" in the preferences.

Maybe you are looking for

  • How can I import passwords from old profile?

    I had problems with my laptop last week (not booting), and I managed to save some stuff from the hard drive before re-installing Windows. Now that I'm up and running again, I'm not sure how to import passwords since Firefox seems to have changed quit

  • Faxing problem - no modem

    For the first time since I have had this iMac (IntelCore2 Duo), I tried to send a fax. Unsuccessfully. FAXstf application is installed but System Profiler (Network - modem) says 'No information found'. My Print & Fax preferences show a FAXstf icon in

  • Ps cc2014 change in getTextProc will crash plug-ins

    An incidental change in the implementation of the photoshop binary API, will break indefinite numbers of third party plugins in unpredictable ways.  One common thread in the expected failures is that they will not occur the first time a filter is use

  • New Image saving problem

    Hi, I have to write some things to a servlet (extends HttpServlet) as well as to draw images and save as gif to be displayed in the servlet. I have accomplished up to generating a file, but the file is 0kb. Can anyone give me a suggestion? These are

  • Video Rendering Error -50

    When ever I try to share my video off of iMovie it says "The share operation has failed, video rendering error -50" I have tried to search up on how to fix this and have found nothing. I am using the latest software update and have iMovie updated. Al