How to get the Pdf's page size?

Hi,
Anyone can tell me how to get the pdf's page size with js in acrobat?
Regards
Goldbridge

The page size will not always necessarily conform to a standard size such as A4 - PDFs can be defined at any abstract size a user wants. Having a function that only output standard sizes would greatly limit its ability, so it was left up to the user to calculate whether or not the returned rectangle is a standard size as that satisfies many more workflows than the opposite method.

Similar Messages

  • How to get the PDF Document version when using Digital Signature

    Hi,
    I have a form which contains two signature fields.
    When i sign the form the pdf document is saved as a version which can be seen by clicking the Signature Panel.
    I need to get the binary of the versions stored in the form.
    Please suggest me the how to get the version data from the form.
    Regards,
    S.V.atish Kumar

    Hi Mithun:
    I think I have run into a similar issue and have not been able to find a resolution.
    I have been trying to place three groupings of data and limit them to 15 rows; additional rows would print on a void check on a next page using the rtf template.
    Earnings .............. Pre-Tax Deductions .........Taxes
    <line 1 earnings> <line 1 pre-tax deductions> <line 1 tax dedcutions>
    <line 2 earnings> <line 2 pre-tax deductions> <line 2 tax dedcutions>
    <line 3 earnings> <line 3 pre-tax deductions>
    <line 4 earnings> <line 4 pre-tax deductions>
    <line 5 earnings>
    <line 6 earnings>
    The template works fine with these lists as nested tables until I add in the restriction and filler for the 15 rows for the first table. The data in the 2nd two lists does not appear once the limitation is added.
    Check Writer (XML)  - Issues with payroll check stub in rtf
    As an alternative, I have been thinking adding the remaining line totals (over 15 rows) and adding a 16th row. However I have been running into an error when trying to use the code for-each-group.
    *** XML-22056: exactly one of four group attributes must be present in xsl:for-each-group
    Can you send me your template to review? My email is: Karen.Lacey(AT)paetec(DOT)com
    Thanks!
    Edited by: RedLacey on Dec 17, 2009 11:48 AM

  • How to get the no of pages in a report?

    Hi All,
    I have a requirement to get the number of pages in the crystal report.
    I found that the following method of IReportSource gives the value.
    public int getLastPageNumber(com.crystaldecisions.sdk.occa.report.application.IRequestContext requestContext)
                          throws java.lang.NullPointerException,
                                 ReportSDKException
    But the issue issue is with the paramter requestContext. How can I get this requestContext.
    Appreciate your time.
    Regards,
    Anil Chowdary K

    Because of the page on demand feature, by default there is no clean way to get the page number, because each page is generated as requested.  To get the total page count, the viewer must render the entire report first.  The easiest way to accomplish this is to use the CrystalReportViewer object and call the showLastPage() method, then using the CrystalReportViewer object generate a ViewInfo object, and call the getPageNumber() method.
    For more information review the Viewer documentation in our [SDK Library|http://www.sdn.sap.com/irj/sdn/bi-sdklibrary].

  • How to get the number of page by creating OLE microsoft word document

    Hihi Experts,
    I have generated a word document using ole in sap abap report.
    May i know which command can i use to call the word object to get the number of page before closing the word document?
    eg. call method of wordobj 'insertpagefield' ? and i need to require the page number in a variable eg. gv_pagenumber for other filtering purposes.
    Thanks and Regards,
    li Hui
    Edited by: lihui lil on Aug 11, 2009 9:35 AM
    Edited by: lihui lil on Aug 11, 2009 12:36 PM

    hi,
    use the following code:
    CALL METHOD OF gv_selection 'Information' = gv_curpage
        EXPORTING
        #1 = 3. " get current page number
      CALL METHOD OF gv_selection 'TypeText'
        EXPORTING
        #1 = gv_curpage. "show current page number
      CALL METHOD OF gv_selection 'TypeText'
        EXPORTING
        #1 = ' of '.
      CLEAR gv_endpage.
      CALL METHOD OF gv_selection 'Information' = gv_endpage
        EXPORTING
        #1 = 4. "get total page number
      CALL METHOD OF gv_selection 'TypeText'
        EXPORTING
        #1 = gv_endpage. " show total page number
    Edited by: VoonHan on Oct 13, 2009 7:35 AM

  • How to get the PDF Text position, font, size, align...?

    Hi~!
    I can extract all the text from the PDF file, but just plain text.
    I need their format, position, font, size, align.
    I am using C#, IAC, and read the SDK carefully.
    How to get them?
    Thanks for every hint on how to achieve this!
    Jason Wang

    "Often this is a rectangle, sometimes not (e.g. for italic text the box
    may be slanted too)."
    Sometimes it lines up with the horizontal axis, sometimes not.
    Aandi Inston
    =====================================================
    "Remember, in PDF, the origin is BOTTOM LEFT... "
    Leonard Rosenthol
    =====================================================
    Thank you, Aandi, Leonard, Thanks a lot
    Jason Wang

  • How to get the number of pages in a PDF file with AcroPDF ActiveX control

    Hi,
    I am using the AcroPDF ActiveX control provided by Acrobat Reader and Professionals(version 9). I just wonder if I using LoadFile to load a PDF document, how can I know the number of pages in that PDF? I do not find any properites or methods that can do that.
    Thanks
    Alan

    Hi unk2,
    There's no functionality in the Acrobat.com online services to do a character count. But, you could use ExportPDF to convert your PDF file to Word format, and then do your character count in Word.
    Please let us know if you need additional assistance.
    Best,
    Sara

  • How to get the number of pages when assemble pdf with DDX

    Hi,
         I have tried to add two bookmarks to one pdf with DDX(in java code),
         the first bookmark I shall add to the first page,and the second I shall add to the second page....
        the question is:
         If the pdf has only one page, I will not add bookmarks to the pdf. so I need to get the pages of pdf before my processing.
        but I did not found any APIs in the SDK about it .
         Can anyone help me.
         thanks.

    I have solve the problem myself
    I use the tag "DocumentInformation" in DDX and get the xml after invoking DDX,
    the xml contain the information of document
    the sample DDX as:
         <?xml version="1.0" encoding="UTF-8"?>
       <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
               <DocumentInformation source="mergedPDF" result="doc_info.xml" />
       </DDX>

  • How to get the PDF data which i have send to Spool

    Dear Freinds,
                   My requirement is to display the output which iam getting from a custom report(ZSALARY) in the form of  PDF . So now i wanted to display the ALV output  on to my desktop (as of now) in PDF format.
    i have done the below coding please correct me why iam not getting the same data which is coming out of my report in the PDF, iam passing the same internal table.
    IF NOT it_final[] IS INITIAL.       -
    >IT_FINAL is my main internal table in the report ZSALARY
          DATA : count TYPE syprcop,
             days TYPE sypexpi,
             params TYPE pri_params,
             valid TYPE c,
          pdf_table TYPE  rcl_bag_tline,
          spoolid TYPE rspoid,
          pdf_fsize TYPE  i.
            CALL FUNCTION 'GET_PRINT_PARAMETERS'
              EXPORTING
                destination    = 'LP01'
                copies         = count
                list_name      = 'ZSALARY'   -
    tHIS IS MY REPORT NAME
                list_text      = 'ZSSPOOL'
                immediately    = ' '
                release        = 'X'
                new_list_id    = 'X'
                expiration     = days
                line_size      = 90
                line_count     = 65
                layout         = 'X_PAPER'
                sap_cover_page = 'X'
                receiver       = 'SAP*'
                department     = 'System'
                no_dialog      = 'X'
              IMPORTING
                out_parameters = params
                valid          = valid.
            NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
            WRITE : 'hi this is the test for spool'.
            NEW-PAGE PRINT OFF.
            COMMIT WORK.
            WRITE : / 'The Spool no is ', sy-spono. "system variable for spool no
            spoolid = sy-spono   .       -
    At this point i can see the spool no.
            CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
              EXPORTING
                src_spoolid   = spoolid
                no_dialog     = 'X'
              IMPORTING
                pdf_bytecount = pdf_fsize
              TABLES
                pdf           = pdf_table
              EXCEPTIONS
                OTHERS        = 0.
            CHECK sy-subrc = 0.
            CALL FUNCTION 'GUI_DOWNLOAD'
              EXPORTING
                bin_filesize = pdf_fsize
                filename                = 'C:\Documents and Settings\Administrator\Desktop\test.pdf'
                filetype                = 'BIN'
              TABLES
                data_tab                = it_final
              EXCEPTIONS
                file_write_error        = 1
                no_batch                = 2
                gui_refuse_filetransfer = 3
                invalid_type            = 4
                OTHERS                  = 5.
          ENDIF.
    if i go and on my desktop it is saying the below error "ADOBE  READER COUDNT OPEN 'test.pdf'
    because it is either not supported  file type or because the file has been damaged.
    my aim is to get the data which is there in IT_final in the PDF .....please correct me the parameters which i have given wrong. my doubt is in GUI_download  fM  in the tables should i pass it_final or
    the pdf_table coming from'CONVERT_ABAPSPOOLJOB_2_PDF'...... i tried this option iam able to open and it is just giving message which i kept before this FM i.e  WRITE : 'hi this is the test for spool'.
    what i should to get my internal table data.
    Pls help.
    regards
    srinivas.

    Dear Karthik,
              Thank you for giving me the link there by iam able to get the ouput download int he pdf
    as below code , but now a small problem for me .......i have 10 fileds in the Report ouput ....but however in the pdf output i can see only 8 fields and the two fields got truncated . Could you please tell me what
    i have to change in my below code so that i can get all the values  
    IF NOT it_final[] IS INITIAL.
    data : it_tsp01 type standard table of tsp01,
           l_wa_tsp01 type tsp01.
            CALL FUNCTION 'GET_PRINT_PARAMETERS'
              EXPORTING
                destination    = 'LP01'
                copies         = count
                list_name      = 'ZHR_BON'
                list_text      = 'ZSSPOOL'
                immediately    = ' '
                release        = 'X'
                new_list_id    = 'X'
                expiration     = days
                line_size      = 90
                line_count     = 65
                layout         = 'X_PAPER'
                sap_cover_page = 'X'
                receiver       = 'SAP*'
                department     = 'System'
                no_dialog      = 'X'
              IMPORTING
                out_parameters = params
                valid          = valid.
    SUBMIT (sy-repid) TO SAP-SPOOL
                     SPOOL PARAMETERS mstr_print_parms
                     WITHOUT SPOOL DYNPRO
                    WITH pnppernr =  p0001-pernr
                     AND RETURN.
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
              EXPORTING
                src_spoolid   = spoolid
                 no_dialog     = 'X'
                 DST_DEVICE  = params-PDEST
               IMPORTING
               pdf_bytecount = pdf_fsize
              TABLES
                pdf           = pdf_table
              EXCEPTIONS
                OTHERS        = 0.
            CHECK sy-subrc = 0.
            CALL FUNCTION 'GUI_DOWNLOAD'
              EXPORTING
                bin_filesize            = pdf_fsize
                filename                = 'C:\Documents and Settings\Administrator\Desktop\test.pdf'
                filetype                = 'BIN'
              TABLES
                data_tab                = pdf_table    "it_final
              EXCEPTIONS
                file_write_error        = 1
                no_batch                = 2
                gui_refuse_filetransfer = 3
                invalid_type            = 4
                OTHERS                  = 5.
          ENDIF.
    Please tell me how i can get the all the fields which are there in my normal alv output ......
    Case 1) .i wanted all the 10 fields in PDF  to be displayed  without truncated , I have checked in Spool ........ i found all the fields are there .....but however when i check the downloaed PDF i can see some fields are getting truncated.
    Case 2) However  if on the ALV output if the user  hides 2 fields out of 10 fields then only 8 feilds which are appearing on the output  before sending the Spool should only be displayed in PDF as well -
    > for this scenario what i have to do.
    Thanks  Once again.
    regars
    srini.

  • How to change a pdf's page size, margins and page orientation? Are there available tools to do this?

    We are converting Lotus Notes documents to PDF by exporting (printing) them to PDF via a PDF writer but found some content are truncated or cropped. We have to manually re-print to pdf using a different page/paper settings in order to capture the content correctly. Are there any other methods or tools which can automate this step? Would it be possible to change the PDF properties to adjust the page size, etc?
    Hope there are some useful tools available as there are thousands of documents that are having this issue. Thank you.

    The page size options are limited, but are in the crop tool. If there are no tags or other markup, you can also print to a new PDF and adjust the size in the printer interface -- sometimes the simplest method, but not normally recommended. The rotation can be done in the document menu and then saved. The rotation that is typically on the toolbar are only for the current view and does not save with the PDF. Many of these you can use a batch process to resolve (in AA8 that is under the Advanced>Document Processing). The better method is to setup your Adobe PDF printer to create the correct page size and orientation in the future. You can setup to typically expand to fit, select a paper size, and have the settings set to auto-rotate. The later is based on the text that is found on the page. The margin elimination is also part of the crop tool. Hopefully this at least gives you some things to look at. Unfortunately, the tools get moved around with every version, so you may have to search for the tools.

  • How to get the PDF Convert button to show on Internet Explorer 9

    Using Internet Explorer 9 and Adobe Acrobat 9 and the PDF convert button does not show up.  How do I fix this?

    Hi R Voorheis
    Please refer to How to install Adobe PDF toolbar in Internet Explorer and https://helpx.adobe.com/acrobat/kb/convert-current-web-page-pdf.html

  • How to get the PDF documents that are currently opened in Adobe Reader?

    When a PDf file is opened in adobe reader, how can we know the details of the file which is currently opened.
    If I want a copy the PDF document to get saved on desktop automatically without asking to user, How can I do this in c#?
    If there are many PDF files opened, then also, I have to get all the details of PDF documents  which are opened.
    Thank You...

    Reader Forum http://forums.adobe.com/community/adobe_reader_forums

  • How to get  the number of page which exists the change bar ?

    In FDK development, I want to find the number of page which exists the change bar.

    zhaopeng,
    You can get the page number by querying the FP_PageNum property of the FO_Page object:
    pageNum = F_ApiGetInt(docId, pageId, FP_PageNum);
    ...or you can use FP_PageNumString if you are using string page numbers.
    If you do not have the ID of the FO_Page object, you can get it from the paragraph ID using the following function, courtesy of Rick Quatro, posted to the Yahoo Framedev list. Send the paragraph (FO_Pgf) ID as oObj and it will return the page ID:
    F_ObjHandleT GetPage(F_ObjHandleT oDoc, F_ObjHandleT oObj)
    F_ObjHandleT oFrame = 0;
    IntT iObjType;
    F_ObjHandleT oRow, oCell;
    while(oObj)
    oFrame = oObj;
    iObjType = F_ApiGetObjectType(oDoc, oObj);
    switch(iObjType){
    case FO_SubCol:
    oObj = F_ApiGetId(oDoc, oObj, FP_ParentTextFrame);
    break;
    case FO_Tbl:
    oRow = F_ApiGetId(oDoc, oObj, FP_FirstRowInTbl);
    oCell = F_ApiGetId(oDoc, oRow, FP_FirstCellInRow);
    oObj = oCell;
    break;
    case FO_Row:
    oCell = F_ApiGetId(oDoc, oObj, FP_FirstCellInRow);
    oObj = oCell;
    break;
    case FO_Cell:
    // handle FO_Pgf case
    case FO_Pgf:
    // handle FO_AFrame case
    case FO_AFrame:
    oObj = F_ApiGetId(oDoc, oObj, FP_InTextFrame);
    break;
    // handle graphic object cases
    case FO_TextLine:
    case FO_TextFrame:
    case FO_UnanchoredFrame:
    case FO_Arc:
    case FO_Ellipse:
    case FO_Group:
    case FO_Inset:
    case FO_Line:
    case FO_Math:
    case FO_Polygon:
    case FO_Polyline:
    case FO_Rectangle:
    case FO_RoundRect:
    oObj = F_ApiGetId(oDoc, oObj, FP_FrameParent);
    break;
    default:
    // prevents loop if unknown object type is found.
    oObj = 0;
    break;
    if(oFrame){
    // Use FP_PageFramePage to get the page identifier of the object.
    return (F_ApiGetId(oDoc, oFrame, FP_PageFramePage));
    else
    return(0);
    Russ

  • How to print the top of page part along with the ALV list and generate PDF

    HI all,
             I have created one ALV by using oops concept .
             and also am able to get the top of page where I have One standard logo on the right hand side
             and some details on the left side .
               Now my requirement is to while printing the list the logo and other top of page details should appear
               In the PDF output but currently while am pressing the print preview button only the alv data is coming
              am already using the method
        handle_top_of_page
          FOR EVENT print_top_of_page
                 OF cl_gui_alv_grid,
    may be am missing something ... How to get the top of page along with the logo printed ?

    Hi  Surya,
    After generating the grid display  click on print button,
    a spool number is generated. capture the spool number and convert it to pdf using the fm:
    CONVERT_ABAPSPOOLJOB_2_PDF  and save the file
    Hope this will solve your problem.
    Regards,
    R K.

  • Quick question: How to get the scrolled page number using af:table

    Hi,
    When using range paging on scrolled table, how to get the current scrolled page number(1,2,3...), for example when moving the table vertical scroll bar forward or backward, is there any method in ViewObjectImpl class that I can use to get such information? I have seen the method scrollToRangePage(int i), but when scrolled ("Fetching data..."), it doesn't not get into this method. So it is wrong usage for this method, right?
    Thanks

    Didn't you just ask that question in this thread?: How to catch the page number when using scroll table in ADF 11g?
    A bit of patience might be in order.
    CM.

  • Submit a PDF as a PDF to a servlet, and how to get my PDF from servlet

    Hi all as the title above,
    i have a button typeformat as PDF and sent to a URL( which is my servlet )
    after this step how to get the PDF from my servlet.
    the PDF has sent to my servlet and stop, so is there any way to get the PDF i sent ?
    can someone help me?
    thanks

    You can use the following code:
    byte[] content = getRequestBufferAsBytes(request);
    ...then do whatever you want
    public static byte[] getRequestBufferAsBytes(HttpServletRequest request) throws IOException, ServletException
    // get the RequestBuffer
    ServletInputStream oInput = request.getInputStream();
    long nContentLength = request.getContentLength();
    String contentType = request.getContentType();
    if (nContentLength <= 0)
    return null;
    byte[] cContent = new byte[(int)nContentLength];
    // read the content in 512 bytes chunks
    // a single read does not get all the characters
    int nRead = 0;
    int nToRead = (int)nContentLength;
    int nBlkSize = 512;
    byte[] cTemp = new byte[512];
    do {
    int n = 0;
    int i = 0;
    if (nToRead - nRead < 512)
    nBlkSize = nToRead - nRead;
    n = oInput.read( cTemp,0,nBlkSize);
    for (i = 0; i < n; i++)
    cContent[i+nRead] = cTemp[i];
    nRead += i;
    } while (nRead < nToRead);
    //cContent[nRead] = (byte)'\0';
    Long nBytesRead = new Long( nRead );
    return cContent;
    Jasmin

Maybe you are looking for