Function to calculate Page size in XML RTF template

Hi All,
For one of my requirments, I need to find out the page size of my output.
And from a given point of the output, i should know the size till bottom of the page.
My program has an RTF and will generate output in PDF format.
Please let me know how to do this. This is very important for me.
Thanks in advance.
Edited by: DharV on Nov 17, 2011 12:18 AM

No, the actual requirment is in this thread
Re: Need to drag the table down the end of page
I could not get the solution for this, so just checking if I have a function to calculate the horizantal size of the output page, and i can apply some logic.
Let me know if iam not clear
Thanks
Edited by: DharV on Dec 6, 2011 1:14 AM

Similar Messages

  • Defining page size in XML Publisher

    Can we define page size using XML Publisher APIs.
    We have a problem where a single RTF template will be used for different countries and depending upon the country, the report needs to be printed on Letter or A4 or anything.
    I could find a parameter for Orientation but none for page size.
    Is there something we can do for defining page size or we need to rely on the printer setup.
    Regards,
    Satrajit

    to which column do u wnat to calculate goto that column
    <?add-page-total:variable_name;Column_name?>
    ex: <?add-page-total:inv;INVOICE_AMOUNT?>
    finally goto footer write
    <?show-page-total:inv;"999G990D00"?>

  • How to calculate Page Size that allows for Trim Marks?

    I have made a Word document in 4.75" x 7' Page Size and the print company is demanding they have Trim Marks so they can
    cut the document to the precise size.
    I went to Save As in the Word doc and converted the Word doc to PDF, no problem.
    Then I found how to insert Trim Marks onto the PDF using Adobe Pro 9.
    The Trim Marks are L shaped but with the 90 degree corner bit missing so they look like 2 straight lines that would tell the
    print company where the sides and the top and the bottom are to be cut if the 2 lines were extended to the intersection of the L.
    Something like this for Top Left   _I   and this for the Top Right    I_    and the mirror of those two for the bottom Trim Marks -
    However when I use Acrobat Pro 9 to insert Trim Marks on a 4.75" x 7' Page Size, the Trim Marks themselves encroach on
    the print area by about 9 mm or just under 0.375" because they are marking the corner of the page but it reduces the Page Size
    by about 9 mm or just under 0.375" if I leave them there, ie, by the length of the Trim Marks themselves.
    Is there a way to position Trim Marks where I want them?
    If not then I presume I need to make my original Page Size bigger by the length of the Trim Marks all round?
    If I need to up my original Page Size to accommodate the Trim Marks I need to know the exact length of the Trim Marks don't I?
    Other wise if I get the length of the Trim Marks wrong they could either encroach slightly on the printed area or denote the
    wrong Page Size.
    Or perhaps I've got it wrong and it's not the 90 degree intersection that marks the Page Size but rather it is the other ends of the
    Trim Marks where the Trim Marks touch the border of the 4.75" x 7' Page Size that denotes the Trim Size?
    But that would mean the Trim Marks do not show up on the Camera Ready page and are not seen after printing but somehow I
    don't think that's the case.
    The attachment is a screen shot showing the Trim Marks on my 4.75" x 7' Page Size PDF.
    Help would be very much appreciated.

    Go to the Crop Pages command first and choose a page size bigger than the one you want. In Acrobat 8 it is at the bottom of the dialog box where it says change page sizes. Make sure to select for all the pages you want to have crops for. This will make the pages larger, but still no trim marks yet.
    Next to to Advanced, Print Production, Add Printer Marks, choose trim marks. Make sure you have selected all the pages you wanted the trim marks to appear on. The trim marks will appear on your pages.
    Kinda reverse of what you'd expect, but it will do it.
    By the way this needs Acrobat Pro, not Reader.
    Tom

  • Reseting page number in Word RTF template for BI Publisher PDF generation

    Hi!
    Apex 4.0.2, Oracle 10.2.0.4, BIP 10.2
    Bills are created based on Word RTF file with BI Publisher. Reszulting file is one big PDF file, which has many pages.
    Word RTF template is grouped on BILLS.ID field with page break option. So one BILLS.ID may have one or many pages (according data).
    How to create RTF template (for PDF BI Publisher generation) with reseting page numbers when grouping value change.
    Page numbers are in footer in format
    curr_group_page/total_group_pages
    where:
    curr_group_page is current page number in group (defined with BILLS.ID field),
    total_group_pages is total page number of pages in group (defined with BILLS.ID field).
    I need to reset numbering whenever BILLS.ID (group) change.
    Example:
    ID=1 (4 pages)
    1/4, 2/4, 3/4, 4/4
    ID=2 (1 pages)
    1/1
    ID=3 (2 pages)
    1/2, 2/2
    ID=4 (3 pages)
    1/3, 2/3, 3/3
    etc.
    How to achieve that kind of numbering?
    Any help appreciated.
    Regards,
    Damir Vadas
    Edited by: Damir Vadas on May 16, 2011 12:49 PM

    Simple question.. Does your posting deal with an APEX issue or a BI Publisher issue? The posting you have deals with the RTF add-on for Word that builds report layouts for BI Publisher. I suggested in my response that you move it to a more relevant forum..
    If you feel that me alerting you to the fact your are VIOLATING forum policy is an issue, please feel free to ask others their view.. (posting to a 3 year old closed thread, creating MULTIPLE threads for a single issue..) You do NOT seem to get the idea that posting this in the Bi Publisher support forum would probably get you a BETTER response than here.. Asking pl/sql questions here will also get people to refer your questions to the PL/Sql Support forum..
    Also, here is a POSSIBLE answer from the BI Publisher Forum: http://forums.oracle.com/forums/thread.jspa?threadID=594805
    This Is The APEX SUPPORT forum, we deal with SUPPORT questions on APEX (Application Express)..
    Thank you,
    Tony Miller
    Webster, TX
    You know, I used to think that it was awful that life was so unfair. Then I thought, wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? So, now I take great comfort in the general hostility and unfairness of the universe.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Page number reset in .rtf template

    Hello,
    In the AR statements report, If I run the report for mutiple customers, page number has to be reset for each bill_to customer...
    I have the header part from the second page, so when I run the report for multiple customers...even for the new customer's first page...header is coming....
    So I assume by resetting the page number for every bill to automatically solve the issue of header from second page...
    Please advise...how to reset the page# based on a condition ( for each bill to)...I know it work with @section....
    but my template is like <?for-each-group:G_STATEMENT;./STATEMENT_DATE?><?for-each-group:current-group();././././././././././././././SEND_TO_ADDRESS_ID?>
    -Sridhar
    Edited by: user7751421 on Oct 12, 2011 4:32 AM

    If you could send me your xml and template i can give a try.
    [email protected] is my email id.

  • How to judgement the page-number in xml publisher template

    Hi all,
    This is a xml publisher template problem, I want to realize a judgement about page-number like <?if:page-number=1?> test <?end if?> <?if:page-number!=1?> not equal<?end if?>, how can i do this? Please give some suggestion about this, thanks a lot.
    Best Regards
    Spark

    there is some seeded variable available please read xml publisher developer user guide

  • Self-corre​lation function to calculate speckle size of an image

    I conduct research that involves images that incorporate speckle, and I need a program that is a self correlation function that can help me calculate the speckle size of an image. Is there any way that I can do this with labview or has someone already written a profram for it?

    If you can describe the algorithm, particularly if you have code in Matlab or a similar programming language that accomplishes what you need, then almost certainly you can do it in LabVIEW.  All you need is someone with some experience with LabVIEW (or someone with reasonable experience in another programming language willing to take the time, typically a few days, to go through the LabVIEW Tutorials and learn how LabVIEW works) and the algorithm.
    Bob Schor

  • Page break problem in rtf template

    I have a nested group as follows:
    For each sub-vote sub-vote desc
    - For Each sub-program details....end of for each sub-program
    total for sub-vote
    end of for each sub-vote
    If the sub-vote and all of its detail records won't fit on a page, then I need a page break.
    The fields are set up in a table. I have unchecked the 'allow row to break across page' for all 4 rows.
    I tried drawing a new table around the existing 4 rows, but I can't seem to uncheck the 'allow row to break across page' for the new table. How do I change properties for the 'parent table' - I'm looking for something that is equivalent to 'select parent frame' from report builder.
    I also tried checking the 'keep with next' checkbox on the paragraph/format for each row.
    When I preview/pdf in word, my sub-programs within a sub-vote are still displaying on differrent pages.
    If anyone can make any suggestions, I would greatly appreciate it.
    Thank you.

    I created a new row and then copied the cells (minus the 'for -each' and 'end of for each' cells) as a nested table. Page breaks are now working correctly.
    Thank you.

  • Implementing multiple page size requirement - extra blank page at the end

    My XMLP report requirement is as follows.
    - The report is printing a bunch of lines.
    - Based on data and layout requirement, lines are grouped into page where they belong (due to complex logic for determining which page a line should go to...this is done in PL/SQL package that is called in the beginning of the RDF trigger)
    - The first page needs to be printed on Legal size paper
    - Subsequent pages (IF NEEDED) need to be printed on Letter size paper
    So some report will have a 1-page output (legal size), and some will have multiple pages (1st page should be legal size, subsequent on letter size).
    Here is a sample XML data:
    <REPORT>
    <LIST_G_PAGE_NUMBER>
    <G_PAGE_NUMBER>
    <PAGE_NUMBER>1</PAGE_NUMBER>
    <LIST_G_LINE>
         <G_LINE>...</G_LINE>
         <G_LINE>...</G_LINE>
    </LIST_G_LINE>
    </G_PAGE_NUMBER>
    <G_PAGE_NUMBER>
    <PAGE_NUMBER>2</PAGE_NUMBER>
    <LIST_G_LINE>
         <G_LINE>...</G_LINE>
         <G_LINE>...</G_LINE>
    </LIST_G_LINE>
    </G_PAGE_NUMBER>
    <G_PAGE_NUMBER>
    <PAGE_NUMBER>3</PAGE_NUMBER>
    <LIST_G_LINE>
         <G_LINE>...</G_LINE>
         <G_LINE>...</G_LINE>
    </LIST_G_LINE>
    </G_PAGE_NUMBER>
    </LIST_G_PAGE_NUMBER>
    </REPORT>
    For this, I created 2-pages RTF template and using the Word Page Setup feature:
    1. First page setup is legal size (go to Page Setup, Paper tab, choose Letter and choose Apply to "Whole Document").
    The first page has the following XMLP tag:
    <?for-each: G_PAGE_NUMBER?>
    <?if: PAGE_NUMBER=1?><?call:body?><?end if?>
    <?end for-each?>
    <?template:body?>
    for-each loop that prints lines in a tabular format
    <?end template?>
    2. Second page setup is letter size (go to Page Setup, Paper, choose Letter and choose Apply to "This point forward").
    <?for-each: G_PAGE_NUMBER?>
    <?if: PAGE_NUMBER>1?><?call:body?><-- Ctrl-Break to insert a page break here --> <?end if?>
    <?end for-each?>
    It almost worked, except there is a blank page printed at the end. How do I remove the blank page? I have tried to use <?split-by-page-break:?> instead of the Ctrl-Break, but it did not seem to work (there is no page break happening at all).
    I think the extra page is due to the multiple page nature of the RTF template. Is there a way to control the page size through XMLP tag (or XSL-FO). With that, I can try having a single page template and put the page size control within the XMLP / XSL-FO tag and hope that the extra blank page at the end will go away. Can someone please help?
    Thank you!

    Sorry for the typo in my previous post... I meant Ctrl-Enter (not Ctrl-Break).

  • SUM Function in RTF Template

    Hi buddies,
    can we use functions like SUM,AVG etc. in the RTF Template.
    If possible please give adivce for the below scenario
    I have one column in the main body table "Extended Amount", I want to sum this field for the another column Total Extended Amount below this Main table.
    with regards
    Ram

    Hi All,
    I have a problem in calculating the SUM in RTF template with condition,
    Here is the XML
    - <LIST_G_LINE_NOTES>
    - <G_LINE_NOTES>
    <LINE_TRX_ID>1567856</LINE_TRX_ID>
    <LINE_ID />
    - <LIST_G_TRX_LINE>
    - <G_TRX_LINE>
    <CF_ITEM_NO>SDCN1144B</CF_ITEM_NO>
    </G_TRX_LINE>
    </LIST_G_TRX_LINE>
    - <LIST_G_LINE_EQUIVALENT_UNIT_PRICE>
    - <G_LINE_EQUIVALENT_UNIT_PRICE>
    <LINE_EQUIVALENT_UNIT_PRICE>-15.99</LINE_EQUIVALENT_UNIT_PRICE>
    <LINE_EXCHANGE_EXTENDED_AMOUNT>-223.86</LINE_EXCHANGE_EXTENDED_AMOUNT>
    <CUSTOMER_TRX_LINE_ID>1567856</CUSTOMER_TRX_LINE_ID>
    </G_LINE_EQUIVALENT_UNIT_PRICE>
    </LIST_G_LINE_EQUIVALENT_UNIT_PRICE>
    - <LIST_G_TRX_LINE>
    - <G_TRX_LINE>
    <CF_ITEM_NO></CF_ITEM_NO>
    </G_TRX_LINE>
    </LIST_G_TRX_LINE>
    I need the summation of field LINE_EXCHANGE_EXTENDED_AMOUNT with the condition CF_ITEM_NO!=''
    can anybody help me with the solution.
    Thanks in Advance

  • PDF report Page Size

    I am using BI publisher in APEX to generate PDF report. Data is displayed only on paper size 8.5 X 11 regardless any paper size I select i.e. Letter 8.5x11, Legal 8.5x14, Tabloid 11x17, Custom 8.5x20.

    You need to specify the paper size in the RTF template. Iif you are using RTF templates? If not its an APEX issue and needs to be addressed by them
    Tim

  • Can doc properties be in sync with a page size change?

    I am using the manual.indt template with InDesign CS4, I made a page size change to the template and now the text boxes and everythng else are knocked out of alignment. I need the margins to be 'correct' in relation to the page size, just as they were with the original template. Is there a way to make a page size change and have all the elements within the template synchronize to the change?
    Thanx,
    Bill

    Layout > Layout Adjustment...
    If you enable this BEFORE you make a change, much of what you want will likely happen, but it is highly dependent on how frames are set on the page. If they touch guides, they move/change size with changes that affect the guides.

  • Fail to create PDF from 2 templates with different page sizes

    Hi,<br /><br />I am having problems to create a PDF with multiple page sizes and using 2 templates.<br /><br />I have to create a PDF using two dynamic templates. The second template has multiple pages, some A4 some A3, which I select through subforms (A3 specific subforms are on an A3 page).<br /><br />So:<br />^job <mdf1> -zOut.pdf<br /><fields><br />^form <mdf2>.mdf<br />^page 2<br />^group G_heading_A3<br /><fields><br /><br />The templates on their own are ok, but when I combine them the second is always A4, even if a) the subforms are on A3 (heading_A3) and if b) the page is A3 (page 2).<br /><br />I couldn't find anything on the web nor in the documentation. Does anyone have a clue?<br /><br />Thanks, Edward

    The build booklet feature is for very basic booklets, not something like this.
    Sorry, but you’ll need to make everything full size and then do the cutting.
    Bob

  • Ability to display data in Different Page Sizes in a Single RTF

    We have a requirement to show different page sizes in a Single RTF file .
    Please let me know you have worked on such a functionality as part of earlier assignments.
    Requirement Detail:
    We have 2 templates (One Legal (8.5*14) and One Statement ( 5.5*8.5)) as part of the same report in 2 different pages.
    Conditionally we need to show xml data in either the Statement or the Legal Format .
    Issues Currently faced:
    1.     When the Statement is chosen as a user parameter: (Attachment : ReportoutputforStatement.pdf)
    -     The data is super-imposed on the Legal layout instead of showing it on the Statement layout . Hence the page dimensions are not as expected in the report.
    -     There is a extra last page in the report which is blank with the Statement Layout.
    2.     When the Legal option is chosen as a user parameter: (Attachment : ReportoutputforLegal.pdf)
    -     The Data is appropriately shown on the legal layout
    -     There is a extra last page in the report which is blank with the Statement Layout.
    Regards:
    Nagaraj.s

    Have you tried creating two subtemplates and conditionally calling them based on the parameter chosen?
    If I understand correctly,currently you have a single RTF template (2 pages) that includes the two different layouts..
    Thanks,
    Bipuser

  • Page Break In XML Publisher RTF Templates Are Not Working

    Please refer to the Metalink Doc below:
    Subject:      Page Break In XML Publisher RTF Templates Are Not Working.
    Doc ID:      559111.1      
    Type:      PROBLEM
    Modified Date:      24-MAR-2008      
    Status:      MODERATED
    In this Document
    Symptoms
    Cause
    Solution
    References
    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
    Applies to:
    Oracle XML Publisher - Version: 5.6.3
    This problem can occur on any platform.
    Symptoms
    Using XML Publisher version 5.6.3 in 11.5.10.
    Find <?split-by-page-break:?> syntax is ignored.
    EXPECTED BEHAVIOR
    Expect page breaks to occur at point set by "split-by-page-break:" code.
    STEPS
    The issue can be reproduced at will with the following steps:
    1. Create a template.
    2. Call split-by-page-break: inside a loop.
    3. Output is not formatted correctly, page break call is ignored,
    Cause
    Unpublished BUG 5011628 SPLIT-BY-PAGE-BREAK NOT WORKING IF ADDED SORT WITHIN DYNAMIC GROUP
    Unpublished BUG 5011628 matches the client issue as it is a call to split-by-page-break inside a loop.
    Fix is in ScalableStringList.java version 115.4.
    This is delivered in <Bug 6165466> XDOFX:CHR(N) FUNCTION FAILING.
    Solution
    To implement the solution, please execute the following steps:
    1. Apply Patch 6165466 when it is released.
    2. Test your report.
    References
    Bug 6165466 - XDOFX:CHR(N) FUNCTION FAILING
    Keywords
    XML~PUBLISHER; LOOP; DYNAMIC~GROUP; PAGE~BREAK;
    Help us improve our service. Please email us your comments for this document. .

    Hi JDev,
    Check this out:
    http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
    Hope this might help.
    Thanks

Maybe you are looking for