PDF Image printing, base64encoded blobs

Hi guys!
I'm trying to extract images from a table (blob) and put it in a PDF-report, through ApEx.
After reading this blogpost about image-blobs in reports(http://blogs.oracle.com/xmlpublisher/2006/05/05#a34) I thought "this was interesting, this is exactly what my customer want". So, I made a function to dump the blob as base64-data (found some codesnippets here and there..):
function BLOB2CLOBASE64( p_blob IN BLOB ) RETURN CLOB
IS
pos PLS_INTEGER := 1;
buffer VARCHAR2( 32767 );
res CLOB;
lob_len INTEGER := DBMS_LOB.getLength( p_blob );
BEGIN
DBMS_LOB.createTemporary( res, TRUE );
DBMS_LOB.OPEN( res, DBMS_LOB.LOB_ReadWrite );
LOOP
buffer := utl_raw.cast_to_varchar2(utl_encode.base64_encode( DBMS_LOB.SUBSTR( p_blob, 32000, pos )));
IF LENGTH( buffer ) > 0 THEN
DBMS_LOB.writeAppend( res, LENGTH( buffer ), buffer );
END IF;
pos := pos + 32000;
EXIT WHEN pos > lob_len;
END LOOP;
RETURN res; -- res is OPEN here
END BLOB2CLOBASE64;
Works great! I get the imagefile dumped as base64.
So, time to try this out. I make a Report query in ApEx, and
do a
"select blob2clobase64(image_file) IMAGE from testphotos"
XML gets dumped, and I can load it into my BI Publisher Desktop/Word. I do like it's done in the blogpost above, and enter the following for the IMAGE-field:
<fo:instream-foreign-object content-type="image/jpg">
<xsl:value-of select="IMAGE"/>
</fo:instream-foreign-object>
(In the examplecode from the above blog-link; see how this code is entered in the Help-section when you do "Properties" for the field).
Ok, here goes, let's give it a try: Preview -> PDF and out pops two wonderful pictures that's in my table 'testphotos '. Hooray!
I save the template, and upload it to ApEx through the Create Report Query-wizard. Go to the last page. Press "Test query". Out comes: A PDF-file with all the text from the template, but no pictures.
What have gone wrong? Any inputs?
Thanks for now,
Vidar
PS: Size of the 2 images together is 10-15kb max.
PS2: Application Express 3.0.0.00.20
Message was edited by:
Vidar
: added apex versioninfo

Hello
Just wanted to give this a bump, as I made this thread just before the weekend. It's dropped quite long, so thought I'd bring it upfront again now that people might be back.
Regards,
Vidar

Similar Messages

  • Exported pdf images print very dark

    I bought a new color laser printer a Samsung clp-610nd. Samsung support has been awful. The pdf I am trying to print has image, jpgs from photoshop. I use a Macbook Pro. The pdf text prints great, the images are very dark. I can print the pdf on a deskjet and the images are accurate. I am sure this is a color issue but I dont know what I am doing wrong. Any thoughts on where to start?  If I print straight from indesign, the images are also dark. I just dont know enough color profiles to figure this out.

    Stix Hart wrote:
    As you've proved yourself this is a printer problem, not Indesign...
    Ah, but which printer?
    Without a calibrated and profiled monitor there's no way to know if the image is displaying correctly, and consequently of knowing if either printer is rendering correctly.
    Make sure you aren't managing color twice. Either your application or the printer should be using color management, but not both. I prefer to let the application do it if it can.
    You can play with profiles until you are blue in the face, but it will be shooting blind unless you calibrate the monitor first, and it will be even better if you get custom profiles for the printers. The odds are equally good that your inkjet prints light as that the laser prints dark. Most laser drivers also include density adjustments that allow you to print darker or lighter.
    Peter

  • How to print a BLOB (image) on a PDF report using Oracle APEX Listener as Print Server

    Hi,
    I use APEX 4.2.
    I have the following query as SQL text for a Report Queries in Shared Components:
    select
        customer_id,
        cust_first_name,
        cust_last_name,
        cust_street_address1,
        cust_street_address2,
        cust_city,
        cust_state,
        cust_postal_code,
        phone_number1,
        phone_number2,
        credit_limit,
        cust_email,
        filename,
        company_profile,
        -- customer_image,
        decode(nvl(dbms_lob.getlength(customer_image),0),0,null,
        '<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius: 4px;" '||
        'src="' ||
        apex_util.get_blob_file_src('P22_CUSTOMER_IMAGE', customer_id) ||
        '" height="75" width="75" alt="Photo Customer" title="Photo Customer" />') customer_image,
        mimetype,
        image_last_update
    from
        demo_customers;
    I am unable to have the image printed on the PDF report. Even when the P22_CUSTOMER_IMAGE is defined as session state item.
    Does someone knows how to print such image/BLOB in a PDF report?
    Thanks by advance.
    Kind Regards.

    Hi,
    Indeed, I would need a custom layout.
    Unfortunately, it seems (according to this white paper) not possible with the APEX listener only. I would need a third pary tool. A pity...
    For me strange, that I cannot generate such a report having images or pictures in a pre-definied report layout... Maybe a future enahancement for Oracle.
    Kind Regards.

  • How to insert a pdf or jpeg image into a blob column of a table

    How to insert a pdf or jpeg image into a blob column of a table

    Hi,
    Try This
    Loading an image into a BLOB column and displaying it via OAS
    The steps are as follows:
    Step 1.
    Create a table to store the blobs:
    create table blobs
    ( id varchar2(255),
    blob_col blob
    Step 2.
    Create a logical directory in the database to the physical file system:
    create or replace directory MY_FILES as 'c:\images';
    Step 3.
    Create a procedure to load the blobs from the file system using the logical
    directory. The gif "aria.gif" must exist in c:\images.
    create or replace procedure insert_img as
    f_lob bfile;
    b_lob blob;
    begin
    insert into blobs values ( 'MyGif', empty_blob() )
    return blob_col into b_lob;
    f_lob := bfilename( 'MY_FILES', 'aria.gif' );
    dbms_lob.fileopen(f_lob, dbms_lob.file_readonly);
    dbms_lob.loadfromfile( b_lob, f_lob, dbms_lob.getlength(f_lob) );
    dbms_lob.fileclose(f_lob);
    commit;
    end;
    Step 4.
    Create a procedure that is called via Oracle Application Server to display the
    image.
    create or replace procedure get_img as
    vblob blob;
    buffer raw(32000);
    buffer_size integer := 32000;
    offset integer := 1;
    length number;
    begin
    owa_util.mime_header('image/gif');
    select blob_col into vblob from blobs where id = 'MyGif';
    length := dbms_lob.getlength(vblob);
    while offset < length loop
    dbms_lob.read(vblob, buffer_size, offset, buffer);
    htp.prn(utl_raw.cast_to_varchar2(buffer));
    offset := offset + buffer_size;
    end loop;
    exception
    when others then
    htp.p(sqlerrm);
    end;
    Step 5.
    Use the PL/SQL cartridge to call the get_img procedure
    OR
    Create that procedure as a function and invoke it within your PL/SQL code to
    place the images appropriately on your HTML page via the PL/SQL toolkit.
    from a html form
    1. Create an HTML form where the image field will be <input type="file">. You also
    need the file MIME type .
    2. Create a procedure receiving the form parameters. The file field will be a Varchar2
    parameter, because you receive the image path not the image itself.
    3. Insert the image file into table using "Create directory NAME as IMAGE_PATH" and
    then use "Insert into TABLE (consecutive, BLOB_OBJECT, MIME_OBJECT) values (sequence.nextval,
    EMPTY_BLOB(), 'GIF' or 'JPEG') returning BLOB_OBJECT, consecutive into variable_blob,
    variable_consecutive.
    4. Load the file into table using:
    dbms_lob.loadfromfile(variable_blob, variable_file_name, dbms_lob.getlength(variable_file_name));
    dbms_lob.fileclose(variable_file_name);
    commit.
    Regards,
    Simma........

  • Is there a difference between saving a word doc with images as a pdf or printing to pdf?

    Is there a difference between saving a word doc with images as a pdf or printing to pdf. Images are sometimes missing when the document is  saved as a pdf or they are visible to the document owner but seem to disappear when viewed after submission to grants.gov. and proposal Central.
    Using Acrobat 9.5.5 and Office 2010 and Office 2011 Mac

    Is there a difference between saving a word doc with images as a pdf or printing to pdf. Images are sometimes missing when the document is  saved as a pdf or they are visible to the document owner but seem to disappear when viewed after submission to grants.gov. and proposal Central.
    Using Acrobat 9.5.5 and Office 2010 and Office 2011 Mac

  • All my pdf are printing mirror image since i started the subscription for adobe

    all my pdf are printing mirror image since i started the subscription for adobe

    Hi pintu777,
    I see that you just got an ExportPDF subscription. That shouldn't have any affect on the way that your PDF files are printing. Has anything else changed on your system? What are you printing to and from (Reader or Acrobat)? Do other types of files print mirrored as well?
    I look forward to  hearing back from you with a few more details. We'll get this sorted out.
    Best,
    Sara

  • Lost pdf image when saving from 'print'?. Michael

    I have suddenly lost the ability to save as pdf from 'print'. It still save but the image is lost. I can still save as pdf after a scan. I am not aware of making any change, although adobe reader did an update the other day?!.Can anyone help please

    mibatch wrote:
    I have suddenly lost the ability to save as pdf from 'print'. It still save but the image is lost.
    Are you sure that you are saving to correct folder, for instance I have Desktop selected?

  • 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 to generate a .pdf output for a BLOB column?

    Hi friends,
    (Forms 6i)
    I have a .pdf into a blob column and I want to show that .pdf as my report output...
    Example-> The report only have this query:
    select myblob_ column
    from mytable
    the column in database has the .pdf ... but when I execute the report, it only appears some information when I put the item to show as Text... But obviously it's not the ofriginal pdf...
    If I try to put as OLE2 doesn't appear either anything and if I try to put it as an Image, it appears a message error.
    Any ideas?
    Thanks.
    Jose.

    Hello,
    How has been "uploaded" the PDF file in the BLOB ?
    Regards

  • PDF docs prints black boxes instead of my pictures, Printing with Reader works

    I have one user running the most updated version of Adobe Acrobat 9 (v9.4.5 I believe it is) and when she opens a PDF document that has pictues you can see the pictures and make changes to the document as needed.  However, when you go to print, all the images in the PDF document are all Black boxes.
    Now if I open this same file in Adobe Reader (any version thus far has worked) the images are there and print preview and printing all work, the images print.  It is just in Adobe Acrobat that I have black boxes.
    I would really rather not uninstall / reinstall if it can be avoided.
    thanks,
    Willie IT

    Are you still needing help? I came across this post and wanted to make sure that everything is now working for you with  your printer and ePrint. 
    I am a former employee of HP...
    How do I give Kudos?| How do I mark a post as Solved?

  • Can't print .indd booklet to PDF; opens print utility instead of Acrobat

    Thanks in advance for any help you can lend.
    I have a 16 page .indd document that I'm trying to export via "print booklet", using Adobe PDF 9.0 as my printer. Every time I try to print as a PDF, it goes through the process of compiling the images, loading fonts, etc., but then my printer utility opens (obviously giving an error) instead of Acrobat. When I just choose export as PDF I have no issues whatsoever; Acrobat opens and it saves properly. I need the document, though, in a saddle stitch imposed format for the printer.
    I'm on Mac OSX Lion 10.7.2
    Acrobat X version 10.1.3
    Adobe InDesign CS5.5
    The setting summary of the print dialogue is as follows:
    Print Preset: [Custom]
    Printer: Adobe PDF 9.0
    PPD: Adobe PDF 9.0
    PPD File: /var/folders/74/_l7wb86j7plcvb5kz2hwgmh00000gn/T//4f9757064d509
    Print Booklet
        Booklet Type: 2-up Saddle Stitch
        Auto Adjust Margins: On
        Top Margin: 0.2917 in
        Bottom Margin: 0.2917 in
        Left Margin: 0.2917 in
        Right Margin: 0.2917 in
        Space Between Pages: N/A
        Creep: 0 in
        Bleed Between Pages: N/A
        Signature Size: N/A
        Print Blank Printer Spreads: On
    General
        Copies: 1
        Collate: Off
        Reverse Order: Off
        Pages: All
        Sequence: All Pages
        Spreads: Off
        Print Master Pages: Off
        Print Layers: Visible & Printable Layers
        Print Non-printing Objects: Off
        Print Blank Pages: Off
        Print Visible Guides and Baseline Grids: Off
    Setup
        Paper Size: Tabloid Oversize
        Paper Width: 12 in
        Paper Height: 18 in
        Page Orientation: Landscape
        Paper Offset: 0 in
        Paper Gap: 0 in
        Transverse: Off
        Scaling: 100%
        Constrain Proportions: On
        Page Position: Centered
        Thumbnails: Off
        Tiling: Off
    Marks and Bleed
        Crop Marks: On
        Bleed Marks: Off
        Registration Marks: Off
        Color Bars: Off
        Page Information: Off
        Printer Mark Type: Default
        Crop Mark Weight: 0.25 pt
        Mark Offset from Page: 0.0833 in
        Use Document Bleed Settings: On
        Bleed Top: 0 in
        Bleed Bottom: 0 in
        Bleed Inside: 0 in
        Bleed Outside: 0 in
        Include Slug Area: Off
    Output
        Color: Composite CMYK
        Text As Black: Off
        Trapping: Off
        Flip: None
        Negative: Off
        Screening: Default
        Simulate Overprint: Off
        Frequency: 60
        Angle: 45
    Graphics
        Send Data: Optimized Subsampling
        Download: Complete
        Download PPD Fonts: On
        PostScript®: Level 2
        Data Format: ASCII
    Color Management
        Document Profile: U.S. Web Coated (SWOP) v2
        Color Handling: Let InDesign Determine Colors
        Printer Profile: Document CMYK - U.S. Web Coated (SWOP) v2
        Preserve CMYK Numbers: On
        Proof Profile: Document CMYK
        Simulate Paper Color: On
    Advanced
        Print &as Bitmap: On
        Bitmap Resolution: 300
        OPI Image Replacement: Off
        EPS: Off
        PDF: Off
        Bitmap Images: Off
        Transparency Flattener Preset: [Medium Resolution]
        Ignore Spread Overrides: Off
    I'm on Mac OSX Lion 10.7.2
    Acrobat X version 10.1.3

    I'm a Windows user, so I may not have this exactly right, but printing to PDF from Print Booklet on Mac is a two-step process -- first you printto Postscript file using the Acrobat 9 ppd, then you distill the file. I think you'll find more details at InDesignSecrets » Blog Archive » Acrobat’s Adobe PDF Printer Replaced in Snow Leopard

  • When saving a document as a PDF for printing, I lose pages, clip art, and my orginal format. Help!

    I have created some forms for our congregation to fill in with answers on adobe forms central. When I go to turn it into a PDF for printing for a hard copy, (not all our members have internet) when i save it to a PDF, it doesn't save all the pages and formats it differently then show on the screen i programmed it onto. How do I fix this issue?

    Hi;
    In the "Feature Tutorials/Help" linked from the top of the main page of the Forums: Feature Tutorials / Help
    There is a Tutorial on "Creating and distributing fillable PDF Forms": Tutorial: Creating and distributing fillable PDF forms
    The main thing to look at is the "View" setting and for PDF set it to "Page View", the page breaks you define in Page View will be used in the PDF, there are also "implicit" page breaks added automatically based on the page size.
    For the issue with clip art see this FAQ: Image does not show up in PDF 
    Thanks,
    Josh

  • Export in pdf for print inexistant border

    Hello,
    I try to export an Indesign CS5 file in pdf for print.
    If I choose PDF1.4, X-4:2008  I have a dark rectangle like a shadow under several text. I thought it was a transparency problem but I now set up the transparency to High Quality.
    If I choose PDF1.3  I don't have the shadow issue anymore but a white border around the text and images which had been rotated.
    I'm not a specialist in pdf export for print so I don't know what is the best settings and how to fix my issue.
    Can it be only a screen issue and be ok for the print??
    Cheers,
    Elodie

    I apologize for not getting to this sooner.
    How are you viewing the PDF that shows the discoloration? Acrobat or some other application? Is overprint preview turned on in Acrobat?
    This is definitely transparency related. When you choose PDF 1.3 you are flattening the transparency and the white lines you see are called "stitching." Thay ae a dispaly artifact in Acrobat (they'll disappear if you turn off smoothing), and though they may show in a low-resolution digital print, they are usually not apparent in high-resolution output from a press.

  • How to export a CMYK document to a black/white or greyscale pdf for print?

    Hello, I have some knowledge in graphics design, but very little about color management.
    Currently I need to convert an instruction manual I made to black and white output only. We'd prefer to keep the indesign (.indd) and it's source images in their respective colors, but when exporting the document to a pdf my printer can use, we'd like to make that document a black and white pdf, as it's a black/white manual anyway. A little color conversion isn't to bad, as long as it's reasonable. all images that might give trouble are in greyscale anyway.
    So how do I export a full color indesign document to a black&white/greyscale pdf?
    ps:
    very newb question, but if you don't ask, you never learn:
    When do you use the colours "registration", and when do you use "paper"?

    I am also trying desperately to convert my CMYK colors into a grayscale so that when I print the document the printer only uses K (and C=0 M=0 Y=0)
    And I saw this bit of info you wrote a few months ago. I am working working with photoshop CS4. I tried to follow it but I found the following difficulties. Hope you don't mind me writing over your text.
    RGB image --> Grayscale
    New doc --> CMYK image,same size, empty
    Copy Grayscale and paste into the K-channel of the CMYK image. - (It only allows me to copy onto the CMYK layer but not onto the Black so I had to Drag layer onto channel delete the black layer and rename my new layer as black but then the document changes from CMYK to Multichannel and I have to re-change the mode again to CMYK but this already prints CMYK...)
    Place image in InDesign doc.
    Everything else (vector, text) by K-only.
    (...then when I placet that CMYK file into InDesign, and PDF it, on the output preview still separates the grayscale image into CMYK and when I print, the printer still prints CMYK instead of only K)
    So then I say OK so.. let's use the Multichannel document instead, which it actually seems to print on K only (while CMY=0), it only allows me to save as PSD. and when I try to place it on Indesign... I have a message saying that this file is using an unsupported colour space, only RGB,CMYK, lab, indexed, and bitmap are supported by the photoshop filter
    On top of that I have been asked for a Jpeg image in black and white which prints only K (while CMY=0). I have tried with channel mixed presets and even though the info on screen is now C=0, M=0, Y=0 and K= various values, when I send it to print. The printer still prints with all the CMYK colours
    Any advice would be so much appreciated!
    Thank you

  • Pdf file printing causes printer to reboot

    Hello!
    I got this nasty problem. I'm running OS X 10.9.5 on MBPro. I have HP LaserJet M1536dnf MFP (printer-scanner-fax-copier) connected over USB. All drivers and software installed and running ok. But. If I scan some document (with HP own utility) and save it to pdf file, through IRIS OCR to make it searchable, then open this pdf file with Preview, and it displays normally, then send it to the printer- it fails. The printer gets halted for about a minute, then it reboots. Like I power cycled it.
    The scanned file behaves ok. It's not abnormally large in size - a few MB usually. I can open it with Preview, Scroll, save, etc. And the printer behaves ok with other documents- text files, images, others. But whenever I send a scanned pdf to printer- it fails.
    I try to copy the file and print it being logged in under Administrator (I normally use non-admin user account for work). Same result. Below is extract from the printer error log.
    +++++++++++++++++++++++++++
    E [26/Sep/2014:17:41:35 +0500] [Job 349] Unable to send data to printer.
    E [26/Sep/2014:17:43:07 +0500] [Job 349] Unable to send data to printer.
    E [26/Sep/2014:17:44:39 +0500] AuthorizationCopyRights("system.print.admin") returned -60007 (The authorization was denied since no user interaction was possible.)
    E [26/Sep/2014:17:44:39 +0500] [Client 18] Returning HTTP Forbidden for CUPS-Get-Document (ipp://localhost/jobs/350) from localhost
    E [26/Sep/2014:17:44:39 +0500] AuthorizationCopyRights("system.print.admin") returned -60007 (The authorization was denied since no user interaction was possible.)
    E [26/Sep/2014:17:44:39 +0500] [Client 22] Returning HTTP Forbidden for CUPS-Get-Document (ipp://localhost/jobs/350) from localhost
    E [26/Sep/2014:17:44:52 +0500] [Job 350] Unable to send data to printer.
    E [26/Sep/2014:17:44:52 +0500] AuthorizationCopyRights("system.print.admin") returned -60007 (The authorization was denied since no user interaction was possible.)
    E [26/Sep/2014:17:44:52 +0500] [Client 22] Returning HTTP Forbidden for CUPS-Get-Document (ipp://localhost/jobs/350) from localhost
    E [26/Sep/2014:17:44:54 +0500] AuthorizationCopyRights("system.print.admin") returned -60007 (The authorization was denied since no user interaction was possible.)
    E [26/Sep/2014:17:44:54 +0500] [Client 19] Returning HTTP Forbidden for CUPS-Get-Document (ipp://localhost/jobs/350) from localhost
    E [28/Sep/2014:10:37:24 +0500] [Job 351] Unable to send data to printer.
    E [28/Sep/2014:10:48:44 +0500] [Job 352] Unable to send data to printer.
    E [28/Sep/2014:10:50:09 +0500] [Job 353] Unable to send data to printer.
    E [28/Sep/2014:10:51:38 +0500] [Job 353] Unable to send data to printer.
    E [28/Sep/2014:10:56:42 +0500] [Job 353] Stopping unresponsive job.
    +++++++++++++++++++++++++++
    I'd really appreciate any help. This thing is very annoying. Thanks!

    OK, I understand borderless printing is not supported on plain paper, but I don't think a hard crash is an acceptable result.
    I can live with the minimize margins turned on but that opens up another documented bug where the last line to line and a half are not printed on the last sheet in a print set, If you are only printing one sheet at a time than every sheet will be missing this print. Has HP come up with or even looked into why this is happening?
    Thanks,
    Don

Maybe you are looking for