Convert a query php pdf

Hello to all of the forum,
My question is this, I am developing a page where you have a mysql query, the query works perfectly I'd like to know how do I make this query in pdf so that the person can download the pdf.
Can anyone help me.
Below is the coding.
<?php require_once('Connections/conn_vbso.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;   
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  return $theValue;
mysql_select_db($database_conn_vbso, $conn_vbso);
$query_rs_area_de_atuacao = "SELECT * FROM area_atuacao ORDER BY area_atuacao_id ASC";
$rs_area_de_atuacao = mysql_query($query_rs_area_de_atuacao, $conn_vbso) or die(mysql_error());
$row_rs_area_de_atuacao = mysql_fetch_assoc($rs_area_de_atuacao);
$totalRows_rs_area_de_atuacao = mysql_num_rows($rs_area_de_atuacao);
$maxRows_rs_destaques = 2;
$pageNum_rs_destaques = 0;
if (isset($_GET['pageNum_rs_destaques'])) {
  $pageNum_rs_destaques = $_GET['pageNum_rs_destaques'];
$startRow_rs_destaques = $pageNum_rs_destaques * $maxRows_rs_destaques;
mysql_select_db($database_conn_vbso, $conn_vbso);
$query_rs_destaques = "SELECT * FROM destaques ORDER BY destaques_id DESC";
$query_limit_rs_destaques = sprintf("%s LIMIT %d, %d", $query_rs_destaques, $startRow_rs_destaques, $maxRows_rs_destaques);
$rs_destaques = mysql_query($query_limit_rs_destaques, $conn_vbso) or die(mysql_error());
$row_rs_destaques = mysql_fetch_assoc($rs_destaques);
if (isset($_GET['totalRows_rs_destaques'])) {
  $totalRows_rs_destaques = $_GET['totalRows_rs_destaques'];
} else {
  $all_rs_destaques = mysql_query($query_rs_destaques);
  $totalRows_rs_destaques = mysql_num_rows($all_rs_destaques);
$totalPages_rs_destaques = ceil($totalRows_rs_destaques/$maxRows_rs_destaques)-1;
mysql_select_db($database_conn_vbso, $conn_vbso);
$query_rs_ano = "SELECT * FROM ano_de_destaque ORDER BY ano_destaque_ano DESC";
$rs_ano = mysql_query($query_rs_ano, $conn_vbso) or die(mysql_error());
$row_rs_ano = mysql_fetch_assoc($rs_ano);
$totalRows_rs_ano = mysql_num_rows($rs_ano);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Description" content="Prestamos assessoria jurídica em todas as áreas do Direito ligadas à atividade empresarial, sobretudo em questões envolvendo Direito Societário, Tributário, Bancário e dos Mercados Financeiro e de Capitais. Nossa meta é desenvolver alternativas e soluções jurídicas que forneçam respostas adequadas e eficazes às demandas corporativas e o suporte necessário à tomada de decisão de nossos clientes. Nossos profissionais possuem reputação nacional e internacional nas suas respectivas áreas de atuação, sendo reconhecidos pela sua alta qualidade técnica, excelência no atendimento a clientes e elevados padrões éticos." />
<meta name="google-site-verification" content="RnkYE2FRc22y4CuGrMQsWABkKj2PQOqi1xO9C2TlY6w" />
<title>Vaz, Barreto, Shingaki &amp; Oioli Advogados</title>
<link href="css/estilo.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#principal #idioma ul li a.menupt { background:url(images/marcador_idoma_hover.png) no-repeat; color:#FFF; }
.destak { width:290px; float:left; margin: 0px 9px; }
.redes img{border:none;}
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/ecmascript" src="jqFancyTransitions.1.8.min.js"></script>
<script type="text/javascript">
$(document).ready( function(){
          $('#imagem').jqFancyTransitions({ effect: 'zipper', width: 959, height: 151, position: 'alternate', delay: 3000  });
</script>
<script src="SpryAssets/SpryDOMUtils.js" type="text/javascript"></script>
<script src="index.js" type="text/javascript"></script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-20550628-1']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
</script>
</head>
<body>
<div id="principal">
          <?php include('menu_topo.php'); ?>
  <?php include('topo.php'); ?>
<div id="logo">
          <a href="index.php"><img src="images/logo.png" alt="Vaz, Barreto, Shingaki &amp; Oioli Advogados" name="marca" width="361" height="39" id="marca"/></a>
</div>
<?php include ('menu_idioma.php')?>
          <div id="imagem">
          <img src="images/imagem1.jpg" width="961" height="151" alt="" />
              <img src="images/imagem.jpg" width="961" height="151" alt="" />
  </div>
  <div id="area_atuacao">
    <h2>Áreas de Atuação</h2>
    <ul>
      <?php do { ?>
        <li><a href="areas_de_atuacao.php?id=<?php echo $row_rs_area_de_atuacao['area_atuacao_id']; ?>" class="area_de_atuacao<?php echo $row_rs_area_de_atuacao['area_atuacao_id']; ?>" title="<?php echo $row_rs_area_de_atuacao['area_atuacao_titulo']; ?>"><?php echo $row_rs_area_de_atuacao['area_atuacao_titulo']; ?></a></li>
        <?php } while ($row_rs_area_de_atuacao = mysql_fetch_assoc($rs_area_de_atuacao)); ?>
    </ul>
    </div>
  <div id="noticias_home">
    <h3>Destaques</h3>
    <?php do { ?>
    <div class="destak">
        <h4><?php echo $row_rs_destaques['destaques_titulo']; ?></h4>
        <?php echo( strlen($row_rs_destaques['destaque_conteudo']) > 190 ? substr($row_rs_destaques['destaque_conteudo'],0,190)."..." : $row_rs_destaques['destaque_conteudo']) ?>
        <h6><a href="destaques.php?ano=<?php echo $row_rs_ano['ano_destaque_ano']; ?>&amp;id=<?php echo $row_rs_destaques['destaques_id']; ?>" title="Veja mais" style="margin-top:10px; ">Veja mais</a></h6>
    </div>
        <?php } while ($row_rs_destaques = mysql_fetch_assoc($rs_destaques)); ?>
        <p style="margin-bottom:7px;"> </p>
  </div>
          <?php include('rodape.php') ?>
</div>
</body>
</html>
<?php mysql_free_result($rs_area_de_atuacao); mysql_free_result($rs_destaques); mysql_free_result($rs_ano); ?>
Rodrigo Vieira da Silva Eufrasio
rodrigo.mct @ gmail.com
55 11 6691-5299
Brazil - Sao Paulo - Osasco
www.brandcompany.com.br

Try tye FPDF library:
http://www.fpdf.org/
Other libraries are also avaiable if you search the web.

Similar Messages

  • Converted internalServerReporting from .php to .cfm

    I posted this on the general discussion forum but it doesn't seem to be getting any looks....
    Hi
    I recently converted the internalServerReporting.php file to .cfm, since I'm not yet using a LMS and I just needed to capture quiz results.
    I'm writing the results of my Captivate 7 quiz to a .txt file successfully (an insert query too). My Captivate 7 quiz completes and immediately after the user fills out and clicks the Send button in the Post Results dialog box (where they enter their name and email id) I get an Adobe Captivate error message in a dialog box with "Unknown Error" and an OK button.
    I think this is a Captivate error and not a Coldfusion error, as my Coldfusion "internalServerReporting.cfm" writes the text file as expected, and the Coldfusion server error logs are empty. Does anyone know how I can turn on/enable any available debugging data in Captivate so that I can trap this error?
    For your convenience my .cfm file is pasted below.
    Thanks in advance for your help,
    Rich
    Rich Leach
    Interactive Media Developer
    Advanced Certified ColdFusion Developer
    <cfsavecontent variable="results">
    <cfoutput>
    Company name: #form.companyname#<br>
    Department name: #form.departmentname#<br>
    Course name: #form.coursename#<br>
    File name: #form.filename#<br>
    File data: #form.filedata#<br>
    <cfset retXml=#xmlParse(form.filedata)#>
    Learner name: #retXml.Course.LearnerName.xmlAttributes["value"]#<br>
    Learner email: #retXml.Course.LearnerID.xmlAttributes["value"]#<br>
    Lesson name: #retXml.Course.LessonName.xmlAttributes["value"]#<br>
    Quiz attempts: #retXml.Course.QuizAttempts.xmlAttributes["value"]#<br>
    Total questions: #retXml.Course.TotalQuestions.xmlAttributes["value"]#<br>
    Status: #retXml.Course.Result.CoreData.Status.xmlAttributes["value"]#<br>
    Location: #retXml.Course.Result.CoreData.Location.xmlAttributes["value"]#<br>
    Raw Score: #retXml.Course.Result.CoreData.RawScore.xmlAttributes["value"]#<br>
    Max Score: #retXml.Course.Result.CoreData.MaxScore.xmlAttributes["value"]#<br>
    Min Score: #retXml.Course.Result.CoreData.MinScore.xmlAttributes["value"]#<br>
    Session Time: #retXml.Course.Result.CoreData.SessionTime.xmlAttributes["value"]#<br >
    </cfoutput>
    </cfsavecontent>
    <cffile action="write" file="/Applications/ColdFusion10/internal.timetracker/runtime/work/Ca talina/localhost/tmp/captivateTestResults.txt" output="#results#" nameconflict="overwrite">

    Jim
    ...jeez, what a rookie mistake....
    I did some debugging and found this reported error in my browser (Chrome):
    XMLHttpRequest cannot load http://127.0.0.1:8503/captivate/internalServerReporting.cfm. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
    From my years of web development I immediately recognized this error; it's a cross domain issue. But, I'm running everything localhost, what's not in the same dom.... Oh yeah, right after publishing the Captivate movie a dialog box appears "Publish was successful. Do you wish to view the output?" Naturally I clicked yes, which opened the .html file locally in my browser (as in File:Open) and NOT served from the web server (as in http://127.0.0.1/myCaptivateTest/).
    As soon as I ran my Captivate test movie from the web server everything ran just fine.
    Thanks for your help and patience. This script officially now works, so if anyone needs to record Captivate test/quiz results on a Coldfusion server, feel free to copy the above Coldfusion code into your own "internalServerReporting.cfm" and tell Captivate in your preferences where to expect it on your Coldfusion server.
    Rich

  • Converting binary data into pdf and placing into application server

    Hi Friends,
    I am able to get PO details in binary format and then using GUI_DOWNLOAD  with file type with 'bin' and file name with 'sample.pdf' extension , got  PO in pdf  format.
    But i need to get with pdf extension in application server without using GUI_DOWNLOAD.
    Is there any functional modules for it?
    With Warm Regards,
    Madhu!!!

    Hi Madhu,
    Check this code.
    *& Report  ZSPOOLTOPDF                                                 *
    *& Converts spool request into PDF document and emails it to           *
    *& recipicant.                                                         *
    *& Execution                                                           *
    *& This program must be run as a background job in-order for the write *
    *& commands to create a Spool request rather than be displayed on      *
    *& screen                                                              *
    REPORT  zspooltopdf.
    PARAMETER: p_email1 LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_sender LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_delspl  AS CHECKBOX.
    *DATA DECLARATION
    DATA: gd_recsize TYPE i.
    Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Write statement to represent report output. Spool request is created
    if write statement is executed in background. This could also be an
    ALV grid which would be converted to PDF without any extra effort
      WRITE 'Hello World'.
      new-page.
      commit work.
      new-page print off.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
    Alternative way could be to submit another program and store spool
    id into memory, will be stored in sy-spono.
    *submit ZSPOOLTOPDF2
           to sap-spool
           spool parameters   %_print
           archive parameters %_print
           without spool dynpro
           and return.
    Get spool id from program called above
    IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
        PERFORM convert_spool_to_pdf.
        PERFORM process_email.
        if p_delspl EQ 'X'.
          PERFORM delete_spool.
        endif.
        IF sy-sysid = c_dev.
          wait up to 5 seconds.
          SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
        ENDIF.
      ELSE.
        SKIP.
        WRITE:/ 'Program must be executed in background in-order for spool',
                'request to be created.'.
      ENDIF.
          FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
          FORM get_job_details                                          *
    FORM get_job_details.
    Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
          FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
          FORM process_email                                            *
    FORM process_email.
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      CHECK gd_recsize > 0.
      PERFORM send_email USING p_email1.
    perform send_email using p_email2.
    ENDFORM.
          FORM send_email                                               *
    -->  p_email                                                       *
    FORM send_email USING p_email.
      CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = 'Attachname'.
    CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'Message Body text, line 1'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Message Body text, line 2...'.
      APPEND it_mess_bod.
    If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_mess_bod
                                          it_mess_att
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 changing gd_error
                                          gd_reciever.
    ENDFORM.
          FORM delete_spool                                             *
    FORM delete_spool.
      DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
      ld_spool_nr = gd_spool_nr.
      CHECK p_delspl <> c_no.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = ld_spool_nr.
    ENDFORM.
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables it_message
                                              it_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
    data:   t_packing_list like sopcklsti1 occurs 0 with header line,
            t_contents like solisti1 occurs 0 with header line,
            t_receivers like somlreci1 occurs 0 with header line,
            t_attachment like solisti1 occurs 0 with header line,
            t_object_header like solisti1 occurs 0 with header line,
            w_cnt type i,
            w_sent_all(1) type c,
            w_doc_data like sodocchgi1.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_receivers
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    Hope this resolves your query.
    <b>Reward all the helpful answers.</b>
    Regards

  • How do I convert my book cover pdf and text pdf to grayscale?

    1 ) How do I convert my photoshop book cover pdf to CMYK and remove all color and 2) How do I convert my Indesign text pdf file 'to grayscale for all black and whit images'?  

    Hello Mylenium, thank you for responding. My query has to do with the fact that it is already in pdf mode and it needs to be sent to the book printer. They will only accept the file in grayscale for the text matter file and the colored cover file needs to be in CMYK. I can't seem to correct the issue with everything internally that I've done. I currently have Acrobat XI and the tutorial creation files are in an earlier screen. So, the flow is not the same. I do not see the flow of conversion in the Ac. XI as they show in their creation file demands. Does this make sense?

  • Converting Framemaker files into PDF progaramatically using publishing server

    Hi All
    Background:
    We are going for upgrade of  Frame maker 8 which is on unix system  to FM 10 or 11. We are using Framemaker mainly for renditions, i.e to convert the fm documents to PDF. To convert fm document to PDF we are using the below mentioned command line utility available in FM 8.(on unix). /opt/app/frame8.0/bin/fmprint -i -p Sample.fm.fmtpl Sample.fm Currently the the fm file which need to converted to PDF and the FM 8(installed) are available on the same unix system ,so we were able to initiate/use the command line utility of FM 8. The rendition of the FM to PDF is On -Demand.( We are not running any batch activities/ bulk renditions).We are rendering the document as soon as the document  is available.
    Requirement:
    As we are going to  upgrade the FM to newer versions which would be installed on the Windows machine as Frame maker 10 or 11 will not support unix plat form, so can you please let us know which option is better to use i.e we want to convert fm file to PDF using java program without any manual intevention using publishing server/client version.
    can any one help us as it is very urgent for us.
    please let us know the ways to do and links for helpful documents .
    thank you very much for your help in advance!!\
    Best reagrds
    Ramesh babu

    Hi Ramesh...
    Another alternative (if you need more control over the doument creation) is to use Leximation's AutoFM ..
        http://leximation.com/tools/info/autofm.php
    Cheers,
    ...scott
    Scott Prentice
    Leximation, Inc.
    www.leximation.com

  • Convert SPList Items to PDF using iTextSharp

    Hi, how can i convert SPList Items to PDF using itextsharp?

    hi
    in addition to other replies I would like to mention that most natural way to give users possibility to export list item to pdf is to create new context menu command  "Export to PDF" (in those context menu which is shown when mouse pointer
    hovers the list item) and handler of this command in query string should receive ID of list item, for which user clicked it (it can be implemented as common ASP.Net ashx handler). Then in codebehind handler should open list item using passed id and send fields'
    values to itextsharp or any other library you would like to use for exporting to PDF. In order to see how to create PDF documents with itextsharp you should check documentation of this library.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • Convert web pages to pdf in Firefox?

    I just started using Firefox 3.6. Is there a reliable add-on for Firefox that will enable me to convert web pages to pdf's, complete with working links?
    I have Acrobat 9 Standard installed. When I used IE, I had a toolbar that allowed such a conversion, but I haven't come across the same for Firefox.
    Help?
    Thanks.
    Ken

    Thank you for your recent email.  My inbox is protected by ChoiceMail One, the leader in anti-spam technology.  ChoiceMail is holding the message you sent because your email address is not on my list of approved senders.
    Please click on the link below.  This will take you to a sender verification page.  Sender verification is a one-time process which takes only a few seconds.  This will let me add you to my list of approved senders and receive your original email.
    ChoiceMail sender verification: http://cm.digiportal.com/php/CR/cmregister.php?data=56UqYN5Y34CQ7UDGRIDCJkV740IFtyTM6MedK6 hK0JcW9NUC9gPyo6BH8dtfgMc7QjocWfhYRdwBkKSu9EQk3g5VbeHEAQ32SFsV0uTZCY4%2FW6itDQ6eTQ%3D%3D
    Please be aware that if you do not complete sender verification within 4 days, ChoiceMail will automatically delete your original message.
    To find out how ChoiceMail can make you spam free, please visit http://www.digiportal.com

  • How to make Adobe acrobat feature to convert SAP  Pages to PDF available for multiple users connected to the same server

    We have installed Adobe Acrobat X Pro- English,Francais,Deutsch version 10.1.9 in our test environment and tried  testing it for converting SAP pages into PDF with a few pilot users. In doing so we faced a challenge, where only one user at a time can use Adobe Acrobat PRO to convert SAP pages in to PDF.As long as the first user who  is connected to Adobe Acrobat Pro via SAP isn’t logged off, other users connected to the same  server  are not being able to get the “Save As” dialog box to save the PDF in their preferred location.
    This is a business requirement and we need an urgent solution for the same. Can anyone help us in telling us if this is possible and if yes the how to go about?

    It's not something we deal with here, the LiveCycle products are a different world. Key points: Adobe LiveCycle is a range of products, some desktop, some server. LiveCycle PDF Generator is the one you should look at, it comes in 3 editions. License terms are by negotiation. Key management is via its Java API.

  • How to convert word doc into pdf - which product of adobe i need to use- what upgrades - am a newbie

    How to convert word doc into pdf - which product of adobe i need to use- what upgrades - am a newbie -  simple answers please - Thanks in advance.

    @Pipeline2007 - which version of Microsoft Office have you got? Older versions of Acrobat aren't compatible with the latest versions of Office, see this link for info:
    http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html

  • Is it possible to convert a DWF to PDF using a command line or batch  process. How can I see this in action?

    I need to convert DWF files to PDF. Is this possible?  Adobe able to batch them and can they be converted via a batch or scheduled process. 
    We have a team placing DWF files on a network drive.  Then we need to scoop them up and convert them. Using SSIS or a C# program we can move the converted files to an archive folder.  Is this possible to do using Adobe?

    Hi pnorm,
    Please check the 'Convert AutoCAD files in batches' section in the Doc : http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7f35.w .html
    Regards,
    Rave

  • Why is it taking so long to convert my docx to PDF?

    It is taking a long time to convert my docx to PDF.  My docx is 74KB and contains a picture

    Hi danielc77590163,
    Did your file finish converting? If it did, you may have just run into an issue with your Internet connection/upload speed.
    If it stalled, or you received an error message, please clear the browser cache and then try again. If that fails, then we'd want to take a closer look at what's going on. Do other files convert for you? Are you converting via Adobe Reader or via the ExportPDF web interface? How was this particular PDF file created?
    Best,
    Sara

  • Error: EXOpenExport() while converting xlsb file to PDF

    I am getting this error while converting .XLSB file to PDF using IBR :Step PDFExport forced conversion failure by conversion engine because of error: EXOpenExport() failed: no filter available for this file type (0x0004). Can anyone tell me how to resolve this issue.
    Thanks in advance.

    Thank you for all your intrest.
    The error message I get is... "an unexpected error occured. PDFMaker was unable to process the request".
    When I then try to convert again, the system opens the ppt, but then does not do anything, and the error message does not show, for all presentations I try to convert.
    I have also tried using the ribbon, but the button does not do anything once I have clicked.
    I can print to PDF, but this provides an output which is not suitable, because it shows as if it each slide was printed on to paper and then put in PDF.
    I have also uninstalled and reinstalled Acrobat to make sure nothing was corrupt.

  • 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

  • When I converted a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How can I solve this problem?

    When I tried to convert a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How do I solve this problem?  I don't know how to change it from Read Only.

    Dear Sara
    Thank you very much for sending the converted file.  Yes, I am able to edit it - that will be very useful to me and I appreciate your help.
    Referring to your previous message when you said you'd converted via Acrobat and not Acrobat.com, I'm converting via Acrobat.com because that's the only option that is shown (how do I convert via Acrobat? - perhaps that would be more successful).  I'm using the Export PDF website, and the OCR is enabled to "Recognize text in English UK".  However, I've just tried converting a different LPA pdf form, this time for Health & Welfare https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/245571/LPA114_He alth_welfare_LPA.pdf and again I have the same problem as before.  I've altered it from "Read only" and thought I'd then be able to enter text, but "Drawing Tools" is shown in the pane and I'm unable to enter anything onto the form - everything appears to be in images.  Also, the lettering on the heading of' page 1 has become jumbled, with the word "Public" overlaying the word "Guardian."  Any suggestions as to what it is I'm doing wrong would be welcome - I don't like to be beaten!
    Regards,
    Judith.

  • Convert Word doc to PDF

    I need assistance on this issue:
    "Enter Description of Issue:
    We are trying to implement a solution to automatically convert Word documents generated by Siebel to PDF's in order to mail them to customers.
    I see from other support requests you advice to find 3rd part software to do this. Can you tell me if you know of any 3rd party software that another Siebel customer has been able to use to do this?
    We wish to call this software fom script or workflow so that the converted document can then be attached back into siebel and mailed to a customer.
    I understand the principle of how we can get documents from the file system and then using com or a command line call an application that will do the conversion, but as yet we have not found a good 3rd party software to do the conversion."
    So far, I suggest one Enhancement Request(12-161Y57N) to customer but seems is not enough.
    The last update from customer side, was:
    "Is it possible to just give me a plain answer to my main question.
    Do you know of any other customers who have similar functionality and do you know what application they sed to do the conversion? "
    Do you have any idea on regards on PDF converter?
    Edited by: user808626 on 05.06.2009 02:49

    Hi,
    Can we convert the word doc to PDF using PI intarface.
    I think it is not possible convert the word doc to PDF. Since they are Proprietary  format of Microsoft and Adobe respectively
    my source system sends a doc file & I have to convert it into a PDF doc and then further I have to sent it to target,
    You might have to convert the word document to PDF using available software and then send to target system
    You might have to develop some module program to convert.
    There is one similar blog which explains conversion from XML to PDF. It might help you
    /people/divya.vidyanandanprabhu/blog/2005/06/28/converting-xml-to-pdf-using-xi
    regards
    Ramesh

Maybe you are looking for