Convert external documents to PDF and print

Hi,
I have a SAP script and with some help from SDN I am at point where I can convert this SAP script to PDF using the function module below
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
* MAX_LINEWIDTH = 132
* ARCHIVE_INDEX = ' '
* COPYNUMBER = 0
* ASCII_BIDI_VIS2LOG = ' '
* PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE = BINFILESIZE
* BIN_FILE =
TABLES
otf = DATAB[]
lines = PDFTAB[].
Now my requirement is, let's say I have an external doc(word or excel) residing on my PC. I have complete path of this file in my hand. I want to convert this file to PDF and append it to the above PDFTAB[] and print to the printer 'TDDEST' as a single document.
Thanks,

Hi,
use this code passing in v_url the complete path
START-OF-SELECTION.
  SET SCREEN 100.
*&      Module  STATUS_0100  OUTPUT
      text
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'STATUS'.
  SET TITLEBAR 'T1'.
*running down the pbo for the first time,
*create the controls and their containers
  IF my_main_container IS INITIAL.
    CREATE OBJECT my_main_container
    EXPORTING
    container_name = 'CUSTOM_CNTL'
    EXCEPTIONS
    cntl_error = 1
    OTHERS = 2.
*create PDF Viewer object
    CREATE OBJECT my_pdf_viewer
    EXPORTING
    parent = my_main_container
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
*could not create PDF Viewer
    ENDIF.
*my_pdf_viewer->LANGU = 'IT'.
    DATA: view_buttons_active TYPE char01 VALUE 'X',
    v_url TYPE char255.
    IF my_pdf_viewer->acrobat_vs_reader = ''.
      view_buttons_active = 'X'.
    ENDIF.
*create SAP toolbar for PDF Viewer
    CALL METHOD my_pdf_viewer->create_toolbar
      EXPORTING
        tool_buttons      = 'X'
        view_buttons      = view_buttons_active
      EXCEPTIONS
        cntl_error        = 1
        cntl_system_error = 2
        OTHERS            = 3.
    IF sy-subrc <> 0.
*could not create toolbar
    ENDIF.
*Open the PDF document
   IF NOT my_pdf_viewer->html_viewer IS INITIAL.
    CLEAR v_url.
    v_url = file.
    CALL METHOD my_pdf_viewer->open_document
      EXPORTING
        url = v_url.
    IF sy-subrc <> 0.
      SET SCREEN 1000.
      MESSAGE i208(00) WITH 'Documento non presente: riprovare'.
    ENDIF.
   ELSE.
    MESSAGE e208(00) WITH 'Impossibile aprire il documento'.
   ENDIF.
  ENDIF.
ENDMODULE.                 " STATUS_0100  OUTPUT
*&      Module  EXIT-PROCESSING  INPUT
      text
MODULE exit-processing INPUT.
  fcode = ok_code.
  CLEAR ok_code.
  CASE fcode.
    WHEN 'BACK' OR 'EXIT' OR 'CANC'.
      SET SCREEN 0.
      LEAVE SCREEN.
  ENDCASE.
ENDMODULE.                 " EXIT-PROCESSING  INPUT

Similar Messages

  • Converting from Word to PDF and printer settings

    I have a program that writes letters automatically in Word and if we have a PDF file as an enclosure when the letter prints, it actually converts the word document as a whole to a PDF. This part works great, however, when the letter begins with Word we have the Page setup for the printer to print the first page on letterhead (tray 1) and all pages after to plain paper (tray 2). When the word document converts to pdf, it is printing everything from tray 1 which is letterhead.
    Is there any way to convert a document to pdf and keep the page settings as well?
    Thanks for any input!

    Don't have an answer. However, you might consider creating the WORD document so that the letterhead is built in and you do not need the paper.

  • Convert Pages document to PDF and maintain html links accurately

    Hi - I am trying to convert a Pages document to pdf, simple right? go to Print / PDF / Save as pdf...
    I have also tried Print / Save as Postscript and Print / Open in PDF
    with the same results, which are...
    Pages dutifully converts to pdf, but on some pages where I have multiple links the formatting position of the links is all over the place on the page, some links are conflated on the page so it says one thing 'www.bbc.co.uk' for example but when you click that link it links to 'www.cnn.com' instead because CNN is the link a little further on in the line, or in the line of text above, or whole sections of the page (half of one page) become a link!
    I have checked the formatting positions and link lables over and over again in Pages and they are spot on, no confusion, no leaking in positional accuracy, it is only when converting to pdf or postscript
    I have many html links in my document so it is vital that the exact position of the formatted links in Pages is converted accurately.
    Any advice on
    a) using Pages Print command accurately? or
    b) third party apps (really dont want to go there)
    that might convert more accurately?
    many thanks

    Thank you Roger!
    I went back to 09 as suggested which identified the section in question as having a whole load of text that had become associated with one of the links - goodness knows how or why - but this wasn't apparent in the Pages 5 doc, nothing explicit signified that there was an issue with the formatting until converting to pdf
    It took me a while to strip it all out without losing all the other formatting! but done now and converting beautifully to pdf with complete accuracy in terms of formatting positions of linked text...
    I then reimported back into Pages 5 to see if I could make sense of it in the same way, long story short no chance, there is still background formatting in there, despite going through it line by line, character by character and removing all traces of any link through the 'right click' 'remove link' function - as soon as you convert to pdf lots of text becomes active again even though it is absolutely not visible in the Pages 5 doc
    Clearly, despite a strong desire to continue in 5 from a being uptodate perspective, I shall stick to the 09 world and wait for Apple to sort things out.
    If anyone from Apple is reading this, it has cost me approx 2 days of messing about to get to a point where I give up on 5 and return to 09. Please resolve as soon as possible!

  • How to Convert Blog Page in PDF and Print it Directly?

    Hi,
    I have a technology tips and tricks related blog which is named TechnTechie. I want that my visitors will be able to convert all of my blog pages to PDF and also will be able to print that out with a single click with the pictures in the post. Is it possible to do that? If possible please suggest how to do that? My blog is in WordPress blog and the url is http://techntechie.com
    Thank You
    Himadri Subrah Saha

    You cannot invoke "automatic" printing from the server side. Best what you can do is to download the whole PDF file inline and let the client decide what to do with it. If you really, really want to pick a page out of the PDF file and display that page only, then you should use a PDF reader API for Java to be able to pick a page programmatically. iText is such a PDF reader API for Java. You can find it here: http://sourceforge.net/projects/itext

  • Converting word documents into pdf and sending

    IA company that I am applying for a position to requires that I send my resume and cover letter in a pdf format.  These two documents currently exist in WORD format.  How can I successfully export the documents into a pdf format and send?

    Hi,
    I think you have startged two discussions for the same question:
    Please check the below mentioend
    http://forums.adobe.com/message/5318601#5318601
    ~Pranav

  • I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

  • Convert a web report into pdf and print (in BW 3.5)

    Hello gurus,
    i have few web reports ( created using WAD). i am looking for a possibility to convert a web report (viewed in a browser by a user) into pdf and print them and this should be done by pressing a button.
    Is it possible in BW 3.5 version?.
    could anyone please help me?
    Any how to docs. would be really helpful.
    thanks and regards
    kumar

    Here it is
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_1"/>
             <param name="DATA_PROVIDER_ID" value=""/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="ZPD_ADHOC_PAGE"/>
             <param name="MENU_BACK" value=""/>
             <param name="MENU_BACK_TO_START" value=""/>
             <param name="SUPPRESS_WARNINGS" value="X"/>
             <param name="MENU_FILTER" value=""/>
             <param name="MENU_FILTER_ON_AXIS" value=""/>
             <param name="MENU_SELECT_FILTER" value=""/>
             <param name="MENU_FILTER_ON_AXIS_CHART" value=""/>
             <param name="MENU_FILTER_CHART" value=""/>
             <param name="MENU_FILTER_DRILL_DOWN" value=""/>
             <param name="MENU_DRILL_UP_GIS" value=""/>
             <param name="MENU_DRILL_DOWN" value=""/>
             <param name="MENU_EXCHANGE_OBJECTS" value=""/>
             <param name="MENU_REMOVE_DRILL_DOWN" value=""/>
             <param name="MENU_SWITCH_AXIS" value=""/>
             <param name="MENU_HIERARCHY_NODE_DRILL" value=""/>
             <param name="MENU_HIERARCHY_DRILL" value=""/>
             <param name="MENU_HIERARCHY_STATE" value=""/>
             <param name="MENU_SORT" value=""/>
             <param name="MENU_CALCULATE_RESULT" value=""/>
             <param name="MENU_CALCULATE_VALUE" value=""/>
             <param name="MENU_CUMULATE_VALUE" value=""/>
             <param name="MENU_DISPLAY_DOCUMENTS" value=""/>
             <param name="MENU_DOCUMENT_CREATE" value=""/>
             <param name="MENU_DISPLAY_DOCUMENT_PROP" value=""/>
             <param name="MENU_DISPLAY_DOCUMENT_SELEC" value=""/>
             <param name="MENU_RRI" value=""/>
             <param name="MENU_EXPORT_TO_CSV" value=""/>
             <param name="MENU_EXPORT_TO_XLS" value=""/>
             <param name="MENU_BOOKMARK" value=""/>
             <param name="MENU_CHARACTERISTIC_PROPERTIES" value=""/>
             <param name="MENU_VALUE_PROPERTIES" value=""/>
             <param name="MENU_QUERY_PROPERTIES" value=""/>
             <param name="MENU_VARIABLE_SCREEN" value=""/>
             <param name="MENU_CURRENCY_CONVERSION" value=""/>
             <param name="MENU_ENHANCED" value=""/>
             TEMPLATE PROPERTIES
    </object>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE>SAP BW Reporting Print Page</TITLE>
    <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
    <script type"text/javascript">
    <!--
    //   Global Variable Definition
    var dataTable = "";
    var pageRowCnt = 0;
    var prevPage = 0;
    var ColumnCnt = 0;
    var PrintDateTimeStamp = new Date();
    var rptWidth = 0;
    //DATE STAMP FUNCTION
    function datestamp(){
               var Today = new Date()
               document.write(Today);
    function getReportTitle() {
                    var myQueryString = window.location.search;
                    var startOfRptTitle = myQueryString.indexOf("QTITLE=");
                    if (startOfRptTitle != -1)
                         var endOfRptTitle = myQueryString.indexOf("&", startOfRptTitle + 7);
                         var myTitle = unescape(myQueryString.substring(startOfRptTitle + 7, endOfRptTitle));
                         var rpttitle = "";
                         for(i=0;i<myTitle.length;i++){
                             if (myTitle.substring(i,i+1) == "+"){
                                 rpttitle = rpttitle + ' ';
                             else
                                 rpttitle = rpttitle + (myTitle.substring(i,i+1));
                    else
                         var rpttitle =  "Unspecified Query Title";
                    return rpttitle;
    queryTitle=getReportTitle();
    function getHeading2() {
                    var myQueryString = window.location.search;
                    var startOfHdr2 = myQueryString.indexOf("HDR2=");
                    if (startOfHdr2 != -1)
                         var endOfHdr2 = myQueryString.indexOf("&", startOfHdr2 + 5);
                         var myHdr2 = unescape(myQueryString.substring(startOfHdr2 + 5, endOfHdr2));
                         var hdr2 = "";
                         for(i=0;i<myHdr2.length;i++){
                             if (myHdr2.substring(i,i+1) == "+"){
                                 hdr2 = hdr2 + ' ';
                             else
                                 hdr2 = hdr2 + (myHdr2.substring(i,i+1));
                    else
                         var hdr2 =  "#";
                    return hdr2;
    header2=getHeading2();
    function getHeading3() {
                    var myQueryString = window.location.search;
                    var startOfHdr3 = myQueryString.indexOf("HDR3=");
                    if (startOfHdr3 != -1)
                         var endOfHdr3 = myQueryString.indexOf("&", startOfHdr3 + 5);
                         var myHdr3 = unescape(myQueryString.substring(startOfHdr3 + 5, endOfHdr3));
                         var hdr3 = "";
                         for(i=0;i<myHdr3.length;i++){
                             if (myHdr3.substring(i,i+1) == "+"){
                                 hdr3 = hdr3 + ' ';
                             else
                                 hdr3 = hdr3 + (myHdr3.substring(i,i+1));
                    else
                         var hdr3 =  "#";
                    return hdr3;
    header3=getHeading3();
    function getAsOfDate() {
                    var myQueryString = window.location.search;
                    var startOfRelevance = myQueryString.indexOf("ASOFDATE=");
                    if (startOfRelevance != -1)
                         var endOfRelevance = myQueryString.indexOf("&", startOfRelevance + 9);
                         var myRelevance = unescape(myQueryString.substring(startOfRelevance + 9, endOfRelevance));
                         var asof = "";
                         for(i=0;i<myRelevance.length;i++){
                             if (myRelevance.substring(i,i+1) == "+"){
                                 asof = asof + ' ';
                             else
                                 asof = asof + (myRelevance.substring(i,i+1));
                    else
                         var asof =  "";
                    return asof;
    asofDateTime=getAsOfDate();
    function getPaperSize() {
                    var myQueryString = window.location.search;
                    var startOfPaperSize = myQueryString.indexOf("PSIZE=");
                    if (startOfPaperSize != -1)
                         var endOfPaperSize = myQueryString.indexOf("&", startOfPaperSize + 6);
                         var myPaperSize = unescape(myQueryString.substring(startOfPaperSize + 6, endOfPaperSize));
                         var psize = "";
                         for(i=0;i<myPaperSize.length;i++){
                                 psize = psize + (myPaperSize.substring(i,i+1));
                    else
                         var psize =  "0";    // default if none supplied  (normal 8x11)
                    return psize;
    varPaperSize=getPaperSize();
    var PaperSizeParamString='&PSIZE=' + escape(varPaperSize);
       switch(varPaperSize){
            case "0":    // Landscape - Letter
                           var WidthMax = 910;
                           var RowsPerPageMax = 38;
                           break;
            case "1":    // Landscape - Legal
                           var WidthMax = 1190;
                           var RowsPerPageMax = 38;
                           break;
            case "2":    // Portrait - Letter
                           var WidthMax = 660;
                           var RowsPerPageMax = 54;
                           break;
    function getTotalColumns() {
       var myHTML = dataTable.rows[1].innerHTML;
       var TotalTDs = 0;
       var nextTD = 0;
       for (i=0;i<myHTML.length;i++) {
           nextTD =  myHTML.indexOf("<TD", i);
           if (nextTD != -1) {
              i=nextTD;
              TotalTDs++;
           else break;
       return TotalTDs;
    function GetPageHeadings() {
       var headingHTM = "";
       var leftspancnt = 0;
       var rightspancnt = 0;
       var headingspancnt = 2;
       if (header2 != '#') headingspancnt = headingspancnt + 1;   // adjust for extra headings
       if (header3 != '#') headingspancnt = headingspancnt + 1;  
       if (currPage > 1) {
          headingHTM += '<TR style="page-break-before:always; display:none; visibility:hidden; "><TD Colspan="' + ColumnCnt + '"></td></tr>';
       else {
          headingHTM += '<TABLE  id="THEREPORT" name="MYREPORT" cellSpacing=0 cellPadding=0 width=' + WidthMax + ' border=0>';
       if (ColumnCnt == 1) {
          headingHTM += '<TR><TD vAlign=top align=left nowrap><font Size=3><STRONG>';
          headingHTM += queryTitle;
          headingHTM += '</STRONG></font></TD><TD Rowspan="' + headingspancnt + '" align="right" vAlign="top"><input type="image" border="0" name="SAPLogo" src="/sap/bw/Mime/Customer/Images/images.jpg" alt="SAP Logo"></TD></TR>';
          if (header2 != '#') headingHTM += '<TR><TD vAlign="top" align="left"><FONT Size=1>' + header2 + '</FONT></TD></TR>';
          if (header3 != '#') headingHTM += '<TR><TD vAlign="top" align="left"><FONT Size=1>' + header3 + '</FONT></TD></TR>';
          headingHTM += '<TR><TD vAlign="top" align="left"><FONT Size=1>' + asofDateTime + '</FONT></TD></TR>';
          headingHTM += '<TR><TD vAlign="top" align="left" Colspan="2"><hr size=2 color=black align=left></TD></TR>';
          headingHTM += '<tr>' + dataTable.rows[0].innerHTML + '<TD> </TD></TR>';
       else {
          leftspancnt = Math.floor(ColumnCnt/2);
          rightspancnt = ColumnCnt - leftspancnt;
          headingHTM += '<TR><TD vAlign=top align=left nowrap Colspan="' + leftspancnt + '"><font Size=3><STRONG>';
          headingHTM += queryTitle;
          headingHTM += '</STRONG></font></TD><TD Rowspan="' + headingspancnt + '" Colspan="' + rightspancnt  + '" align="right" vAlign="top"><input type="image" border="0" name="SAPLogo" src="/sap/bw/Mime/Customer/Images/images.jpg" alt="SAP Logo"></TD></TR>';
          if (header2 != '#') headingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + leftspancnt + '"><FONT Size=1>' + header2 + '</FONT></TD></TR>';
          if (header3 != '#') headingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + leftspancnt + '"><FONT Size=1>' + header3 + '</FONT></TD></TR>';
          headingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + leftspancnt + '"><FONT Size=1>' + asofDateTime + '</FONT></TD></TR>';
          headingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + ColumnCnt + '"><hr size=2 color=black align=left></TD></TR>';
          headingHTM += '<tr>' + dataTable.rows[0].innerHTML + '</TR>';
       return headingHTM;
    function GetPageFooting() {
       var footingHTM = "";
       var leftspancnt = 0;
       var rightspancnt = 0;
       if (ColumnCnt == 1) {
          footingHTM += '<TR><TD vAlign="top" align="left" Colspan="2"><hr size=2 color=black align=left></TD></TR>';
          footingHTM += '<TR><TD vAlign="top" align="left" nowrap><FONT Size=1>Prepared: ';
          footingHTM += PrintDateTimeStamp;
          footingHTM += '</FONT></TD><TD vAlign="top" align="right"><FONT Size=1>';
          footingHTM = footingHTM + 'Page ' + currPage.toString() + ' of ' + varPageTotal.toString();
          footingHTM += '</FONT></TD></TR>';
       else {
          leftspancnt = Math.floor(ColumnCnt/2);
          rightspancnt = ColumnCnt - leftspancnt;
          footingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + ColumnCnt + '"><hr size=2 color=black align=left></TD></TR>';
          footingHTM += '<TR><TD vAlign="top" align="left" nowrap Colspan="' + leftspancnt + '"><FONT Size=1>Prepared: ';
          footingHTM += PrintDateTimeStamp;
          footingHTM += '</FONT></TD><TD vAlign="top" align="right" Colspan="' + rightspancnt + '"><FONT Size=1>';
          footingHTM = footingHTM + 'Page ' + currPage.toString() + ' of ' + varPageTotal.toString();
          footingHTM += '</FONT></TD></TR>';
       return footingHTM;
    function GetReportFooting() {
       var footingHTM = "";
       footingHTM += '</TABLE>';
       return footingHTM;
    function formatToPrint() {
       var PrintHTM = "";
       PrintHTM += GetPageHeadings();
       if (ColumnCnt != 1) {
          for (var i=1;i<dataTable.rows.length;i++) {
               (currPage > prevPage)?prevPage=currPage:"";  //increment current page count
               if ((pageRowCnt + 1)>RowsPerPageMax){
                   PrintHTM += GetPageFooting();
                   pageRowCnt = 0;
                   currPage++;
               if (prevPage != currPage) {
                   PrintHTM += GetPageHeadings();
               else
                   PrintHTM += '<tr>' + dataTable.rows<i>.innerHTML + '</tr>';
                   pageRowCnt++;
       PrintHTM += GetPageFooting();       
       PrintHTM += GetReportFooting();
       return PrintHTM;
    function DisplayPrintNotice() {
    // Paper Size "0" is Letter with Landscape
    // Paper Size "1" is Legal with Landscape
    // Paper Size "2" is Letter with Portrait
    if (varPaperSize == "0") {var varMessage ="nn From your browser File Menu, select Page Setup and do the following: nn 1) Adjust the Printer Orientation to Landscape n 2) select Print menu, then select the Print button.";}
    if (varPaperSize == "1") {var varMessage ="nn From your browser File Menu, select Page Setup and do the following: nn 1) Adjust the Paper Size to Legal n 2) Adjust the Printer Orientation to Landscape n 3) select Print menu, then select the Print button.";}
    //if (varPaperSize == "2") {var varMessage ="nn From your browser File Menu, select Page Setup and do the following: nn 1) Adjust the Paper Size to Letter n 2) Adjust the Paper Source (if necessary) n 3) Adjust the Orientation to Portrait (default) n 4) Select the Okay button nn Again select the File Menu, select Print, then select the Print button.";}
    alert(varMessage);
    //window.print()
    /*   SAP BW Reporting Stylesheet Revisions        */        
    function writeStyleRevisions() {
    function writeDynamicFontRevisions(dynafont) {
    //Writes the Dynamic Stylesheet
    -->
    </script>
    </HEAD>
    <BODY>
    <TABLE  id="tp1" cellSpacing=0 cellPadding=0 width=660 border=0 >
        <TR>
        <TD vAlign=top align=left nowrap>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="MYQUERY"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="WIDTH" value="660"/>
             <param name="BORDER_STYLE" value="NO_BORDER"/>
             <param name="SUPPRESS_REPETITION_TEXTS" value=""/>
             <param name="BLOCK_SIZE" value="3500"/>
             <param name="SHOW_PAGING_AREA_TOP" value="X"/>
             <param name="TARGET_DATA_PROVIDER_1" value="DATAPROVIDER_1"/>
             ITEM:            MYQUERY
    </object>
        </TD>
      </TR>
    </TABLE>
    <SCRIPT type="text/javascript">
    <!--
            var tbls = document.body.getElementsByTagName("TABLE");
            for (var i=0;i<tbls.length;i++) {
                  if (tbls<i>.name == "MYQUERY"){
                        var dataTable = tbls<i>;
                        break;
            document.title = queryTitle;
            rptWidth = dataTable.clientWidth;
            rptHeight = dataTable.clientHeight;
            originalRptWidth = rptWidth;
            originalRptHeight = rptHeight;
            originalRowHeight = Math.floor(rptHeight/(dataTable.rows.length+1));
            rptPageHeightMax = 580;                                                                                //660 less basic header and footer of 80
            if (header2 != '#') rptPageHeightMax = rptPageHeightMax - 20;   // adjust for extra headings
            if (header3 != '#') rptPageHeightMax = rptPageHeightMax - 20;  
            if (dataTable.rows.length == 1) {
                ColumnCnt = 1;                //No Applicable Data found message
            else {
                ColumnCnt = getTotalColumns();
            startingFont = 65;
            varFontSize = startingFont;
            if (rptWidth > WidthMax) {
                while ((rptWidth > WidthMax) && (varFontSize > 15))
                    writeDynamicFontRevisions(varFontSize);
                    rptWidth = dataTable.clientWidth;
                    rptHeight = dataTable.clientHeight;
                    varFontSize = varFontSize - 5;
                // calculate max rows per page
                rowHeight = Math.floor(rptHeight/(dataTable.rows.length+1)) + 1;        // add 1 for 2 row heading, add 1 for padding
                RowsPerPageMax = Math.floor(rptPageHeightMax/rowHeight) - 2;   // adjust for column headings
            if (dataTable.rows.length == 1) {
                varPageTotal = 1;                //No Applicable Data found message
            else {
                totalRows = dataTable.rows.length-1;                                       // total rows less headings
                varPageTotal = Math.floor(totalRows/RowsPerPageMax);       // compute total pages
                if (totalRows != (varPageTotal * RowsPerPageMax)) {
                    varPageTotal = varPageTotal + 1;                                        // if not a complete last page, add 1 for partial page
            currPage = 1;
            document.write(formatToPrint());
            document.all.tp1.style.display = "none";
            document.all.tp1.style.visibility = "hidden";
    //        DisplayPrintNotice();
    -->
    </SCRIPT>
    <STYLE>
    input.ie55   { display: none }
    </STYLE>
    <!-- special style sheet for printing -->
    <STYLE media=print>
    .noprint     { display: none }
    </STYLE>
    <script defer>
    function window.onload() {
        if (!factory.object) {
            return
        else {
    //     factory.printing.header = "SAP"
    //     factory.printing.footer = "SAP"
            if ( varPaperSize == "2" ) { factory.printing.portrait = true; }
            else { factory.printing.portrait = false; }
            factory.printing.Print(true);
            // enable control buttons
      /*  var templateSupported = factory.printing.IsTemplateSupported();
           var controls = idControls.all.tags("input");
           for ( i = 0; i < controls.length; i++ ) {
               controls<i>.disabled = false;
               if ( templateSupported && controls<i>.className == "ie55" )
                  controls<i>.style.display = "inline";
    </script>
    <P>
    <div id=idControls class="noprint" style="VISIBILITY: hidden">
    <input disabled type="button" value="Print this page"
    onclick="factory.printing.Print(true)">
    <input disabled type="button" value="Page Setup..."
    onclick="factory.printing.PageSetup()">
    <input class=ie55 disabled type="button" value="Print Preview..."
    onclick="factory.printing.Preview()">
    <input class=ie55 disabled type="button" value="Landscape"
    onclick="factory.printing.portrait=false">
    <input class=ie55 disabled type="button" value="Portrait"
    onclick="factory.printing.portrait=true">
    </div>
    </BODY>
    </HTML>

  • How do I get a PDF document put into an attachment form that I can drag to an e-mail.  Usually I get an icon showing an spiral note book which then becomes an attachment when I drag it to the e-mail, but occasionally it stays in PDF and prints out on the

    How do I get a PDF document put into an attachment form that I can drag to an e-mail.  Usually I get an icon showing an spiral note book which then becomes an attachment when I drag it to the e-mail, but occasionally it stays in PDF and prints out on the e-mail.  What have I done differently?

    Thanks again for the detailed instructions Srini!
    And I really hate to be a pest . . . but . . .
    Using your example and not modifying it, I get the e-mail form filled out correctly and the pdf attached, however, I'm not prompted to sign it.
    Any more clues?

  • Acrobat 11 Standard Office 2010 Pro Convert Word documents to PDF not working

    Adobe community,
    I can create PDF's inside Word 2010 using the Acrobat Add-in but right clicking a Word document or dragging a Word document into Adobe Acrobat 11 Standard does not work. I have updated both Acrobat 11 and Office 2010 with the latest updates available. Any suggestions would be greatly appreciated.

    Hi markl16215442,
    In order to convert word document to PDF by right-clicking or dragging the file, you must have Adobe PDF printer installed.
    For Windows, please check that Adobe PDF is set as default printer under "Start > Devices and Printers"
    While for MAC, Adobe PDF printer option is no more available and as it was removed with some changes in Apple's policy regarding virtual printers.
    So, check with your OS and then let me know.
    Regards,
    Anubha

  • Acrobat - Convert Office documents to PDF so that it is crawled/indexed by SharePoint search

    Hi there,
    This is a hybrid question between Acrobat and SharePoint and I'll post on both forums....
    Background:
    In a fairly complex application we have a publishing server that utilizes Acrobat to convert Office documents to PDF using the Convert to PDF functionality.
    We then publish that PDF to a library in SharePoint.  We would like to have those published PDFs searchable by SharePoint search.  Unfortunately there is something about these PDFs where SharePoint cannot crawl the content.
    Note:  I do realize that PDFs are not indexable by SharePoint out of the box and I have installed and configured the iFilter utility.  I have been able to index and search for other PDFs, so I know the mechanism works.  It just seems to be these
    particular PDFs.
    I have also manually "Saved as PDF" directly from Word/Excel and those PDFs are crawled by SharePoint....it just seems to be when Acrobat does its conversion.  I'm sure it's just a simple configuration somewhere... I just don't know what I'm
    looking for.
    Another note:  When I open the published PDFs, I am able to use Acrobat's search to find the text.... and the text is selectable; so it's not as if the conversion changed it to an image.
    So....would anyone happen to have encountered this issue?  Or does anyone know what makes a PDF indexable by SharePoint search?
    Thanks in advance

    Hi  ,
    According to your description, my understanding is that the PDFs which are converted from Office documents by Acrobat cannot be crawled in your SharePoint 2010.
    For your issue, please make sure these PDFs version is 1.5(Acrobat 6.x) or above.
    You can take steps as below for verifying:
    Open your PDF using Adobe Reader.
    Go to File -> Properties.
    Check the PDF Version under Advanced section.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Acrobat 10.1.3 Word Crash when converting 2007 document to PDF.

    Word 2007 Crashes with the error seen below, when using the Convert to PDF button on the Acrobat ribbon in Word.  The document may have footnotes.  I can convert other docuemnts to pdf in this fashion.  Is there an issue converting Word Docuements to PDF if they have foot notes?  I saw a post where someone had a table in a docuemnt that was causing Word to crash when it was converted to PDF in this fashion.
    Problem Event Name: BEX
    Application Name: WINWORD.EXE
    Application Version: 12.0.6545.5000
    Application Timestamp: 4c653e57
    Fault Module Name: wwlib.dll
    Fault Module Version: 12.0.6545.5000
    Fault Module Timestamp: 4c653fe2
    Exception Offset: 00cd18bc
    Exception Code: c0000409
    Exception Data: 00000000
    OS Version: 6.1.7600.2.0.0.256.4
    Locale ID: 1033

    Hi,
    I convert several Word documents having footnotes to PDF using Acrobat X and it works fine. Is it possible for you to share your Word file in which you are seeing this issue so that I can investigate? You can send me the file @ [email protected]
    Thanks,
    Love Bisht

  • AcroPDF in VB6 - Find text in PDF and print that page.

    Okay, so I'm certain that this question has been asked and answered a hundred times, but for some reason my googling skills are seriously failing me today...
    I have a legacy application built in VB6 that generates PDF documents of a particular form letter.  Each PDF contains all of the form letters that were printed on that particular day.  I actually have it all working rather decently, but something came up a little while ago that set me on a new programming obsession.  I want to enable the following functionality from my application:
    The user provides a text string that should be unique among all pages of all PDF's (customer ID).
    The application then finds the PDF that contains that text string and identifies which page number contains that text string.
    Finally, send only that page to the printer.
    Currently I can easily create, display and print the PDF from my application.  While the creation of the document is done through a third-party reporting system, all display and printing functions are basically handled using AcroPDF.dll.  Going through the available properties and methods for an AcroPDF object, I see that I can tell it to print only specified pages, which gives me the last part of my requirements, and I've got the user input part down pat.  I'm just totally stumped at finding a solution for "step 2".
    Any suggestions, ideas or comments would be greatly appreciated.  I'm kinda tired of banging my head against a wall.  Thank you for your time.

    If you are only using Adobe Reader, then that feature isn't available.
    If you have Adobe Acrobat, then you have a few options.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 26 Oct 2011 08:15:12 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: AcroPDF in VB6 - Find text in PDF and print that page.
    AcroPDF in VB6 - Find text in PDF and print that page.
    created by GHosaPhat<http://forums.adobe.com/people/GHosaPhat> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3991293#3991293

  • Why do I get a black version when I convert my document to PDF?

    I have been using Microsoft Publisher 2007 with XP to produce a newsletter for over 11/2 years. Today when I converted the file to PDF it is black with all kinds of wierd colors. It looks nothing like the document I produced. This has never happened before. The PDF version last month looked exactly like the white background document I produced with all the fonts in the right colors, including the pictures. This one looks like a 4 year old got ahold of it and colored it any way she wanted. Nothing looks the same as my document. What happened?

    I found out that if I waited about 15 minutes the PDF file became normal. Thank heavens! I've now sent out my newsletter for my Quilt Club to our 90 e-mail subscribers and all of them I have heard from have gotten it the way I had written it. It must just have been a quirk that happened, but I sure am glad it fixed itself. I only have 5 more newsletters to write and then I am done. Thank Heaven. Thank you for trying to help. I was about to become even more crazed than I get when I have to publish the newsletter. I do it once a month and I never would have volunteered for the 2 year job if I had know how much work it is. My husband walks gently when he knows I am trying to put the newsletter together. I'm not usually crabby, but this has made me a nut case once a month. It's a good thing we've been married for 37 years, so he knows that it is only the "newsletter editor nutty lady" that is getting mad at everything and everyone, including him! Thanks for trying to help. You were the only one that answered. JO
    Date: Tue, 6 Jul 2010 03:29:03 -0600
    From: [email protected]
    To: [email protected]
    Subject: Why do I get a black version when I convert my document to PDF?
    How did you convert the file to PDF?
    >

  • Hello, I have includes a Web link in an image. When I convert the document in PDF, the link remains inactive. Could use me? Thank you.

    Hello,
    I have includes a Web link in an image.
    When I convert the document in PDF, the link remains inactive. Could use me?
    Thank you.

    No version of Pages will allow images to be links. We always got around this by bracketting the image with text and making the link in that.
    Pages 5 has lost the ability to have cross links in pdfs and seems to have a bug that disables any links after the first page.
    Peter

  • Problems converting Word documents to  PDF

    I am having trouble converting Word documents to PDF files. Whenever I try to convert the file, I receive the following error message: Missing PDFMaker files. Do you want to run the installer in repair mode? When I run the installer in repair mode, I still receive the same message. I have Adobe Acobat Professional 8 and MS Office 2007 installed on my PC.

    Cannot delete or repair Adobe Acrobat Professional 6.0, nor access original disk since "accidently" using a registry repair program. I have used system restore to no avail.
    The following scenarios occur when trying to "change/remove" Adobe program/updates:
    Attempt to Uninstall:
    Adobe Acrobat/Reader 6.0.6 Update
    WINDOWS INSTALLER window:
    The feature you are trying to use is on a network resource that is unavailable.
    Click OK to try again, or enter an alternate path to a folder containing installation package Adobe Acrobat and Reader 6.0.6 Update.msi in the box below.
    C:\Program Files\Adobe\{9074E407-55DC-4A4C-A591-6ADA60386EF4}\
    Click Okay and appears--
    ADD OR REMOVE PROGRAMS window:
    The installation source for this product is not available. Verify that the source exists and that you can access it.
    Attempt to Uninstall:
    Adobe Acrobat/Reader 6.0.5 Update
    WINDOWS INSTALLER window:
    The feature you are trying to use is on a network resource that is unavailable.
    Click OK to try again, or enter an alternate path to a folder containing installation package Adobe Acrobat and Reader 6.0.6 Update.msi in the box below.
    C:\Program Files\Adobe\{490A4339-AFA5-4098-A374-7752A1A30308}\
    Click Okay and appears--
    ADD OR REMOVE PROGRAMS window:
    The installation source for this product is not available. Verify that the source exists and that you can access it.
    Attempt to Uninstall
    Adobe Acrobat/Reader 6.0.1 Professional
    ADD OR REMOVE PROGRAMS window:
    This patch package could not be opened. Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer patch package.
    Anyway to recover functionality to remove/change (uninstall/repair)?
    I also am unable to access the original disc now. WINDOWS INSTALLER window:
    This patch package could not be opened. Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer patch package.
    Any help available?

Maybe you are looking for

  • Error opening the form in Reader 7

    I have designed a form in LiveCycle designer 8. The form has a regular Submit button which posts data a URL (a java servlet) using HTTP URL encoded. The form opens and works as expected in versions 8 and 9. However, when I open the form in 7, I get t

  • Emails are not coming through to my gmail account - but are coming through on my iPhone -  whats happening??

    My iMac O S X lion is not receiving incoming emails - but they are coming through on my iPhone 5 - whats is happening out there?? help please

  • Dynamic list of pages / site map of pages

    Hi, I've figured out how to add a Page Query to the Navigation. Now I want to have something similar on a page for a kind of site map. How do I display a dynamic list of pages on a page? cheers, Matthias Edited by: mprove on Jan 5, 2012 12:15 PM

  • EBS performance impact using it as a Data Source

    I have a quick question on EBS performance. If I set up the EBS Database as a data source for SSRS (SQL Server Reporting Services), would there be a performance impact on EBS, due to SSRS accessing EBS Data for reports generation? Now, I know there'l

  • Getting started with webservices

    hello i'm doing voluntary work at a software company i shall install sunONE means the iplanet application server iplanet web server, soap protocoll, etc. i managed to do so and also running the helloworld and fortune examples that came with the app s