PDF file in ADF?

I need to open any pdf file in web page. How this can be achieved in Jdeveloper 11.1.1.4
Thanks in advance.

http://learn-adf.blogspot.in/2012/05/adf-open-pdf-file-in-new-window-or-in.html
More - How to generate PDF in oracle ADF
Edited by: Sudipto Desmukh on May 22, 2012 7:31 PM

Similar Messages

  • Displaying a PDF file with adf tags

    hello,
    can anyone give me some advice in how to display a pdf file with adf tags.
    many thanks

    http://technology.amis.nl/blog/?p=1182

  • RE: How to Export the Table data Into PDF File  in ADF

    Hi Experts,
    I am using Jdeveloper 11.1.2.3.0
    I am created employee VO and Drag and Drop as a Table in a page. So need to Export the Table data into A PDF file.
    So please give me some suggestions regarding this Scnerio.
    With Regards,
    satish

    Hi Guys ,
    Any more answers for this question.
    Please find my jsff below
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core" xmlns:report="http://www.adfwithejb.blogspot.com">
      <af:panelGroupLayout layout="vertical" id="pgl2">
          <af:query id="qryId1" headerText="Service Tariff Mapping Details" disclosed="true"
                    value="#{bindings.findByTarifValidFromQuery.queryDescriptor}"
                    model="#{bindings.findByTarifValidFromQuery.queryModel}"
                    queryListener="#{reportWiseInvoiceBean.genericQueryListener}"
                    queryOperationListener="#{bindings.findByTarifValidFromQuery.processQueryOperation}"
                    resultComponentId="pc1::t2">
         <f:attribute name="queryExpression" value="bindings.findByTarifValidFromQuery.processQuery"/>
                          </af:query>
        <af:panelCollection id="pc1" styleClass="AFStretchWidth">
          <f:facet name="menus"/>
          <f:facet name="toolbar">
              <af:toolbar id="t1">
                 <af:menuBar id="pt_m1">
                <report:reportDeclarative ButtonName="ExportToExcel" ReportName="ServiceTariffMappingDetails"
                                          ReportType="PDF" TableId=":::pc1:t2" id="rd1" Pagination="true"/>
                <af:commandButton text="excel" id="cb1" binding="#{exportToExcelBean.exportID}">
                <af:setActionListener from="pt1:pgl1:pgl2:pc1:t2" to="#{viewScope['exporter.exportedId']}"/>
                <af:setActionListener from="border:1px solid #cccccc" to="#{viewScope['exporter.thStyle']}"/>
                <af:setActionListener from="border:1px solid #cccccc" to="#{viewScope['exporter.tdStyle']}"/>
                <af:fileDownloadActionListener method="#{exportToExcelBean.exportToExcel}" filename="Service TariffMapping.xls"
                                                 contentType="text/excel;chatset=UTF-8;"/>
                </af:commandButton>
                <af:commandMenuItem id="pt_cmi133" icon="/images/common/Excel-icon.png"
                                                shortDesc="ExportToExcel"
                                >
                                <af:exportCollectionActionListener exportedId="t2" type="excelHTML"
                                                                   title="Service Tariff Mapping"
                                                                   filename="Service Tariff Mapping.xls"/>
                            </af:commandMenuItem></af:menuBar>
              </af:toolbar>
          </f:facet>
          <f:facet name="statusbar"/>
          <af:table value="#{bindings.ServiceTariffMappingDtlsRVO1.collectionModel}" var="row"
                    rows="#{bindings.ServiceTariffMappingDtlsRVO1.rangeSize}"
                    emptyText="#{bindings.ServiceTariffMappingDtlsRVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
                    fetchSize="#{bindings.ServiceTariffMappingDtlsRVO1.rangeSize}" rowBandingInterval="0"
                    filterModel="#{bindings.findByTarifValidFromQuery.queryDescriptor}"
                    queryListener="#{bindings.findByTarifValidFromQuery.processQuery}" filterVisible="true" varStatus="vs"
                    id="t2" columnStretching="last" binding="#{ServiceTariffMappBean.testTable}">
            <af:column sortProperty="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NormalTariffCode.name}" filterable="true"
                       sortable="true" headerText="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NormalTariffCode.label}"
                       id="c1">
              <af:inputText value="#{row.bindings.NormalTariffCode.inputValue}"
                            label="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NormalTariffCode.label}"
                            required="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NormalTariffCode.mandatory}"
                            columns="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NormalTariffCode.displayWidth}"
                            maximumLength="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NormalTariffCode.precision}"
                            shortDesc="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NormalTariffCode.tooltip}" id="it1">
                <f:validator binding="#{row.bindings.NormalTariffCode.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceCode.name}" filterable="true"
                       sortable="true" headerText="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceCode.label}"
                       id="c2">
              <af:inputText value="#{row.bindings.ServiceCode.inputValue}"
                            label="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceCode.label}"
                            required="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceCode.mandatory}"
                            columns="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceCode.displayWidth}"
                            maximumLength="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceCode.precision}"
                            shortDesc="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceCode.tooltip}" id="it2">
                <f:validator binding="#{row.bindings.ServiceCode.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfVldFrm.name}" filterable="true"
                       sortable="true" headerText="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfVldFrm.label}" id="c3">
              <f:facet name="filter">
                <af:inputDate value="#{vs.filterCriteria.TrfVldFrm}" id="id1">
                  <af:convertDateTime pattern="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfVldFrm.format}"/>
                </af:inputDate>
              </f:facet>
              <af:inputDate value="#{row.bindings.TrfVldFrm.inputValue}"
                            label="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfVldFrm.label}"
                            required="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfVldFrm.mandatory}"
                            columns="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfVldFrm.displayWidth}"
                            shortDesc="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfVldFrm.tooltip}" id="id2">
                <f:validator binding="#{row.bindings.TrfVldFrm.validator}"/>
                <af:convertDateTime pattern="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfVldFrm.format}"/>
              </af:inputDate>
            </af:column>
            <af:column sortProperty="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceDesc.name}" filterable="true"
                       sortable="true" headerText="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceDesc.label}"
                       id="c4">
              <af:inputText value="#{row.bindings.ServiceDesc.inputValue}"
                            label="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceDesc.label}"
                            required="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceDesc.mandatory}"
                            columns="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceDesc.displayWidth}"
                            maximumLength="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceDesc.precision}"
                            shortDesc="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ServiceDesc.tooltip}" id="it3">
                <f:validator binding="#{row.bindings.ServiceDesc.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtTrfCode.name}" filterable="true"
                       sortable="true" headerText="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtTrfCode.label}" id="c5">
              <af:inputText value="#{row.bindings.OtTrfCode.inputValue}"
                            label="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtTrfCode.label}"
                            required="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtTrfCode.mandatory}"
                            columns="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtTrfCode.displayWidth}"
                            maximumLength="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtTrfCode.precision}"
                            shortDesc="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtTrfCode.tooltip}" id="it4">
                <f:validator binding="#{row.bindings.OtTrfCode.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtUnitRate.name}" filterable="true"
                       sortable="true" headerText="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtUnitRate.label}" id="c6">
              <af:inputText value="#{row.bindings.OtUnitRate.inputValue}"
                            label="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtUnitRate.label}"
                            required="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtUnitRate.mandatory}"
                            columns="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtUnitRate.displayWidth}"
                            maximumLength="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtUnitRate.precision}"
                            shortDesc="#{bindings.ServiceTariffMappingDtlsRVO1.hints.OtUnitRate.tooltip}" id="it5">
                <f:validator binding="#{row.bindings.OtUnitRate.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NtUnitRate.name}" filterable="true"
                       sortable="true" headerText="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NtUnitRate.label}" id="c7">
              <af:inputText value="#{row.bindings.NtUnitRate.inputValue}"
                            label="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NtUnitRate.label}"
                            required="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NtUnitRate.mandatory}"
                            columns="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NtUnitRate.displayWidth}"
                            maximumLength="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NtUnitRate.precision}"
                            shortDesc="#{bindings.ServiceTariffMappingDtlsRVO1.hints.NtUnitRate.tooltip}" id="it6">
                <f:validator binding="#{row.bindings.NtUnitRate.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfGrt.name}" filterable="true"
                       sortable="true" headerText="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfGrt.label}" id="c8">
              <af:inputText value="#{row.bindings.TrfGrt.inputValue}"
                            label="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfGrt.label}"
                            required="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfGrt.mandatory}"
                            columns="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfGrt.displayWidth}"
                            maximumLength="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfGrt.precision}"
                            shortDesc="#{bindings.ServiceTariffMappingDtlsRVO1.hints.TrfGrt.tooltip}" id="it7">
                <f:validator binding="#{row.bindings.TrfGrt.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ChargePartyCode.name}" filterable="true"
                       sortable="true" headerText="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ChargePartyCode.label}"
                       id="c9">
              <af:inputText value="#{row.bindings.ChargePartyCode.inputValue}"
                            label="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ChargePartyCode.label}"
                            required="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ChargePartyCode.mandatory}"
                            columns="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ChargePartyCode.displayWidth}"
                            maximumLength="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ChargePartyCode.precision}"
                            shortDesc="#{bindings.ServiceTariffMappingDtlsRVO1.hints.ChargePartyCode.tooltip}" id="it8">
                <f:validator binding="#{row.bindings.ChargePartyCode.validator}"/>
              </af:inputText>
            </af:column>
          </af:table>
        </af:panelCollection>
      </af:panelGroupLayout>
    </jsp:root>

  • Regarding adding PDF file to adf Form

    Hi,
    in my application i have created a entity object which uses a database table*( PDF_table)*
    PDF_table has two columns i.e PDF_file (of type BLOB) and PDF description  (of type varchar(100))
    and in the ADF form my requirement is to browse a PDF file stored anywhere in the computer and save it in the database table(PDF_table).
    Can anybody tell me how can i do this?

    Hi,
    Thanks Samith and Shay for the reply..
    By using the links given by you guys i modified my application. but i am getting problem while committing ti Database..
    The source code of my application as follows..
    *<af:document id="d1">*
    *<af:messages id="m1"/>*
    *<af:form id="f1" usesUpload="true">*
    *<af:panelFormLayout id="pfl1">*
    *<af:inputText value="#{bindings.Description.inputValue}"* // description is a attribute of Database Table and of type varchar2
    *label="#{bindings.Description.hints.label}"*
    *required="#{bindings.Description.hints.mandatory}"*
    *columns="#{bindings.Description.hints.displayWidth}"*
    *maximumLength="#{bindings.Description.hints.precision}"*
    *shortDesc="#{bindings.Description.hints.tooltip}"*
    *id="it1">*
    *<f:validator binding="#{bindings.Description.validator}"/>*
    *</af:inputText>*
    *<af:inputFile label="Label 1" id="if1"*
    *value="#{bindings.Pdf.inputValue}" autoSubmit="true"/>* //where Pdf is a attribute of database table of type BFILE
    *<af:commandButton actionListener="#{bindings.CreateInsert.execute}"*
    *text="CreateInsert"*
    *disabled="#{!bindings.CreateInsert.enabled}"*
    *id="cb1"/>*
    *<af:commandButton actionListener="#{bindings.Commit.execute}"*
    *text="Commit"*
    *id="cb2"/>*
    *</af:panelFormLayout>*
    *</af:form>*
    *</af:document>*
    but after entering description and file path when i enter Commit it is showing an error i.e
    *Error: Cannot convert org.apache.myfaces.trinidadinternal.config.upload.UploadedFiles$FixFilename@155ef67 of type
    classorg.apache.myfaces.trinidadinternal.config.upload.UploadedFiles$FixFilename to class oracle.jbo.domain.BFileDomain*
    how can i solve this?...

  • Load PDF file using ADF 11g

    Hi There,
    I have a requirement of showing PDF file in popup window or in a frame . I am using the following code
    <af:commandButton text="#{node}" useWindow="true" action="dialog:showPDF"
    actionListener="#{ReportTemplateDesigner.downloadPDFReport}" windowHeight="300" windowWidth="400" />
    and in managed bean
    public String downloadPDFReport(ActionEvent actionEvent) throws FileNotFoundException, IOException {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext = facesContext.getExternalContext();
    HttpServletResponse response =
    (HttpServletResponse)externalContext.getResponse();
    File file = new File("C:\\report.pdf");
    FileInputStream input = new FileInputStream(file);
    BufferedInputStream bInput = null;
    BufferedOutputStream output = null;
    try {
    bInput = new BufferedInputStream(input, DEFAULT_BUFFER_SIZE);
    response.reset();
    response.setContentType("application/pdf");
    response.setHeader("Content-disposition",
    "inline; filename=\"" + "ABC" + "\"");
    output =
    new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
    System.out.println("inside download PDF report");
    byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
    int length;
    while ((length = input.read(buffer)) > 0) {
    output.write(buffer, 0, length);
    output.flush();
    } finally {
    close((Closeable)output);
    close((Closeable)bInput);
    facesContext.responseComplete();
    return "dialog:showPDF";
    I can see the pdf file is loaded into the same window . Could anyone tell me is there any way to load PDF file on the same page in a frame ?
    Thanks in advance,
    Ree

    Managed bean code :
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext =
    facesContext.getExternalContext();
    HttpServletRequest request =
    (HttpServletRequest)externalContext.getRequest();
    String originalUrl = (request.getRequestURL().toString());
    String find = "Report";
    String replace = "Report/" + pdfFileName; // path of pdf file .
    pdfUrl = replaceAllWords2(originalUrl, find, replace);
    System.out.println("PDF URL :" + pdfUrl);
    Jsf code
    <af:inlineFrame source="#{Report.pdfUrl}"
    inlineStyle="width:100%; height:100%;"></af:inlineFrame>
    Hope this help.
    Reena

  • Displaying PDF file in ADF popup

    Hi,
    I am using JDevloper 11.1.2.0.0, browser IE8, Adobe reader 10.1.4
    I am using servlet to stream the pdf to the inlineframe inside the popup. using the approach given in the following URL
    http://technology.amis.nl/2011/07/28/adf-11g-show-pdf-in-a-popup/
    I am facing following problem
    1. On closing the pop-up the parent page turned to blank, sometimes the pop-up also blank.
    2. When I use IE9, Google chrome, I observe that service method of servlet executed more than three times.
    I don't have any clue why it is happening.
    Can anyone help me to solve this issue?
    Thanks

    Hi,
    do you have a reproducible test case? If so, zip it up, rename the zip extension to "unzip" and send it to the mail account you find in my OTN profile. Please reference this thread
    Frank

  • How can i make thumb of PDF file in Adf

    Hi,
    I have a situation to create thumb images of pdf pages and make the list of it. When a user click anyone on that list, read corresponding page. is there any library availabel to do this?
    Edited by: vipinkraghav on Sep 26, 2009 12:58 PM
    Edited by: vipinkraghav on Sep 26, 2009 1:01 PM

    Hi,
    I don't think that there is a built-in support of ADF for rendering pdf.
    But you can use this library to export thumbnails of your pdf's pages, then you just need to use af:image for rendering the output thumbnail.
    https://pdf-renderer.dev.java.net/
    /Onur
    Edited by: Onur Aktaş on 27.Eyl.2009 16:11

  • ADF export table to PDF file?

    What is the easiest way to export a table to a PDF file. The catch is that tables will be generated randomly based on a user's query. Is there any way to generically export the produced resultset/table into a PDF format regardless of the content?
    I have searched the web and have not found something to do this generically (irrespective of the table content).
    Any ideas/suggestions/links to examples would be nice.
    P.S. I am new to ADF so please explain anything complicated.

    Thanks for your reply.
    The link you gave me requires me to access the backend datasource and what not.
    My original question asked for any possible method to convert a table to a pdf without dealing with any backend methods/databases.

  • Extract an embedded pdf file from xml in ADF

    Hi,
    I have a xml file containing an embedded pdf like below
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <dbtx>
    <response>
    <transaction_rs>
    <EMBEDDED_FILE>
    <DOCUMENT>
    JVBERi0xLjMKJaqrrK0KNCAwIG9iago8PCAvVHlwZSAvSW5mbwovUHJvZHVjZXIgKG51bGwpID4+CmVuZG9iago1IDAgb2JqCjw8IC9MZW5ndGggMTQzOCAvRmlsdGVyIC9GbGF0ZURlY29kZSAKID4+CnN0cmVhbQp4nK1Y23LiRhB95yv0tPFWzOzcR/OILxBSvgXIVqVCHmQsE1WB5Mhia8tfnyOEpJG4KVvZfTAW6nO6e/p09/hq1rud9f7pMY8Sn+KfRz0vXXrNB5OR11NEa+sZLYhW0mOSESO419eKCKO8NPSee7/1rjrDMWmIpKwCNPhe6x/H48wnXJsKTzBGfMaOAeZ2FA7kCFvAxoNtvIISavwKUGmi7dGALV7OETyVf9jlinEiYblY976M18y7Sf6fiJRpefBlyDymwDt77eX0swXCWeaI+M+8CkhaInzpzdbenxc3n64+e31ufLx/cbtJk7cwiOsn18n6LVhkn72/vNmv/9ljbokx1mPWJ5Irr88E+YEjlaxIeQUHGOHvw+Xh61307WPdywGXxDesyMEkeHtL0iypw/4WvW+CVfTxERRPhcqTLqR3QXX9VrB0TDhldJemPTL8ZHxH9rBZh6lj9xI5gM/PSRysw7hg5RRFtmWd3A77Gb5wz6HM0rL6NCrFSTXhSJTyGWHQVj8HP1f4hanWmiiOHEvCjPBYYfjqVviuwG1V39qg5kBX1Ddv1vf+SVjiS14RKfy0OWGDaVvJsjjLOpuFocHJcVMkc/yCXEWv0SL4iJI4rDP5qf44TdbrII2SXe6+DBEWbULjcIXwPS0FKGwBfTUZ3PxRo4xng7vxwEGd3LVOuwTBYSu7A3kK4iQN1vDPQYpf8HuWpFGzCA6CUWi89GgSvS/+
    </DOCUMENT>
    </EMBEDDED_FILE>
    </response>
    </transaction_rs>
    </dbtx>Requirement: I want to extract the pdf from xml and store it in local drive. How can I do this in java?
    Jdev : 11.1.1.3
    Any help will be appriciated.
    ~Abhijit

    I have made this procedure to convert the input clob to a decoded base 64 binary, i then obtain a pdf file but its' corrupted or damaged.
    any ideas?
    thks guys.
    Andrea
    create or replace FUNCTION c2b_64( c IN CLOB ) RETURN BLOB
    -- typecasts CLOB to BLOB (binary conversion)
    IS
    pos PLS_INTEGER := 1;
    buffer RAW( 32767 );
    buffer64 RAW( 32767 );
    res BLOB;
    lob_len PLS_INTEGER := DBMS_LOB.getLength( c );
    BEGIN
    DBMS_LOB.createTemporary( res, TRUE );
    DBMS_LOB.OPEN( res, DBMS_LOB.LOB_ReadWrite );
    LOOP
    buffer := UTL_RAW.cast_to_raw( DBMS_LOB.SUBSTR( c, 78, pos ) );
    buffer64 := UTL_ENCODE.base64_decode (buffer);
    IF UTL_RAW.LENGTH( buffer64 ) > 0 THEN
    DBMS_LOB.writeAppend( res, UTL_RAW.LENGTH( buffer64 ), buffer64 );
    END IF;
    pos := pos + 78;
    EXIT WHEN pos > lob_len;
    END LOOP;
    RETURN res; -- res is OPEN here
    END c2b_64;

  • How do I scan multiple documents to a single pdf from the ADF on my MX922?

    How do I scan multiple documents to a single pdf from the ADF on my MX922?
    Solved!
    Go to Solution.

    Hi Riceburner1,
    Since you have had difficulty scanning using My Image Garden, you can scan using the IJ Scan Utility program that also comes with the printer.  To do this, please follow these steps:
    1. Place the documents in the ADF or on the platen glass of the printer.
    2. Start the IJ Scan Utility.
        For Windows 8.1:
        1. On your keyboard, press the Windows key.
        2. Start typing IJ SCAN UTILITY. The search window opens as you type. Once the IJ SCAN UTILITY is displayed, please select and open it, then continue with Step 3 below.
        For Windows XP:
        1. Go to your START MENU, then select ALL PROGRAMS, then CANON UTILITIES, then the IJ SCAN UTILITY program.
        2. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears. Please continue with Step 3 below.
    3. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears.
    4. Click the DOCUMENT SCAN option on the left pane of the window. In the Select Source field of the Scan Options section, select DOCUMENT (ADF/PLATEN) to scan items placed directly on the platen glass, DOCUMENT (ADF SIMPLEX) to perform single-sided scanning from the ADF, or DOCUMENT (ADF DUPLEX) to perform double-sided scanning using the ADF. You can then set the item size, resolution, etc. in the Scan Options section as desired.
    5. In the SAVE SETTINGS section of the window, you will select the save format and location of the document you are about to scan.
         a.) In the FILE NAME field, specify the name you would like to give the file. By default the filename will begin with IMG; you can remove IMG and change it to whatever you would like to name the file.  Please note that the filename that you give the document here will be the default filename for all items scanned until you change the file name.  If you leave the file name the same in the field, the scanned item will have a sequential number appended to the end of whatever name you give it.
         b.) In the DATA FORMAT field, use the drop-down arrow to select the desired option. If you are scanning a multipage document, select the PDF (Multiple Pages) option.
         c.) In the SAVE IN field, please navigate to the area where you would like the file to be saved once it is scanned in. By default, the file will be saved in the MY DOCUMENTS folder.
    6.  In the APPLICATION SETTINGS section of the window, please select the DO NOT START ANY APPLICATION option.  
    7. Once all settings have been selected, click the OK button at the bottom of the SETTINGS (DOCUMENT SCAN) window. The IJ Scan Utility main screen appears.
    8. Click the DOCUMENT button. Scanning starts. Click the CANCEL button to cancel scanning if needed.   Once the scan is completed, scanned images are saved in the previously selected folder location specified in the SETTINGS... window.
    Hope this helps!
    This didn't answer your question or issue? Please call or email us using one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How do I scan multiple pages into one pdf file using the PIXMA MG7520 on Windows 8.0? Please help!

    I recently received a PIXMA MG7520 for a gift.  It works great with my lenovo laptop/tablet running on Windos 8.0.  The one drawback to the HP all-in-one that it replaced is it does not have an ADF.  That being said, there must be some way to scan multiple pages into one pdf file.  I need help figuring thing out.  Thanks in advance!
    Solved!
    Go to Solution.

    Hi mdtolbert54,
    There is a program that comes with the printer called the IJ Scan Utility that can assist you with scanning multiple pages into a single PDF document.  To do this, please follow these steps:
    1. On your keyboard, press the Windows key.
    2. Start typing IJ SCAN UTILITY. The search window opens as you type. Once the IJ SCAN UTILITY is displayed, please select and open it.
    3. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears.
    4. Click the DOCUMENT SCAN option on the left pane of the window.
    5. In the SAVE SETTINGS section of the window, you will select the save format and location of the document you are about to scan.
    a.) In the FILE NAME field, specify the name you would like to give the file. By default the filename will begin with IMG; you can remove IMG and change it to whatever you would like to name the file.
    b.) In the DATA FORMAT field, use the drop-down arrow to select the PDF (Multiple Pages) option. 
    c.) In the SAVE IN field, please navigate to the area where you would like the file to be saved once it is scanned in. By default, the file will be saved in the MY DOCUMENTS folder.
    6. Once all settings have been selected, click the OK button at the bottom of the window to save the changes. The IJ Scan Utility main screen appears.
    7. Click the DOCUMENT button. Scanning starts. Click the CANCEL button to cancel scanning if needed. Scanned items are saved in previously selected folder location specified in the SETTINGS... window.
    If you find that you need advanced scanning options such as adjusting resolution, brightness, contrast, saturation, color balance, etc. in addition to the options selected above, please click on the SCANGEAR button on the IJ Scan Utility Main screen, then adjust the items as necessary.
    Once the items above are set for document scanning, in the future, you will only need to launch the IJ Scan Utility, then press the DOCUMENT button to perform the scan (unless you want to make changes to the settings).
    Hope this helps!
    This didn't answer your question or issue? Please call or email us using one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Error while opening PDF file downloaded  from database Blob column

    Hi All,
    I am working on jdev 11.1.1.4.0.
    In my use-case I am using filedownload Actionlistner on a link to get the PDF file stored in the database in blob field. These files are being uploaded from other use-case in adf only.
    After getting the dialog box to open/save/cancel for the PDF file when i click on open then i am getting an error *'Adobe Reader could not open 'abc.pdf' because it is either not a supported file type*
    or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly docoded)' for some files , and to my surprise I am able to open some files.
    When I open these PDF files separately from desktop I am able to view the content of each and every file in adobe reader.
    I dont know where the problem exactly lies , while uploading/downloading the file . Any ideas/thoughts to resolve this issue?
    Thanks
    Kanika

    Thanks a lot Timo...!!!
    I checked the PDF file downloaded directly from the blob column in DB, there only it is corrupted so must be the problem in uploading the file. I am checking the code line by line,, but no problem in setting the file content type,size etc.
    Here is the code snippet ..
    byte[] buff;
    buff = new byte[(int)length]; -- Length is the file size
    int bytesRead = is.read(buff);
    for (int i = 0; bytesRead < buff.length; i++) {
    // int b = is.read();
    int b = is.read();
    if (b == -1)
    break;
    buff[i] = (byte)b;
    BlobDomain blobDomian = new BlobDomain((buff));
    TestVORow = (TestVORow Impl)TestVO.createRow();
    if(blobDomian != null) {
    TestVORow.setAttachment(blobDomian);
    am.getTransaction().commit();
    This seems to be Ok to me..the same issue, file is still corrupting.
    Any thoughts from your side ???
    Thanks
    Kanika
    The problem is resolved.
    Changes made are instead of
    InputStream is;
    used ... BufferedInputStream bis ;
    and after
    for (int i = 0; bytesRead < buff.length; i++) {
    // int b = bis.read();
    int b = bis.read();
    if (b == -1)
    break;
    buff[i] = (byte)b;
    bis.close(); // use this close bufferedInput Stream.
    Able to open each and every file now..Thanks for your suggestions Timo and Frank.
    Edited by: Kanika on Mar 6, 2012 3:15 AM

  • Scanning always produces invalid PDF files

    I recently purchased an HP OfficeJet 4636, and I notice that when scanning documents to PDF, the generated PDF files are always invalid. When opening these files in Acrobat Reader or Acrobat Pro, one gets the message "The file is damaged but is being repaired." Many other PDF tools can't open the files at all.
    I have installed the newest firmware update and restarted the printer, but the problem was not solved.
    I tried many different settings (e.g., resolution, paper size, scan from ADF, scan from Glass), but the problem is always the same. For the record, I am using the "Web scan" interface: http://XX.XX.XX.XX/#hId-pgWebScan.
    If there were an opportunity to attach a file to this bug report, I would attach an actual PDF file generated by this printer. I am happy to supply the file later, and I will refer to this specific file in my analysis of the bug below.
    I am familiar with Adobe's PDF definition:
    PDF Reference, sixth edition. Adobe Portable Document Format
    Version 1.7, November 2006. Abobe Systems Incorporated.
    I examined the PDF file in detail and it is quite clear what the bug is. Object 1 of the PDF file starts at byte offset 10, and it is a stream object containing the main image data in compressed JPEG format. The Length field for the stream object (at byte offset 168) is set to 1051875. However, the actual compressed stream data is only 64914 bytes long.
    This is incorrect, because the PDF Reference (Section 3.2.7, p.61, "Stream Extent") specifies that "If the stream has a filter, Length is the number of bytes of encoded data." (emphasis in original). In other words, the stream length should be set to 64914, which is the length of the JPEG encoded data, and not 1051875 (which is presumably the length of the raw unencoded image data).
    Moreover, four of the entries in the PDF xref table (at offset 65504) are incorrect:
    the byte offset for object 2 is given as 1052085 (actual location of object 2 is 65124);
    the byte offset for object 3 is given as 1052140 (actual location of object 3 is 65179);
    the byte offset for object 4 is given as 1052206 (actual location of object 4 is 65245);
    the byte offset for object 5 is given as 1052383 (actual location of object 5 is 65422).
    Also, the PDF startxref pointer (at offset 65674) points to 1052465, whereas the actual location of the xref table is byte offset 65504.
    Note that in all six cases, the error is exactly equal to the difference between the declared stream length (1051875) and the actual stream length (64914):
    1051875 - 64914 = 986961
    1052085 - 65124 = 986961
    1052140 - 65179 = 986961
    1052206 - 65245 = 986961
    1052383 - 65422 = 986961
    1052465 - 65504 = 986961
    It looks like this is a simple programming error in the printer's PDF generation software: all the offsets are computed as if the length of the embedded image stream were 1051875, whereas it is actually 64914.
    I scanned at different page sizes, resolutions, and so on. Each time, the actual byte offsets were slightly different (depending on the length of the encoded image stream), but the above relationships still hold in each case.
    Please fix this! It is not really acceptable for an HP scanner to produce broken PDF files. Thanks, -- Peter

    Hi @Selinger 
    One of the important things to point out is that the Webscan feature was designed for diagnostic purposes. The intended method of scanning is with HP software and the software build into the OS.
    For Mac users this includes Apple Preview, Image Capture, or scanning from the Print and Fax Window.
    For Windows users, non HP software includes, Windows Live Photo GAllery, Paint, and Windows Fax and Scan.
    Webscan is a great alternative, but it is very basic. Your best option it to install the HP software and us the HP Scan program.
    If there is a particular reason you are using Webscan and prefer to scan this way, the only thing I can really suggest is to try a different browser.
    Please let me know the outcome of a different Browser, what Browser you are currently using, and what happens when you scan with HP software. If you require further assistance, please also include your operating system. What operating system, and version do you have? Mac or Windows?
    I hope this helps.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Open a generated pdf file in new window

    Dear all,
    I'm using JDev ADF 11.1.1.4.0
    I use the command button method to generate pdf file with JasperReports and I store it into the public folder /reports/test5.pdf. To open this file I can use goLink or goButton with target frame _blank, but how can I open this file automatically after generation?
    I was reading about fileDownloadActionListener, but it's not what I need, I just want to open the file in new window browser.
    Any help will be appreciated.
    Regards,
    Wojtek.

    try this
    HttpServletResponse response = (HttpServletResponse) FacesContext
                                      .getCurrentInstance().getExternalContext().getResponse();
                       ServletOutputStream servletOutputStream;
                       servletOutputStream = response.getOutputStream();
                       byte[] bytes = null;
                       JasperDesign jasperDesign;
                                try {
                                        jasperDesign = JRXmlLoader.load(ios);
                                        jasperReport = JasperCompileManager.compileReport(jasperDesign);                
                                        JRPdfExporter exporter = new JRPdfExporter();
                                        JasperPrint jasperPrint;
                                        jasperPrint =
                                                JasperFillManager.fillReport( jasperReport, parameters, connection );
                                    } catch (JRException e) {
                                            e.printStackTrace();
                                bytes =
                                JasperRunManager.runReportToPdf(jasperReport,parameters, connection);
                       response.addHeader("Content-disposition", 
                       "attachment;filename=sale.pdf"); 
                       response.setContentType("application/pdf");
                       response.setContentLength(bytes.length);
                       servletOutputStream.write(bytes, 0, bytes.length);
                       servletOutputStream.flush();
                       servletOutputStream.close();
                       context.responseComplete();
                            } catch (IOException e) {
                        e.printStackTrace();
                    } catch (JRException e) {
                         e.printStackTrace();
                    }

  • When I  Generate  PDF file(In Hindi Word) then Output is Blank only Englis

    Hi,
    When I Generate PDF file(In Hindi Word) then Output is Blank only English is coming.
    So can u suggest me ,How to show PDF file in Hindi word.I am using jasper report and Jasper report internally Jasper viewer output is showing all format.But PDF is not showing..
    I am using jasper report 4.0.1.
    Plz help me..
    Thanks
    Anup

    Hi,
    searched your post for keywords "JDeveloper" "ADF" "JSF" but could not find them. So are you sure you are posting to the right forum?
    If you have an issue with MS WOrd and PDF then Microsoft and Adobe are the ones to call for help. Jasper Reports also is not owned by Oracle, which is another area you want to investigate
    Frank

Maybe you are looking for

  • HP C310a got deleted now I can't install it again

    I have an HP C310a and it was printing occasionally wirelessly.  It would print a couple of pages then have connection problems.  Somehow it got deleted from my computer and now I cannot seem to reinstall it at all.  I have tried the HP website for d

  • How do i reset the security questions on downloads

    anybody know how to reset the security questions on downloads im trying to download a new album and it wont let me get thru security questions

  • Cannot add multiple filters on a single column on certain libraries

    On some of our lists/libraries, we can filter a single column to display a more than one selection. For example, column1 contains the following choices: Yes No Maybe I can add a filter to column1 and select Yes and Maybe. This works in some lists/lib

  • Help! I have duplicates

    I have nearly 7000 duplicates in my itunes any clever ways I can get rid of them easily the whole display duplicates and date sort doesn't work for this many.... hopefully someone can help at the moment a lot of my albums have each song in it 3 times

  • Re: Events in Service Objects