CFDocument - controling file File size

Hi,
I am using cfdocument to generated a PDF file. It is a single
page (A4), just HTML (not too heavy), no images.
The resulting PDF file size is coming out at 500k+. This
seems ridiculously high for what it is. I would expect it to be
well under 100k
Does any one know of any ways of contorlling the quality or
file size? I couldn't see any attributes that could do this.
Thanks in advance.
Jason

I have the same issue. A client keeps pointing out that in
Acrobat you can save a PDF as Optimized for fast web viewing. Is
there a simple way of doing this on the fly with cfdocument or in
conjunction with cfdocument?
Thanks,
Scott

Similar Messages

  • Outofmemory while creating a new object of file with size more than 100 MB

    I have created an application which generates a report by getting the data from our archived files (.zip file).By the time, the application is reaching a file with size more than 100 mb, it is running out fo memory while creating the object of that particular file. Can some one help me by tellin if there id way to resolve this issue?
    Thanks in advance

    If you're getting OutOfMemoryError, the simplest thing to try is to give the VM more memory at startup. For Sun's VM, I believe the default is 64 MB. You can increase this by using the -X args that control the heap size. For example: java -Xms128m -Xmx256m ... etc. ... This says start with 128 MB of heap, and allow it to grow up to 256 MB.
    One thing to consider, though, is do you need that much stuff in memory at once? A more intelligent approach might be to unpack the archive to the file system, and then read a file at a time or a line at a time or a whatever at a time is appropriate for the processing you need to do.

  • File Adpater: Size of your processed messages

    Hi,
    i opened yesterday a thread aboud performance of file adapter, but i didn't get a satisfieing answer. So please give me following information:
    What was the biggest size of message which was processed by your file adapter?
    Every answer is welcome, even if the size seems to be small.
    Regards,
    Udo

    Udo,
    With content conversion , we have processed a file of size 64MB as one single message, it takes about 6 to 10 mins for our entire processing to complete(to go thru as an idoc to sap in our case).
    well, it will get worse , if you have a ccBPM in between.we had it initially(for validating & controlling the flow) and it took close to 2 hrs to go thru. It was not guaranteed as well, J2EE will autorestart(heap dump!!) and the processing will terminate at times. we had followed up with sap, tried tuning heap size & using large queues, but did not resolve the issue , removed ccBPM and it is ok now.
    so Udo , just the file adapter processing a LARGE message will not resolve ur issue, rather i beleive it may add to ur headache, once file adpater delivers the message to the IS.
    Wherever possible we had limited the message size using recordsets per message, when there was no choice, we had to take it in as one single message. strictly my personal experience here , i may be wrong, if so feel free to point it out, ll learn.
    Regards
    Saravana

  • PSD files canvas size changes?

    Hi all,
    Working in FCP (6.0.4) and noticing the importing of certain PSD files don't maintain their original canvas size. I need PSDs in order to have a transparent background but don't understand why this happens. Older versions seemed to handle this but for some reason it's doing this and not sure if it's playing up.
    thanks guys
    Chuck

    Your PSD graphics need to be contained in a file that has the same dimensions as your video.
    If your graphics came from another source, such as a print ad, they will most likely not be the same as your video.
    Make a blank Photoshop document. Either from the presets for video available in PS or one of your own. The presets are available by going to File > New and choosing from the Preset selection button.
    You can set options for transparent background etc, here too.
    Copy the content of the original graphics file and paste it into the new PSD that you just created.
    Use the Transform controls to adjust size and position as required.
    Aspect ratio controls are in the "Image" menu bar item of Photoshop, should you need them.

  • IronPort S170 WSA - Max file download size

    Hello,
    we're using an IronPort S170 WSA. Downloading big .iso (maybe other files, too) files fails. As far as I can find out, files of 2300MB or less can be downloaded, files of 3300MB or bigger fail to download (I haven't been able to try files with sizes between 2300MB - 3300MB). Using the same client without using the IronPort as a proxy, the download of the big files succeed.
    The web page error message indicates:
    Blocked by [companyname] Web Proxy
    Category = Allowed%20URL%208080
    WBRS Value = -
    DVS Verdict = -
    DVS Threat = -
    So, I assume there is a setting in the IronPort that prevents the download of files exceeding a size limit. But I cannot find any config item that controls this. Does anyone know where this setting can be found?
    Description: Cisco IronPort S170
    Product: Cisco IronPort S170 Web Security Appliance
    Model: S170
    Version: 7.7.0-500

    Do you get an instant block for large files?  Or does it try to download for a while, and then fails?
    If it is an instant block, it should be under Web Security Manager > Access Policies.  Look in the object types section.
    If you are downloading for about an hour and the downloads stop, it may be authentication related.
    -Vance

  • How is it posible to get the File name, size and type from a File out the H

    How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
    form JSP
    <form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
    File: <input type="file" name="filename"/
    Path: <input type="text" readonly="" name="path" value="c:"/
    Saveas: <input type="text" name="saveas"/>
    <input name="submit" type="submit" value="Upload" />
    </form>
    proces JSP
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="FileUploadBean" %>
    <jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
    <%
    TheBean.doUpload(request);
    %>
    BEAN
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletInputStream;
    public class FileUploadBean {
    public void doUpload(HttpServletRequest request) throws IOException
              String melding = "";
              String filename = request.getParameter("saveas");
              String path = request.getParameter("path");
              PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
              ServletInputStream in = request.getInputStream();
              int i = in.read();
              System.out.println("filename:"+filename);
              System.out.println("path:"+path);
              while (i != -1)
                   pw.print((char) i);
                   i = in.read();
              pw.close();
    }

    Thanks it works great.
    Here an excample from my code
    import org.apache.commons.fileupload.*;
    public class FileUploadBean extends Object implements java.io.Serializable{
    String foutmelding = "geen";
    String path;
    String filename;
    public boolean doUpload(HttpServletRequest request) throws IOException
         try
         // Create a new file upload handler
         FileUpload upload = new FileUpload();
         // Set upload parameters
         upload.setSizeMax(100000);
         upload.setSizeThreshold(100000000);
         upload.setRepositoryPath("/");
         // Parse the request
         List items = upload.parseRequest(request);
         // Process the uploaded fields
         Iterator iter = items.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
              if (item.isFormField())
                   String stringitem = item.getString();
         else
              String filename = "";
                   int temp = item.getName().lastIndexOf("\\");
                   filename = item.getName().substring(temp,item.getName().length());
                   File bestand = new File(path+filename);
                   if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
                   if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
                   FileOutputStream fOut = new FileOutputStream(bestand);     
                   BufferedOutputStream bOut = new BufferedOutputStream(fOut);
                   int bytesRead =0;
                   byte[] data = item.get();
                   bOut.write(data, 0 , data.length);     
                   bOut.close();
         catch(Exception e)
              System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
              foutmelding = "Bestand opsturen is fout gegaan";
         return true;
         }

  • Error during creation of CONTROL.trc file using ora_db_copy.sh

    Dear all,
    I' trying to perform a system copy using the BACKUP/RESTORE procedure. As described in system manual for my NW2004s (SAP BW7.0, Oracle 10g, AIX) i need to generate the the control file structure.
    First of all I've update my ORABRCOPY.SAR downloading a new version from SAPNET.
    Now, I need to execute the following command
    ./ora_br_copy.sh -generateFiles -forceLogSwitches -targetSid BWP -password <password> -listenerPort 1527
    but I have the following error
    Incorrect application options:
    At least one from 'generateFiles' or 'forceLogSwitches' options is required.
    This is the log file conteined into OraBRCopy.console.log
    os.name = AIX
    os.arch = ppc64
    os.version = 5.3
    cpu.count = 4
    sun.cpu.endian =
    sun.arch.data.model = 64
    sun.cpu.isalist =
    file.encoding = ISO8859-1
    file.separator = /
    path.separator = :
    line.separator = LF
    user.name = orabwt
    user.home = /home/orabwt
    user.dir = /export/appo
    user.language = en
    user.country = US
    java.version = 1.4.2
    java.vendor = IBM Corporation
    java.vendor.url = http://www.ibm.com/
    java.vm.version = 1.4.2
    java.vm.vendor = IBM Corporation
    java.vm.name = Classic VM
    java.vm.info = J2RE 1.4.2 IBM AIX 5L for PowerPC (64 bit JVM) build caix64142-20090307 (SR13) (JIT enabled: jitc)
    java.compiler = jitc
    java.class.version = 48.0
    java.home = /usr/java14_64/jre
    java.ext.dirs = /usr/java14_64/jre/lib/ext
    java.class.path = ./.:./orabrcopy.jar:/oracle/BWT/102_64/jdbc/lib/classes12.jar
    java.library.path = /usr/java14_64/jre/bin:/usr/java14_64/jre/bin/classic:/usr/sap/BWT/SYS/exe/run:/oracle/BWT/102_64/lib:/us
    r/java14_64/jre/bin/sovvm:/usr/lib
    java.io.tmpdir = /tmp/
    Incorrect application options:
    At least one from 'generateFiles' or 'forceLogSwitches' options is required.
    Thanks a lot!
    Marzia

    Theres a similar case here,
    System Copy-Erorr in Generating CONTROL.SQL file
    Please search before posting
    Regards
    Juan

  • URGENT ! Is it possible to create a  xml data control description file

    We are encountering serious problem when generating data control against java bean build from java classes generated with xml top link mapping.
    As workaround we have created a new xml schema that generate the java classes in a way data control may be generated correctly but we have to declare manually each class for java.util.list attribute that are not types by top link.
    Unfortunately some classes seem not to described by a data control xml files for a reason we cannot understand because others similar classes are correctly described.
    To gain time - we have to finish our development -we would force de data control structure by manually adding class data control definition file that are missing.
    Just adding the file in the pasckage is not sufficient.
    What do we have to update to make this file active ?

    Solved my problem by referencing the parent class correctly so the child class xml definition was created by the data control wizard and editable in the structure window.

  • Need help with Acrobat 6.0 pro; size of print is stuck @ 4.6"- can't change file print size

    - can't change file print size at all. printing one size dont know how to change it  (looking in print preview while in acrobat 6.0 pro..
      MAC OS  10.5.8

    ...."page set up"  from the apple menu- double duhhhh !

  • Using a control implimentaion file in BEA page flows?

    I'm using BEA Weblogic 9.2 and I've created a custom JDBC control to use in my project with page flows.
    My control has 4 files:
    1.) myModel.java: contains the class that represents the table.
    2.) myControl.java: the interface for the control.
    3.) myControlDB.java: public interface that extends jdbcControl and contains the basic operations for the database. No actual methods, just sql commands in the annotations.
    4.) myControlImpl.java: Contains the business logic for the control and has the @ControlImplimentation annotation.
    However, I'm not sure what purpose the "control implimentation" file servers. I can't use it in the page flows, and I can't add it to the "referenced controls" list.
    How do I use this control implementation in my page flows?

    Hi,
    Does your custom control appear in the insert -> control -> existing control option ?
    Can you also verify that the corresponding method is created in the custom control interface
    In the source view, place the cursor on the custom control method, and enter Ctrl + 1, select the create in super type option. This should create the corresponding method in the interface.
    I've also listed the link to our documentation which explains in detail about using database controls
    http://e-docs.bea.com/workshop/docs92/ws_platform/controls/system/jdbc/navDatabaseControl.html
    -Raj

  • Files icons size is 512 x 512 with maximum grid space???

    After updating from Snow Leopard to Lion all my files in the folders is rearranged and files icons size is 512 x 512 with maximum grid space. I adjusting each folder icon size back to normal but after reopening that folder all files is out of order again.  Is anybody experience same issue?
    Also I have brand new battery in my 17" MBP and OS Lion eat battery like a cake.

    I believe this has been brought up many times, aand no solution has been found.
    More Like This According to ASC
    File Vault Resize
    Re: Icon view in Finder - larger maximum icon size?
    dock applications smaller icons
    Re: change size of icons on Dock grid view
    Re: anyone know how to get lion to calculate all hd sizes in grid view?

  • Get Total DB size , Total DB free space , Total Data & Log File Sizes and Total Data & Log File free Sizes from a list of server

    how to get SQL server Total DB size , Total DB free space , Total Data  & Log File Sizes and Total Data  & Log File free Sizes from a list of server 

    Hi Shivanq,
    To get a list of databases, their sizes and the space available in each on the local SQL instance.
    dir SQLSERVER:\SQL\localhost\default\databases | Select Name, Size, SpaceAvailable | ft -auto
    This article is also helpful for you to get DB and Log File size information:
    Checking Database Space With PowerShell
    I hope this helps.

  • Out of memory error when Applet transferring a file of size 600 MB

    Hi ,
    I have an Applet which transfer files from client machine to server using streams.
    I have a servlet which reads data sent from Applet.
    This is working fine when i Transfer files of size 10 MB
    when I chose a file of 600 MB the following error is thrown at Applet side after some time.
    java.lang.OutOfMemoryError: Java heap space
         at java.util.Arrays.copyOf(Unknown Source)
         at java.io.ByteArrayOutputStream.write(Unknown Source)
         at sun.net.www.http.PosterOutputStream.write(Unknown Source)
         at java.io.DataOutputStream.write(Unknown Source)
         at Apple.FileUploadApplet.actionPerformed(FileUploadApplet.java:53)Here is my Applet Code
    if(ae.getSource() == jbutton)
         JFileChooser jfc=new JFileChooser();
         jfc.showOpenDialog(null);
    File f=jfc.getSelectedFile();
    try
    FileInputStream in = new FileInputStream(f);
    byte[] buf=new byte[1024];
    int bytesread = 0;
    String toservlet = "http://9.122.18.115:8080/FileTransfer/FileUpload?"
                                  + URLEncoder.encode("name") + "="
                                  + URLEncoder.encode(f.getName());
    URL servleturl = new URL(toservlet);
    URLConnection servletconnection = servleturl.openConnection();
    //servletconnection.setRequestMethod("GET");
    servletconnection.setRequestProperty("Content-type",
                "application/octet-stream");
    servletconnection.setDoInput(true);
    servletconnection.setDoOutput(true);
    servletconnection.setUseCaches(false);
    servletconnection.setDefaultUseCaches(false);
    DataOutputStream out = new DataOutputStream(servletconnection.getOutputStream ());
    while( (bytesread = in.read( buf )) > -1 )
    out.write( buf, 0, bytesread );
    // out.flush(); // tried this to flush the data but didn't work
    System.out.println("writing data");
    out.flush();
    out.close();
    in.close();
    DataInputStream inputFromClient = new DataInputStream(servletconnection.getInputStream() );
    //get what you want from servlet
    inputFromClient.close();
    catch(Exception e)
    e.printStackTrace();
    }My Servlet Code
    public void doPost(HttpServletRequest req,HttpServletResponse res)
    ServletContext sc = this.getServletContext();
    try
    String path = "C:\\Downloads\\";
    String  fileName=req.getParameter("name");
      System.out.println("name="+fileName);
    File yourFile = new File(path+fileName);
      System.out.println("name="+yourFile);
    FileOutputStream toFile = new FileOutputStream( yourFile );
    DataInputStream fromClient = new DataInputStream( req.getInputStream() );
    byte[] buff = new byte[1024];
    int cnt = 0;
    int k=0;
    long st,et;
    st=System.currentTimeMillis();
    while( (cnt = fromClient.read( buff )) > -1 ) {
    toFile.write( buff, 0, cnt );
    //System.out.println("writing data=="+ k++);
    et=System.currentTimeMillis();
    toFile.flush();
    toFile.close();
    fromClient.close();
    int tt=(int) ((et-st)/1000);
    System.out.println("total time for "+fileName+" Download ="+tt+" secs");
    System.out.println("total time for "+fileName+" Download ="+(tt/60)+" mins");
    catch(Exception e)
    e.printStackTrace();
    }Please Help me out...

    yeah its working fine. Thank you very much..
    But it would be better if we provide the chunklength rather than using a zero to upload the file fastly.

  • Couldn't Upload file with size more than 2K

    Hi,
    i am developing an webapplication where in i have to upload a file.we are using hibernate for data storing and retrieval.problem comes when i am uploading a file with size more than 2k bytes.if the file size lesser than 2k it works fine.i found that its a bug with thin jdbc driver version 9.but i am using 10g jdbc driver.still problem exists. i am not suppose to use oci drivers.
    working on
    OS: windows Xp.
    Apps :weblogic8.1
    DB: oracle 9i
    if anyone has solution plz mailme at [email protected]

    I'm not sure where the issue would be. Are you saying that you are using a 9i driver to access a 10g database? If so, download the newer driver and add it to your WEB-INF/lib directory. Remove the existing driver.
    If, on the other hand, you are using a 10g driver for a 9i database, I would not expect problems. However, you could always download the older driver and try it out.
    Or am I missing something?
    - Saish

  • There should be an idrive app to control our files in idrive

    I Cant control and edit and see my files on idrive there should be an app for this to view edit control the files and even when i open my idrive in safari on iphone 5s i cant control the page like move right or left to go to my idrive  it should be a lot more easier

    http://www.appshopper.com/education/flashcards

  • Control of file/folder access

    Hi!, how can I set access control for files / folders?

    You can also do a "get info" (cmd+i) on the file/folder and set permissions for access under "Sharing and Permissions" at the bottom of the window (you may have to click the lock and authenticate yourself first).

Maybe you are looking for

  • Ipod not recognized by iTunes or computer?????

    For two days now my ipod has not been recognized by my computer. I used my brother's old Ipod charger to charge my Ipod but it kept unplugging and replugging the Ipod on its own. When I got a different charger later that night, my Ipod was charging b

  • Upgrade Oracle database 11gR1 to 11gR2 in EBS R12

    Hello all, We are planning to upgrade our 12.1.3 ebs database 11gR1(11.1.0.7) to 11gR2. What are the broad level steps we need to follow. Or any document id is available? Please help

  • ITunes Sign in Not Working

    Scenario: Upgraded to iTunes 11.00.02, at long last (first mistake: I hate the interface), and subsequently could not log onto the App Store, etc. After scouring the forums, I happened to find one thread which said in Parental Controls, to disable iT

  • I know my e-mail and password but forgot my security questions, What can i do?

    i know my e-mail and password but forgot my security questions,  and im not able to access my app store account, what can i do

  • Business Warehouse SLcM Extractors

    An additive: are there any SLcM-BW customers that are using the Contract Accounts Receivable and Payable BW extractors for SLcM finance reporting? (Reports like: open items, cleared items, collection items, installment plan data, administration, etc)