Converting from XML to pdf: looping in XSL FO

I have a set of data which is dynamic.i.e the no. of rows is unpredictable.
So, I want to use a <xsl:for-each . My code looks like:
<xsl:for-each select="parent::EC-REPORT/TITLE-HEADER">
<fo:block line-height="19pt" font-weight="bold" font-size="10pt" keep-together="always" text-align="center">
     <xsl:value-of select="."/>
</fo:block>
</xsl:for-each>
The block element in XSL FO is supposed to print the data in separate lines. But I see that all the data is coming continuously. Also I want to put multiple conditons using <xml:choose>. But when I use XML choose element, my data is not coming at all.
Thanks
susmitha

To preserve line breaks use white-space-collapse and linefeed-treatmenthttp://xmlgraphics.apache.org/fop/fo.html#fo-preformat

Similar Messages

  • Converting from xml to pdf

    Hi All
    This is Nitin, I have the requirement like this..
    I have xml and want to get pdf report on base of xml file.
    To do this i want to use .NET environment using c# from where i can call the template and supply the xml file and get my report. I am using windows plateform.
    From different sources i got a clue that Adobe Output designer and Certral pro server can solve the problem, but dont know how to proceed, becoz dont have evalution copy of the software.
    In the pdf report i have following requirement:
    - toc (table of content)
    - different types of graph (pie, bar etc)
    - populated from xml
    - different format report has to be generated using a master template depending on xml file and data.
    nitin

    We have started using Adobe Output designer and Central pro server recently to get PDF from XML .So far so good. This software was bought by our company. I have no idea abt the trial version.Contact Adobe/Four Point Solutions
    Silpa

  • How to convert from xml file to html using java code

    How to convert from xml file to html file using java code

    Get yourself Apache Xalan or Saxon or some XSLT processor
    String styleSheet = "/YourXSLTStylesheet.xsl";
    String dataSource = "/YourXMLDocument.xml";
    InputStream stylesheetSource = TransformMe.class.getResourceAsStream(styleSheet);
    InputStream dataSourceStream = TransformMe.class.getResourceAsStream(dataSource);
    OutputStream transformedOut = new FileOutputStream("filename.html");
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer(new StreamSource(stylesheetSource));
    transformer.transform(new StreamSource(dataSourceStream), new StreamResult(transformedOut));You'll also need to learn XSLT if you don't already know that. Here's a good place to start
    http://www.w3schools.com/xsl/

  • How to use .joboptions file while converting from Word to PDF

    Hi,
    I'm pretty new to Acrobat. I'm using Acrobat XI. I need to convert a word document to a PDF file which conforms to certain requirements described by a given .joboptions file. The .joboptions file can be opened by distiller, but as far as I know distiller is not invovled in the conversion (Word to PDF) process. So how can I make sure the converted PDF file meets the requirement described by the .joboptions file?

    Distiller is used when converting from Word to PDF, if you do it via the Acrobat panel, not the Adobe PDF printer or Word's internal Export to PDF command. If you've loaded your joboptions file in Distiller (via Settings - Add Adobe PDF Settings), then you will see it in the drop-down of Conversion Settings when you click the Preferences button in the Acrobat panel in Word.
    After you've selected your job options profile click the Create PDF button, and the file will be converted using the selected options.

  • After 9.3 update getting error printing to Adobe PDF while converting from Powerpoint to PDF

    That happened after upgrading Acrobat Pro 9.1.2 to 9.2->9.3 on Windows XP sp2 platform. Converting from other Microsoft Office 2003 products is totally normal(Excel, Word) Did anyone came accross and know how to fix that?? We have many users with exactly same issue.

    thanks...figured out my problem!
    Date: Wed, 3 Feb 2010 12:24:29 -0700
    From: [email protected]
    To: [email protected]
    Subject: Re: After 9.3 update getting error printing to Adobe PDF while converting from Powerpoint to PDF
    What happens if you try to print to the Adobe PDF printer?
    >

  • Hypertext links are not always preserved from Word to PDF, using Aperçu or Adobe, depending on OS 10 or Lion. Why? This generally works perfectly in Windows. Why are Apple and Adobe unable to correctly handle links when converting from Word to PDF?

    Hypertext links are not always preserved from Word to PDF, using Aperçu or Adobe, depending on OS 10 or Lion. Why? This generally works perfectly in Windows. Why are Apple and Adobe unable to correctly handle links when converting from Word to PDF?
    Depending on the system version, and Office Word version:
    - a pure URL link starting with http or even www sometimes works in PDF, either produced by Aperçu or Adobe, sometimes does not work;
    - other kind of links where the text under display is not a URL, never work!
    I like everything with Apple computers and software, except PDF generation. Output files are usually bigger in size, and no better quality, than under Windows. Furthermore, it is weird that something as common as hyperlinks does not work correctly!
    I related this question with Mac OS X Snow Leopard, but the problem is still there with Mac OS Lion.
    This problem seems to have been around for years, without any proper solution from Apple and/or Adobe! To me, this is very embarrassing!

    Greetings NoNameGiven,
    If I understand the problem correctly (I’m not sure I do) you would prefer ‘iii’ to be read as “eye eye eye” rather than “three”? The alt text property is the only way that I know of to make this happen. Hope this helps.
    a ‘C’ student

  • How to convert from image based pdf to text based pdf

    I have Adobe 9 Pro. How to convert from image based pdf to text based pdf? For example, if someone emails a scanned pdf to me, how do I convert that document into a text based pdf?

    To perform OCR, open the document and select: Document > OCR Text Recognition > Recognize Text Using OCR
    More information on the various options is in the Acrobat help doc.

  • How to convert from XML to Array ?

    how to convert from XML to Array ?
    thanks in advance

    this is a segment of the xml object:
    var myXML:XML =
    <data>
    <task>
    <taskID>2</taskID>
    <startDate>2/15/2007</startDate>
    </task>
    </data>
    i want to conver myXML into ArrayCollection: like this:
    private var expenses:Array = [
    {taskID:"1", startDate:"2/15/2007"},
    {taskID:"2", startDate:"4/15/2007"}
    how i can do it ? and tell me how to retrieve the data from
    the collection
    thanks

  • Converting from publisher to pdf

    When I convert from publisher to pdf my page size changes? Why? And how do I stop this from happening?

    Try in the Acrobat Print menu:
    I'd try choose paper source by PDF Page size
    Note appearance of the Print window will be different on PC although the Controls should roughly be the same.

  • Black Pages - Convert from Word to PDF

    When I convert a Word document to a PDF, the pages on the PDF document are black.  This only happens on select Word document that use a specific cover graphic.  I've sent the same document to a co-worker and they were able to convert the document to PDF with no issues.  I have verified my preferences with my co-worker and these are the same.  I have the latest version of Adobe Reader (10).  I was previously able to convert a Word document with the same graphic to PDF without any issues.  Any ideas on how to fix this?

    Adobe Reader can't convert from Word to PDF.

  • How to write adapter module to convert the xml to pdf file

    Hi all,
      how to write adapter module to convert the xml to pdf file.
    Please any body assist step by step procedure.

    PI 7.1 XML to PDF transformation
    have you seen below links:
    http://forums.sdn.sap.com/thread.jspa?threadID=1212478
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/14363

  • Since 11-4-14 every convert from Word to PDF has failed online or desktop - when will this be sorted

    Since 11-4-14 EVERY convert from Word to PDF either online or desktop has failed, when will this be fixed?

    No replies on here so went online and tried various options including "repair reader installation" plus uninstall and reinstall etc, some posts suggested a repair from the Printers file (Vista) so installed AdobeCreatePDF desktop printer plus Xerox Phaser PS printer as advised. All without any obvious sucess ie still no word docs converted after hours of trying. Then unexpectedly a further test convert attempt succeeded; tested again on desktop plus online and now all works fine as it did before. Who knows why - possibly only Adobe know. Will leave this thread here just in case the fail reappears over next few days!

  • Converting from SAPSCRIPT to PDF

    Sir,
    I am converting form from sapscript to pdf. The form is converting but the ouput font in pdf is seen in bigger size so the alignment is getting distorted. Kindly advise solution. I am in 4.6C
    Thanks & Regards

    Hi
    See the sample code and do accordingly
    REPORT zzz_jaytest .
    Types Declaration
    TYPES : BEGIN OF ty_pa0001,
    pernr TYPE pa0001-pernr,
    bukrs TYPE pa0001-bukrs,
    werks TYPE pa0001-werks,
    END OF ty_pa0001.
    Internal Table Declaration
    DATA : i_pa0001 TYPE STANDARD TABLE OF ty_pa0001, "For pa0001 Details
    i_otf TYPE STANDARD TABLE OF itcoo, "For OTF data
    i_content_txt TYPE soli_tab, "Content
    i_content_bin TYPE solix_tab, "Content
    i_objhead TYPE soli_tab,
    Work Area Declaration
    w_pa0001 TYPE ty_pa0001, "For pa0001 Details
    w_res TYPE itcpp, "SAPscript output
    "parameters
    w_otf TYPE itcoo, "For OTF
    w_pdf TYPE solisti1, "For PDF
    w_transfer_bin TYPE sx_boolean, "Content
    w_options TYPE itcpo, "SAPscript output
    "interface
    Variable Declaration
    v_len_in TYPE so_obj_len,
    v_size TYPE i.
    Constants Declaration
    CONSTANTS : c_x TYPE c VALUE 'X', "X
    c_locl(4) TYPE c VALUE 'LOCL', "Local Printer
    c_otf TYPE sx_format VALUE 'OTF', "OTF
    c_pdf TYPE sx_format VALUE 'PDF', "PDF
    c_printer TYPE sx_devtype VALUE 'PRINTER', "PRINTER
    c_bin TYPE char10 VALUE 'BIN', "BIN
    c_name TYPE string VALUE 'C:\ZZZ_JAYTEST.PDF',"Downloading
    "File Name
    c_form(11) TYPE c VALUE 'ZZZ_JAYTEST'. "Form Name
    START-OF-SELECTION.
    Selecting the records from pa0001
    SELECT pernr bukrs werks FROM pa0001
    INTO TABLE i_pa0001 UP TO 10 ROWS.
    Setting the options
    w_options-tdcopies = 1 ."Number of copies
    w_options-tdnoprev = c_x."No print preview
    w_options-tdgetotf = c_x."Return of OTF table
    w_options-tddest = c_locl."Spool: Output device
    Opening the form
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    form = c_form
    device = c_printer
    language = sy-langu
    OPTIONS = w_options
    IMPORTING
    RESULT = w_res.
    LOOP AT i_pa0001 INTO w_pa0001.
    Writting into the form
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'MAIN'
    window = 'MAIN'.
    ENDLOOP.
    Closing the form
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT = w_res
    TABLES
    otfdata = i_otf
    EXCEPTIONS
    unopened = 1
    bad_pageformat_for_print = 2
    send_error = 3
    spool_error = 4
    codepage = 5
    OTHERS = 6.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Converting OTF data to single line
    LOOP AT i_otf INTO w_otf.
    CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
    INTO w_pdf.
    APPEND w_pdf TO i_content_txt.
    ENDLOOP.
    Converting to PDF Format
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    EXPORTING
    format_src = c_otf
    format_dst = c_pdf
    devtype = c_printer
    CHANGING
    transfer_bin = w_transfer_bin
    content_txt = i_content_txt
    content_bin = i_content_bin
    objhead = i_objhead
    len = v_len_in
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    v_size = v_len_in.
    Downloading the PDF File
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = v_size
    filename = c_name
    filetype = c_bin
    TABLES
    data_tab = i_content_bin.
    If you r using this function module check it once....
    call function 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    max_linewidth = 132
    IMPORTING
    bin_filesize = v_len_in
    TABLES
    otf = i_otf
    lines = i_tline
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    others = 4.
    Fehlerhandling
    if sy-subrc <> 0.
    endif.
    or u can use the standard program RSTXPDFT4 to download the script into PDF format onto a particular location
    follow this link for sample program.
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1121833,00.html
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Hyperlink cross-references not converted from doc to pdf

    Hi,
    We are having some problems converting word documents to pdf. This is a standard part of our day to day work, we convert docs to pdf all the time. We use acrobat 7 professional and Office Professional 2003. The symptom is that hyperlinks are not all being converted in the pdf. The TOC is fine but after that the links do not always work. Right now i have downgraded a workstation back to adobe 6 professional and i'm running a conversion on that of one of our docs that doesn't convert properly. Otherwise i have tried all the settings in the conversion settings window, i have tried saving the doc as an xml first.
    So i have some docs which convert perfectly and some which convert except for dead hyperlinks. I can't see anything wrong with the hyperlinks. I've also tried different workstations, it's always the same result.
    Has anyone else seen anything like this and if so can you suggest any way forward apart from recreating a million hyperlinks in the converted pdfs?
    thanks

    From Word I select 'convert to Adobe PDF' from the Adobe PDF menu.
    We convert word docs to pdf as part of the daily running of the business.
    We always use PDFMaker and not the adobe pdf printer.
    Before now hyperlinks were converting fine.
    I have tried previously to update acrobat, it seems to be stuck on the 7.1.0 update.
    When I search for new updates it just installs the 7.1.0 update again - i have 3 workstations like this.
    They have been like this for a long time, i had in fact stopped attempting to update them - adobe has worked fine up til now and it is in daily use.
    Maybe this is the root of the problem.
    I will try and get one up to date on 7.1.2 and run a conversion and see what happens.

  • Distorting text/images in converting from pmd to pdf

    My company uses PageMaker 7.0 to create our manuals and brochures and then converts them into pdf's. I've run into this problem before and found that if I didn't properly place or import an image (not copy and paste an image or text) that once converting it into a pdf only a portion of the image would be there or everyother 3rd letter would exist. Thought we had corrected it. The creator of this last document saw everything correctly but when another employee opened the pdf file through the network it was distorted and wrong. I opened the document and "saved as" in my documents and then everything seemed fine from my computer but then the creator opened the file on his computer and it was wrong. The link info on some of the images is wrong even though it was placed properly- the text was entered in Pagemaker but on the pdf is missing letters and causing odd spacing. I'm at a loss now on how to correct this. I hate to upgrade when pagemaker is more than sufficient for the basic manuals we do. I did notice that I was using Reader 9 wheras they still had 8 on their computers- already had them upgrade but didn't think this would be a real issue. Any ideas on the problem or how to correct would be greatly appreciated!!

    Look in the application where the users are generating the PostScript.
    Many of them have an option "print last page first", so this naturally
    produces a backwards PDF.
    Aandi Inston

Maybe you are looking for

  • Mail 6.6 no longer connects to Gmail

    I use Apple Mail (I think version 6.6, whichever comes with MAC 10.8.5 on the MacBook Pro I bought in April) for accessing my Gmail accoun. Over the past weekend it stop sending out-going messages but was stil able to download and read new message; t

  • Powerbook G4  looses settings for booting for firewire?Need Help

    I have a powerbook g4 17 inch al.. 1.67 pro 2 gigs ram and I formatted a seagate firewire 800 drive to be my hdd replacment <<it died well its installed fine ( partations is for powerbook boot) however when i shut down it doesn't find the drive.. I t

  • Problems with iCloud and iCal

    I started using iCloud about a month ago...so far it has been quite the headache. I like the concept I put an appointment on one of  my devices and it shows up on the rest (iphone, ipad, iMac). Just recently, when I open iCal on my iMac, all my appoi

  • Apple Firmware Restore

    I've been looking at this article - http://support.apple.com/kb/HT2213 I have a few macs, and a 2 year old Macbook Pro with annoying fans which never seem to stop. I've read that the firmware update which caused the change in the fans behaviour can b

  • HT1918 In my billing info it doesn't give me the option to select none why? And how can I fix this?

    I can't download or update anything even if it's free. I need to update my billing info but it won't let me sleet none. Why is this and what can I do to fix it?