Image representation in pdf format

I am wondering how does an image is represented in PDF format? I mean upon converting an image(whatever format) into pdf format, what is the conversion algorithm hidden beyond this simple procedure? and how does the image features and content are affected?

There are several different formats for storing graphics in a pdf. Sometimes the method used depends upon how the graphics were originally stored and created. I do not know the PDF generator works to choose which format it uses in any given case.

Similar Messages

  • Displaying image in pdf format - what is this image format?

    Hi All,
    I have a requirement where I need to embed an image in a pdf report that gets generated in BIP. The image is passed as a byte array from an external application , that BIP should recieve as a parameter and display it. The byte array looks very similar to the image that rtf generates when an image is pasted in it and the default xsl-fo template and style-sheet is created usign the BIP Word Plugin.
    The issue that I am facing is that, the byte-code is not getting displayed as an image in the pdf.
    When I pasted the image for the corresponding byte code in an rtf and generated the default xslfo file that BIP plugin generates, I am getting a different set of charecters than what is being send to BIP as parameter.
    I have read about CLOB and BLOB being queried from database using sql and displayed as image.
    I would like to know what exactly is the BIP Plugin converting the image to , when I paste it in an rtf and convert it to xsl-fo style sheet.
    If I have not made my query very clear and you are still confused about what I am talking about , please try this out in an rtf template.
    1) Open blank rtf template
    2) Paste any tiff or jpg image in your rtf template and save it.
    3) Goto Addin --> Tools --> Export --> Click on FO Formated XML or XSL FO Style sheet in the Menu
    4) An xml document will be opened in your default browser.
    5) Scroll down to the section with the tag " <fo:instream-foreign-object"
    6) Will see a big charecter set, which I believe is some form of representation of the image pasted in the rtf.
                   <fo:block>
                             <fo:instream-foreign-object
                             content-type="image/png"
                             width="163.5375pt"
                             height="53.07pt"
                             xdofo:alt="An Image"
                             xdofo:image-uid="fbasadsadaferehgffhghd1dvcxab9">               
                             <xsl:value-of select="$Logo3"/>
                             </fo:instream-foreign-object>
                   </fo:block>
    WHERE $Logo3 is declared as parameter and
    = /9j/4AAQSkZJRgABAgEAYABgAAD/7Q0YUGhvdG9zaG9wIDMuMAA4QklNA+0KUmVz b2x1dGlvbgAAAAAQAGAAAAABAAEAYAAAAAEAAThCSU0EDRhGWCBHbG9iYWwgTGln aHRpbmcgQW5nbGUAAAAABAAAAHg4QklNBBkSRlggR2xvYmFsIEFsdGl0dWRlAAAA ................................................goes on!!! [ 200000+ charecters]
    I would like to know what this image type is? Is this a byte array?
    If any one has had this and successfully taclkled this sort of requirement please help!!!
    Any pointers, explanations in this regard would be really helpful
    Thanks in advance
    Sujith

    What exact version of CF7 are you on?

  • How I can save report (graphics & text) in PDF format in LV6i?

    I am new to LabView. I tried to save the report as HTML document, it works well using vi's from report generation pallet. But the problem is HTML stores graphic images and text as multiple files. My requirement is to have one single file (like PDF format) to store the results/report of the process.
    Any help in this problem will be greatly appreciated.

    MattI wrote in message news:<[email protected]>...
    > Actually, this is really easy.
    >
    > Just open the .html file from within Word, and then save it as a Word
    > file.
    >
    > After this, if you have Adobe Acrobat installed, you can create a pdf
    > of the Word file.
    You could write a batch file that prints to a PS file using a PS
    Printer driver and then runs GhostScript to automate the PS -> PDF
    conversion. There is no need to buy a MS or Adobe product.
    A big of searchign and you'll probably find some ghostscript addon for
    HTLM->PS->PDF conversion

  • A big problem of Generate report with PDF format....Urgent

    I want to generate a report with pdf format through one java file, it have two page 1)gen_report.jsp 2) report_gen.java , the compliation was failed. However, i don't what the problem is .... i hope anyone can help me as it is very argent for me ....Thanks a lot
    1)gen_report.jsp
    <table  id="AutoNumber1">
       <tr>
         <td background="images/top5movie.png">
         <p align="center"> </p>
        </td>
       </tr>
       <tr>
       <td >
          <div align="center">
            <table id="AutoNumber2" >
                  <form method="GET" action="../report_gen" name="report_gen" target="_blank" onSubmit="javascript:return checkr1(this)">
                    <tr>
                      <td ><b>Report Description:</b></td>
                      <td >This report is to show the top five popular movies in cinemix for a period </td>
                    </tr>
                    <tr>
                      <td><b>Data scope:</b></td>
                      <td >Start from
                      <input type="text" name="start" value="2003-1-1" >to
                      <input type="text" name="end" value="2006-1-1" ></td>
                     </tr>
                     <tr>
                      <td><b>Data processing:</b></td>
                      <td >Show
                        <select name="order_by">
                          <option value="desc" selected>top</option>
                          <option value="asc">bottom</option>
                        </select>
                      5 films</td>
                    </tr>
                    <tr>
                      <td> <p align="center">
                          <input type="submit" value="View_Report" name="subm">
                        </p></td>
                    </tr>
                    <input type="hidden" name="report" value="r1">
                  </form>
                  <form method="GET" action="../report_gen" name="report_gen" target="_blank" onSubmit="javascript:return checkr2(this)">
                    <input type="hidden" name="report" value="r2">
                  </form>
                </table>
         </div>
          </td>
        </tr>
      </table>Then my java code is here
    report_gen.java
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    // chart and pdf out
    import java.awt.Graphics2D;
    import java.awt.geom.Rectangle2D;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import org.jfree.chart.ChartFactory;
    import org.jfree.chart.JFreeChart;
    import org.jfree.chart.plot.PlotOrientation;
    import org.jfree.data.category.DefaultCategoryDataset;
    import org.jfree.data.xy.*;
    import org.jfree.data.xy.XYBarDataset;
    import org.jfree.data.general.DefaultPieDataset;
    import org.jfree.data.statistics.SimpleHistogramDataset;
    import org.jfree.data.xy.XYSeries;
    import org.jfree.data.xy.XYSeriesCollection;
    import com.lowagie.text.Document;
    import com.lowagie.text.DocumentException;
    import com.lowagie.text.Rectangle;
    import com.lowagie.text.pdf.DefaultFontMapper;
    import com.lowagie.text.pdf.PdfContentByte;
    import com.lowagie.text.pdf.PdfTemplate;
    import com.lowagie.text.pdf.PdfWriter;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.pdf.PdfPCell;
    public class report_gen extends HttpServlet
       private final String titles[] = {"Top Five popular movies ",
                        "Financial cirumstance of cinemas",
                        "Distribution of time segment",
                        "Distribution of favourite movie type"
       private final String descs[] = {"This report is to show the top five  popular movies in cinemix for a period ",
                   "This report is to show the financial circumstance of each cinema site ",
                   "This report is to analysis the customer when is the most visit time ",
                   "This report is to analysis the customer which type of movie do they watch the most"
        private final String bigTitle = "Cinemix";
        private final String driver = "org.gjt.mm.mysql.Driver";
        private final String url= "jdbc:mysql://localhost:3306/cinemix";
        private final String userID = "abc";
        private final String passwd = "abc";     
        public void init(ServletConfig config) throws ServletException
          super.init(config);
       protected void doGet(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException
          final int width = 550;
         final int height = 200;
    / title font (centre and report title)
         final Font fTitle0 = FontFactory.getFont("Helvetica", 42, Font.BOLD);
         final Font fTitle1 = FontFactory.getFont("Helvetica", 30, Font.BOLD);
              // centre name:
        final String title0 = bigTitle;
       // Default category for DefaultCategoryDataset
       final String cat = "data";
       Connection conn;
      JFreeChart chart;
       String title1     = "xyz Report";
       String chartDesc = "description";
       String notes[] = new String[4];
       String chartTitle = "so bad this is title";
       String chartXTitle = "this is x";
       String chartYTitle = "this is y.";
       String report = request.getParameter("report");     
       int max=-10000;
       int min=10000;
       int j=0;          
      // do some basic checking
       if (report == null || report.equals(""))
         report = "-1";  // this course unknow report error message
         String start   = request.getParameter("start");
         String end  = request.getParameter("end");
         String order_by  = request.getParameter("order_by");  // ToDo: check invalid string
           int topN  = 5;
        String order = (order_by.equals("desc")) ? "Top" : "Last";
       String inv[] = {"08:30", "09:30", "10:30", "11:30", "12:30", "11:30", "12:30", "13:30", "14:30", "15:30", "16:30", "17:30","18:30","19:30","20:30","21:30","22:30","23:30"};
         int inv_val[] = new int[inv.length - 1];
         try
            Class.forName(driver).newInstance();
             catch(Exception e)
            printE("Cannot load mysql database driver!", response);
              e.printStackTrace();
               return;
           try
                 conn = DriverManager.getConnection(url, userID, passwd);
                  if (report.equals("r1")) {  // report 1
               DefaultCategoryDataset dataset = new DefaultCategoryDataset();
              Statement stmt = conn.createStatement();
              String sql = "select *,count(f.Name),f.Name from film f, filmDetail fd, ticket t where f.startDate > '" + start + "' and f.endDate <  '" + end + "'and fd.filmID = f.filmID and fd.filmDetailID = t.filmDetailID group by f.name order by fd.filmDetailID asc limit '" +topN+"'";
              ResultSet rs = stmt.executeQuery(sql);
            while (rs.next())
           if (rs.getInt("fd.filmDetailID") > max) max = rs.getInt("fd.filmDetailID");
         if (rs.getInt("fd.filmDetailID") < min) min = rs.getInt("fd.filmDetailID");
          j++;
           ataset.setValue(rs.getInt("fd.filmDetailID"), cat,rs.getString("f.Name"));
           title1     = titles[0];
         chartDesc  = descs[0];
         chartTitle = order + " " + topN + " popular movie";
          chartYTitle = "Box Office record";
          chartXTitle = "Film Name";
          gender = " ";
          chart = ChartFactory.createBarChart(chartTitle, chartXTitle,   chartYTitle, dataset,PlotOrientation.VERTICAL, false, true, false);
        else
              print("Error: I don't inderstand your request!", response);
         return;
           catch (SQLException e)
         printE("Cannot open database connection? <br>", response);
         // printE(e.toString);
      e.printStackTrace();
      return;
         response.setContentType("application/pdf");
         Document document = new Document(PageSize.A4, 5, 5, 5, 5);
        try
             PdfWriter writer;
         writer = PdfWriter.getInstance(document, response.getOutputStream());
        HeaderFooter footer = new HeaderFooter(new Phrase("Page: "), true);
         footer.setBorder(Rectangle.NO_BORDER);
    document.setFooter(footer);
                   footer.setAlignment(Element.ALIGN_CENTER);
                   // step 3
                   document.open();
                   document.add(getHeader(title0, title1, start, end, gender, order, topN, chartDesc));
                   document.add(printChart(chart, writer));
                   document.add(getFooter(notes));
              catch(DocumentException de)
                   de.printStackTrace();
              // step 5
              document.close();
              return;
         }// end doGet()
         /** Handles the HTTP <code>POST</code> method.
          * @param request servlet request
          * @param response servlet response
         protected void doPost(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException
              // processRequest(request, response);
         /** Returns a short description of the servlet.
         public String getServletInfo()
              return "Generate reports for " + bigTitle;
         /* To print en error and exit(?) */
         private void printE(Object obj, HttpServletResponse response) throws IOException
              response.setContentType("text/html");
              PrintWriter out;
              out = response.getWriter();
              out.print(obj.toString());
              out.close();
              // To-Do: how to force exiting?
         // create data chart
         private PdfPTable getHeader(String title0, String title1, String start, String end, String sex, String order, int topN, String desc)
              Font fTitle0 = FontFactory.getFont("Helvetica", 42, Font.BOLD);
              Font fTitle1 = FontFactory.getFont("Helvetica", 24, Font.BOLD);
              Font fTitle3 = FontFactory.getFont("Helvetica", 12, Font.BOLD);
              Font fValue = FontFactory.getFont("Helvetica", 12, Font.UNDERLINE);
              Paragraph parStartEnd = new Paragraph();
              parStartEnd.add(new Phrase("Data start from:                  ", fTitle3));
              parStartEnd.add(new Phrase(start, fValue));
              parStartEnd.add(new Phrase("     to     ", fTitle3));
              parStartEnd.add(new Phrase(end, fValue));
              Paragraph parGenerateDate = new Paragraph();
              parGenerateDate.add(new Phrase("Report generated at:         ", fTitle3));
              parGenerateDate.add(new Phrase(new java.util.Date().toString(), fValue));
              Paragraph parGender = new Paragraph();
              parGender.add(new Phrase("Current show gender:       ", fTitle3));
              parGender.add(new Phrase(sex, fValue));
              Paragraph parTopN = new Paragraph();
              parTopN.add(new Phrase("Now is showing                 ", fTitle3));
              parTopN.add(new Phrase(order, fValue));
              parTopN.add(new Phrase("  ", fValue));
              parTopN.add(new Phrase(new Integer(topN).toString(), fValue));
              parTopN.add(new Phrase("   record(s)", fTitle3));
              // Start main table
              PdfPTable tblMain = new PdfPTable(1);
              tblMain.getDefaultCell().setBorder(0);
              // Print title
              tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
              tblMain.addCell(new Paragraph(title0, fTitle0));
              tblMain.addCell(new Paragraph(title1, fTitle1));
              tblMain.addCell("");
              tblMain.addCell("");
              tblMain.addCell("");
              // Print headers data
              //tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_RIGHT);
              //tblMain.addCell(parInvoiceNum);
              //tblMain.addCell("");
              tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
              tblMain.addCell(parStartEnd);
              tblMain.addCell("");
              tblMain.addCell(parGenerateDate);
              tblMain.addCell("");
              if (sex != " ")
                   tblMain.addCell(parGender);
              else if(order != null && topN > 0)
                   tblMain.addCell(parTopN);
              else
                   tblMain.addCell(" \n");
              tblMain.addCell("");
              tblMain.setWidthPercentage(96);
              tblMain.addCell(new Paragraph("Description of this report:", fTitle3));
              tblMain.addCell(desc);
              tblMain.addCell("\n");
              // Finish main table
              return tblMain;
         // print a chart _directly_ to pdf and return a empty Pdftable...
         public PdfPTable printChart(JFreeChart chart, PdfWriter writer)
              PdfContentByte cb = writer.getDirectContent();
              int width = 550;
              int height = 450;
              PdfTemplate tp = cb.createTemplate(width, height);
              Graphics2D g2d = tp.createGraphics(width, height, new DefaultFontMapper());
              Rectangle2D r2d = new Rectangle2D.Double(0, 0, width, height); //->,
              chart.draw(g2d, r2d);
              g2d.dispose();
              cb.addTemplate(tp, 20, 170);
              // quick method to push down the footer text
              // the only things this method return
              PdfPTable tblDownDown = new PdfPTable(1);
              tblDownDown.getDefaultCell().setBorder(0);
              tblDownDown.addCell(" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n");
              tblDownDown.addCell(" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n");
              tblDownDown.addCell(" \n \n \n \n \n \n");
              return tblDownDown;
         public PdfPTable getFooter(String notes[])
              Font fNote = FontFactory.getFont("Helvetica", 14, Font.UNDERLINE);
              Font fComment = FontFactory.getFont("Helvetica", 12, Font.ITALIC);
              Font fTitle1 = FontFactory.getFont("Helvetica", 30, Font.ITALIC);
              // Start footer table
              PdfPTable tblFooter = new PdfPTable(1);
              tblFooter.getDefaultCell().setBorder(0);
              if (notes != null)
                   tblFooter.addCell(new Paragraph("Notes:", fNote));
                   tblFooter.addCell("");
                   tblFooter.addCell("");
                   tblFooter.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
                   for (int i=0;i<notes.length;i++)
                        if (notes[i] != null)
                             tblFooter.addCell(new Paragraph("" + (i+1) + ". " + notes[i] + "", fComment));
                             tblFooter.addCell("");
                             tblFooter.addCell("");
                        tblFooter.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
                        tblFooter.addCell(new Paragraph("- End of report -", fComment));
                        return tblFooter;
    }

    Go to the cache directory and see if you can open the report directly from here (not in IE).
    I have seen posts on problems with Acrobat Reader Plugin for IE (I believe it was version 6 of Reader).

  • Problem with "Save as Adobe PDF format" in Excel and Word

    Hi
    When I use printing zone in Excel and make a «Save as Adobe PDF format» (menu File / Save as Adobe PDF), the first save is well done. But when I make it a second time, what's not in the printing zone is printing in the document.
    I have also problem with the «Save as Adobe PDF format» in Word. The images superposition are not well print.
    I'm using Windows 7 in french, Office 2010 french and Adobe Acrobat XI standard. All is in the latest version.
    Thanks

    The Save As PDF feature in Office2008 Call up a PDF  Creator similar to the AdobePDF Print Driver. whch OX.6 can't use.
    To create Pdf you have to use method used:
    http://indesignsecrets.com/acrobats-adobe-pdf-printer-replaced-in-snow-leopard.php
    Not before you attempt to use this method if  Rossetta is not installed. pop in your Systems DVD and install Rosetta. Then follow directions to install the Adobe Quality PDF Automator Script which will show up in the Print Menu. Click on Print > then click PDF. Then Click on Adobe quality PDF.  AS for setting up Job options and other details Supposedly your suppose to  have access. But I have no idea.
    First thing Rosetta should be installed out of the box. and Second Adobe should install this Script from their installer. So their should be no intervention from the user. it should just work. Early report when OSX.6 first came out almost no one was able to get this to work. and I see periodic reports that people still can't get it tork and they have to to resort to saving as .ps files then droping on distiller.
    Good luck.

  • Problem in Using scanned .pdf format files

    I have an old (5-6 years old) Canon N670U flat bed scanner.  I use it for scanning books of my interest.  It can give each page/document  scan in pdf format directly.  However each scan becomes a separate file lthough serially numbered while scanning.  When I want to read the pages, Next/Previous page or pages Up/Down etc. - reader tools available in Acrobat Reader are not operative.
        I need to go back to each scan file separately.  Also, most of the time, image needs to be rotated.  Though I do it in view mode, it does not get saved in corrected mode-even if I go to "file" and click on "save as".  At each fresh visit, this has to be repeated.
        Present driver of the scanner is version 4. I did get your version 7 downloaded.  But could not install & use it.  Is it necessary that old version first must be uninstalled and only then I can install the new version?  Is it not automatic?  It might have to copy new and remove old software files.
        What should be done that all these individual files (of a single bok) can be combined into a single meaningful folder, with availability/access to all Adobe Reader Tools.  Will be grateful for advice..

    Sharadshankar wrote:
    I need to go back to each scan file separately.  Also, most of the time, image needs to be rotated.
    This needs to be done during the scanning process, using your CanoScan software.  Once the file is saved unrotated, you will need some additional software to do that (Acrobat), so better do it during the scanning process.
    Use the Rotate clockwise / counterclockwise buttons on your scanning software.

  • Figuring out how to extract images from a PDF file

    Hi,
    I'm trying to write a small app that extracts all images from a PDF file. I already wrote a nice parser and it works good but the only problem is that I can't quite figure out from the reference how to decode all images in a PDF file to normal files such as tiffs, jpegs, bmps etc. For now I'm focusing on XObject images and not dealing with inline images.
    From what I understand so far just by trying and looking at open sources I figured that if I see a XObject Image with a DCTDecode filter, taking the stream data without doing anything to it and saving it as a jpeg file works. But doing the same to FlateDecoded streams or CCITTFax didn't work.
    What is the right way to properly extract the images?

    In general you have to
    * decode the stream
    * extract the pixel data
    * use ColorSpace, BitsPerComponent, Decode and Width to unpack pixel
    values
    * reconstruct an image file format according to its specification
    There are no other shortcuts. The DCTDecode shortcut (which doesn't
    work for CMYK JPEG files) is just a piece of fantastic good luck.
    Aandi Inston

  • How can I create an iBook using iBooks Author using images from a PDF?

    I have a complex book with custom fonts and lots of images, and the client wants it on the iPad. So my most reasonable option seems to be to take images from a PDF and use them for the pages. However, images in iBook Author don't get "laid out" as expected in Portrait mode. How can I  create a layout that is essentially one image per page in portrait mode, and then convert that to landscape mode? Or is there an easier way to go about this?

    tk0us wrote:
    Make sure you have disabled portrait in the Inspector.
    I don't understand why portrait mode defaults images and other "widgets" to thumbnails. The original format of the book (and of 99% of all books I'm guessing) is in portrait format. By forcing the book to work only in landscape mode it's forcing the page image to be half the size, and that makes using this book particularly difficult. Is there no way to force the pages to be full-size in portrait mode?

  • How can I create sharp screenshots in PDF format?

    I would like to create sharp screenshots in PDF format, but whenever I use Grab (Version 1.3(90)) for my screenshots the images turn out to be somewhat fuzzy. The shots that I want to take are of the whole screen, with the browser Safari open, showing webpages with significant detail. I use Grab, and then convert to PDF. I import those files into Latex using TexShop. The images turn out to be fuzzy. If projected on a large screen, I can't read the text in the webpage. It is as if someone with a trembling hand had held a camera at the screen. Is there any way of creating sharp screenshots in PDF? Many thanks for any help.

    Hi tilmat,
    first of all: WELCOME TO THE DISCUSSIONS!
    The sharpness of screenshots is limited by the resolution of the screen. A normal CRT-display has a resolution of 72 dpi which is less than half the resolution of 150 dpi you would use for low quality print-outs. So, unless you make the screenshot smaller by a factor of at least 2 it will always be a little blurry.
    You can change the format of the screenshots with utilities such as TinkerTool.
    If this answered your question please consider granting some stars: Why reward points?

  • Convert Smartform in PDF format and send to SAP Workplace

    Hi to all.
    I need help of somebody expert in SMARTFORM's.
    I need to convert a smartform into PDF format and to send as attachement for SAP workplace
    of the user.
    I developed the next code.
    IT is to function and to send the mail for SAP workplace, but it happens that smartform
    contains images (logos) and tables, when the user tries to open the file pdf in inbox gives
    to error - "An unrecognized token ' q0 ' was found".
    I tried to call a smartform only with text and functioned well.
    Somebody can help me?
    My code:
    Begin ***********************************************
    REPORT zteste_nsa_send_pdf_sap_office.
    DATA: t_print LIKE zeps_fm04 OCCURS 0 WITH HEADER LINE,
          v_size TYPE i.
    DATA: ls_bil_invoice TYPE lbbil_invoice.
    TABLES: nast.
    DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
    i_tline TYPE TABLE OF tline WITH HEADER LINE,
    i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
    i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    Objects to send mail.
    i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
    i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    Work Area declarations
    wa_objhead TYPE soli_tab,
    w_ctrlop TYPE ssfctrlop,
    w_compop TYPE ssfcompop,
    w_return TYPE ssfcrescl,
    wa_doc_chng TYPE sodocchgi1,
    w_data TYPE sodocchgi1,
    wa_buffer TYPE string,"To convert from 132 to 255
    Variables declarations
    v_form_name TYPE rs38l_fnam,
    v_len_in LIKE sood-objlen,
    v_len_out LIKE sood-objlen,
    v_len_outn TYPE i,
    v_lines_txt TYPE i,
    v_lines_bin TYPE i.
    START-OF-SELECTION.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZFPS_FICHA_VALORIZACAO'
        IMPORTING
          fm_name            = v_form_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      w_ctrlop-getotf    = 'X'.
      w_ctrlop-no_dialog = 'X'.
      w_compop-tdnoprev  = 'X'.
      CALL FUNCTION v_form_name
        EXPORTING
          control_parameters = w_ctrlop
          output_options     = w_compop
          user_settings      = 'X'
          is_bil_invoice     = ls_bil_invoice
          is_nast            = nast
          is_repeat          = 'X'
        IMPORTING
          job_output_info    = w_return
        TABLES
          t_list             = t_print
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      i_otf[] = w_return-otfdata[].
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
          bin_filesize          = v_len_in
        TABLES
          otf                   = i_otf
          lines                 = i_tline
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
      IF sy-subrc EQ 0.
      ENDIF.
    Convert PDF from 132 to 255.
      LOOP AT i_tline.
        TRANSLATE i_tline USING '~'.
        CONCATENATE wa_buffer i_tline INTO wa_buffer.
      ENDLOOP.
      TRANSLATE wa_buffer USING '~'.
      DO.
        i_record = wa_buffer.
        APPEND i_record.
        SHIFT wa_buffer LEFT BY 255 PLACES.
        IF wa_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    SEND MAIL
      REFRESH:  i_reclist,
                i_objtxt,
                i_objbin,
                i_objpack.
      CLEAR wa_objhead.
    Object with PDF.
      i_objbin[] = i_record[].
    Object with main text of the mail.
      i_objtxt = 'Fichas de Valorização e Esquemas Tipo'.
      APPEND i_objtxt.
    Document information.
      wa_doc_chng-obj_name   = 'SMART'.
      wa_doc_chng-expiry_dat = sy-datum + 10.
      wa_doc_chng-obj_descr  = 'Ficha de Valorização'.
      wa_doc_chng-sensitivty = 'F'. "Functional object
      wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + STRLEN( i_objtxt ).
    Pack to main body as RAW.
    Obj. to be transported not in binary form
      DESCRIBE TABLE i_objtxt LINES v_lines_txt.
      READ TABLE i_objtxt INDEX v_lines_txt.
      CLEAR i_objpack-transf_bin.
      i_objpack-head_start = 1.
      i_objpack-head_num   = 0.
      i_objpack-body_start = 1.
      i_objpack-body_num   = v_lines_txt.
      i_objpack-doc_type   = 'RAW'.
      APPEND i_objpack.
    Packing as PDF.
    Obj. to be transported in binary form
      DESCRIBE TABLE i_objbin LINES v_lines_bin.
      READ TABLE i_objbin INDEX v_lines_bin.
      i_objpack-transf_bin = 'X'.
      i_objpack-head_start = 1.
      i_objpack-head_num   = 0.
      i_objpack-body_start = 1.
      i_objpack-body_num   = v_lines_bin.
      i_objpack-doc_type   = 'PDF'.
      i_objpack-obj_name   = 'SMART'.
      CONCATENATE 'Ficha_Valorizacao' '.pdf' INTO i_objpack-obj_descr.
      i_objpack-doc_size = ( v_lines_bin - 1 ) * 255 + STRLEN( i_objbin ).
      APPEND i_objpack.
    e-mail receivers.
      CLEAR i_reclist.
      i_reclist-receiver = sy-uname.
      i_reclist-rec_type = 'B'.
      i_reclist-express  = 'X'.
      APPEND i_reclist.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = wa_doc_chng
          put_in_outbox              = 'X'
          commit_work                = ' '
        TABLES
          packing_list               = i_objpack
          object_header              = wa_objhead
          contents_bin               = i_objbin
          contents_txt               = i_objtxt
          receivers                  = i_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc EQ 0.
      ENDIF.
    End  *************************************************
    Thanks very much to all and Happy New year...
    Nelson

    Please check this link...
    [http://help.sap.com/saphelp_nw04/helpdata/en/27/67443cc0063415e10000000a11405a/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/27/67443cc0063415e10000000a11405a/content.htm]
    -Muktar

  • Poor image quality in pdf for Aperture book

    Can anyone tell me how to retain the quality of original images when I export to PDF for book production in Aperture?
    I am trying to produce a book with 11 pages, in large soft back format.  Most of the images are black and white, and all are PNGs.  Individual files size are typically 12MB - 20MB, and  the longer side of the images is mostly over 5000 pixels.  They all look very clean and crisp full screen in Aperture, and there are no warning triangles in the page make-ups to highlight any instances of poor resolution.
    I’m producing the PDF, via ‘Print’ > ‘Save as PDF’.  The resulting file is 2.6MB.
    Viewed in Preview, some of the images in the PDF superficially appear to be OK.  Some are not - and are very indistinct.  Zooming in on the images in Preview shows that very few are useable.
    I produced a colour book, with larger pages last year and was very happy with both the PDF and the finished book in print.  Some example file sizes from that one were:  15.3MB (3950x2633) and 9.30MB (2880x 1920).
    I had expected the black and white images to work even better. 
    What am I doing wrong here?
    I'm using Aperture 3.2.1 on a MacBook Pro running 10.6.8.

    I just remade the same book - as a test - in the extra large hardback format (ie. the one I used for the previous publication, last year).
    This time, the pictures are fine.  The images appear to be the same quality in the PDF as the originals - much, much better.  The size of the file has increased massively too > up from just 2.6MB to 52.8MB.
    So does the books production function work well only with the biggest, most expensive option? 
    I'd really appreciate some feedback from anyone who's tried the different sizes, and preferably some brilliant ideas to make them all work equally well.

  • "could not complete your request because of a program error", PDF format, cs2, xp

    1. When edit picture from pdf (from acrobat 7.0.8) in photoshop cs2 901, source pdf can't be saved after closing image in photoshop.
    2. When opening picture in photoshop pdf format, program return "could not complete your request because of a program error". Pdf is saved from same photoshop on same machine.
    What is that with cs2? I have buy 24 tlp licenses cs2 premium packets and i can't work like in previous version? This is big disapointed for me from adobe.
    How i can resolve above problems?
    OS is legal xp with all s. packs.

    ...this problem is frustrating me now, running intel mac, 10.4.9, PShop 9.02, tried everything without a solution yet, my program error occurs right on launch, change a preference, leave it running in the background, then the icon in my dock starts bouncing at me for attention...
    ...boot from cd and run disk utility - failed
    ...trashing all preferences and settings - failed
    ...re-install pshop, update to 9.02 - failed
    ...boot in safe mode, start pshop and quit, reboot normal mode, start pshop - failed
    ...recreated printers in printer set up - failed
    ...program errors occur when software conflicts arise due to an updated operating system.
    ...so the conclusion i have come up with is it's (according to adobe, apples problem for updating the operating system, and according to apple, adobes problem for updating Pshop), the problem being it is always someone elses problem...
    ...rosetta has a few issues I'm sure with CS2, not sure adobe want us running CS2 in rosetta really, perhaps we'll all get annoyed enough eventually to have to get the CS3 instead...
    ...sod the 9.02 update, uninstall it, reinstall and update to 9.01...
    ...works fine...
    ...except for illustrator cs2 that is, he is quite happy crashing in the background too...
    ...making quark xpress on rosetta look fantastic. what a headache for everyone...
    ...this post might sound intolerable, as it goes i'm very tolerable, my boss ain't though waltzing round wandering why he spends his money on this stuff, well, customers money really...
    Andrew

  • How to Publish an eBook in PDF Format

    Start a New PDF eBook Project
    From the Create > Create eBooks page click Make Your eBook.
    Alternatively, go to My Projects > Start a Project > eBook 
    Enter a title, author name and select your project's availability.
    Click the Save & Continue button.
    These options can be changed later if necessary.
    What do the choices mean?
    Sell this book: Lulu users can search for, purchase, and download this project from the Lulu.com bookstore.
    Make available only to me: Only you can see this project. Lulu users cannot purchase or download it from the Lulu.com Bookstore.
    Please Note: PDF eBooks cannot be distributed to retail sites other than the Lulu Bookstore.
    ISBN
    International Standard Book Numbers cannot be assigned to eBooks created in PDF format.
    Add Files
    Upload PDF, DOC, DOCX, ODT, RTF, TXT, JPG, or GIF files for conversion into a PDF eBook.
    Note: If you want to create an eBook that can be sold on retail sites other than the Lulu Bookstore, you must convert your eBook to EPUB format.
    Make sure you have removed all security settings and passwords from your PDF files before uploading.
    Click the Browse button to locate the file(s) you want to use for your eBook.
    Click Open to select the file.
    Click Upload to add the file to your project.
    Click Save & Continue to convert your file into a PDF eBook.
    Other uploading information
    Multiple Files - You may upload multiple files in any supported format to be converted into your PDF eBook. During conversion, the files will be assembled into a single PDF file in the order they are listed in the Project Files list.
    PDF - If you upload DOC, DOCX, RTF, images, or multiple files for conversion to PDF format, you must select the dimensions in which your original manuscript is formatted to preserve your original layout and formatting.
    Verify PDF Conversion
    Download and preview your file. Make sure the pages and illustrations are formatted and displayed as you want.
    To edit your files, click Back, make any necessary changes to your manuscript file, reupload it, and reconvert to PDF.
    If your interior PDF file is as you want it, click Save & Continue.
    Marketing Image
    Think of the eBook marketing image as the eBook’s “cover.” It is the image shoppers see when browsing online for eBooks and on their eReader’s “bookshelf” when they purchase and download your work.
    When creating and editing your marketing image, you should design the image to capture a shopper’s attention. The art and text should be clear, crisp, and easily read when viewed as a thumbnail.
    The marketing image consists only of the front cover art, which should include the book title and author name. Unlike print books, there is no back cover or dust jacket flaps on an eBook cover that can be used to provide author information or a synopsis of your work. Therefore the marketing image could be the first, and last, impression a shopper has of your work.
    The Marketing Image must be created to the following specifications:
    Dimensions: At least 612 x 792 pixels (8.5” x 11” or 21.59 cm x 27.94 cm)
    Resolution: 72dpi or higher to provide a clear image when viewed in multiple sizes
    To create or edit your marketing image:
    Choose the Marketing Image Theme, which includes placement of the title and author name you entered in the first step of the publishing wizard.
    To add your own background or cover design, click the Backgrounds & Pictures tab. Click on the marketing image thumbnail and follow the instructions to upload and save a new marketing image.
    To edit or remove the preconfigured title and/or author name from your marketing image, click on the Text tab.
    a.  To edit the title or author name, use the text editing options displayed on the page.
    b.  To remove the text, deselect the check boxes next to Show Title and Show Author.
    Note: If you change the title of your eBook, you should return to the first step of the wizard and update the project's title field.
    When the cover is as you want it, click Make Image > Save & Continue.
    Review Your Project
    Review your project. Click the Change button for any section that needs adjustment. If everything is to your liking click the Save & Finish button.
    Your eBook is now available for purchase in the Lulu Bookstore, unless you chose to create a private project for your personal use. 
    Describe Your Project
    If you chose to sell your project in the Lulu Bookstore, you should include a bit more information to help readers find your eBook.
    Go to My Lulu > My Projects.
    Click on the eBook title in the Projects list to open the Details page.
    From this page you can click the Edit buttons in each section to add a book description, select the proper book category, add search keywords to help users find your eBook, and select a copyright license type. You can also create a preview for your book and set its price.
    Set Your Project Price
    Set the price for your eBook and click Save Changes.
    E-books can be given away for free or sold at any price $0.99 or higher.
    For PDF eBooks, the author receives 90% of all revenue above $0.99. (Authors earn no revenue on eBooks sold for $0.99.)

    Hi ALL
    Habib
    Tyson Jouglet
    Tony Miller
    Andy
    Thanks for yours replies...
    I have worked in JASPER REPORTS for generating reports .... just wanted too know that anyother way is there to generate pdf report in APEX.
    With your replies i came too know about other reporting tools .. once again thanks for your help ..
    So the conclusion is we cant get the PFD directly from Apex without integrating anyone those tools rite.......
    regards,
    Arumugam

  • InDesign equivalent of LiveCycle's "Image Field" in PDF form creation?

    LiveCycle has a PDF form field called "Image Field". We add this field to the PDF files we create so that our end users can select and import a JPEG image into their PDF document using Adobe Reader.
    Now we would like to use InDesign to produce the same PDF form files as an alternative to using LiveCycle. Does InDesign have a PDF form field like LiveCycle's "Image Field"? We haven't found it yet.
    In other words, does someone know in InDesign how to create a field in PDF forms which has the same functionality as LiveCycle's "Image Field"? LiveCycle's field works in enabled Adobe Reader files, and permits JPEG format, among others.
    Thank you,
    Kevin
    P.S. We discovered a way to create PDF forms in Adobe Acrobat Pro XI with similar functionality by using JavaScript, but the Acrobat Pro created documents only permit Adobe Reader to import PDF files, not JPEG or other image formats. So Adobe Acrobat Pro XI was not a viable alternative to LiveCycle for creating our PDF files. We'd like to know if we need to rule out InDesign, too.

    It's worth separating out the different responsibilities and products.
    Whether a functionality exists in Reader depends on the Acrobat team. Reader, being free, is limited by design, the aim of the design being to sell copies of Acrobat. Obviously, Reader can't make PDFs or do preflighting. Less obviously, there are a bunch of JavaScript functions that don't work. Sometimes, with Reader enabling, more functions become available. (There are different kinds of Reader enabling, some of which need very expensive extra products).
    Whether a form capability exists at all is largely down to the PDF specification (now an ISO standard) or the XFA specification. Adobe can choose to go beyond the specification but largely choose not to.
    So, the InDesign team can make form fields, not because the Acrobat team approves, but because the way this is done is written down in the PDF Specification. InDesign _could_ choose to make XFA forms, but thank goodness that will never happen.
    So, if you want InDesign forms to do something you first have to ask: can Acrobat forms to this. NOT XFA (LIveCycle forms) which are done by a different team to different rules. So far as I know Acrobat forms cannot do the sort of thing you want; that is, placing arbitrary graphics, but in certain circumstances they can place PDF files.
    Why make the distinction?
    - If Acrobat can make forms that do this, then so can InDesign: it's worth asking the InDesign people to do it.
    - If Adobe limit Adobe Reader, there is no use asking the InDesign team to solve this.
    - If Acrobat can't make forms that do this, then nor can InDesign.

  • Need help now! Preserving color in Pages to PDF format

    I read the other recent post on PDF-CMYK and I may be in the same boat. Right now, I need to get my Pages newsletter (6 pages long) saved in a PDF format that will preserve the original colors I used in Pages. This PDF will be emailed and be posted online for others to read online--so I need the same colors. Everything I have tried has failed - but this for some reason worked, and I dont know why (nor I am not sure what it is doing) -
    From Pages Print, Save PDF as PostScript (no clue what this is). It created a 40MB file. I used Preview to open it and it converted it to a PDF - *perfect color match to original Pages document* Yes!... BUT - in the title bar I can see the name of my file, it has .pdf a the end. So I try to File Save it in the required directory and it reverts to the off-colors. The off colors consistently appear when I try to use any other PDF save format.
    My goals -
    #1 Time-date Priority (less than 24hrs) I need a compressed email friendly newsletter in PDF to share via email/web download.
    #2 Print ready PDF version (not sure on the file requirements yet)
    HELP!!

    Thanks. Yes, I realize i need RGB. When I try any of the PDF print options (either export or print PDF or Compressed PDF or Email PDF) they ALL change the color layout of the entire newsletter!! The colored blocks behind the text are all altered, but all of the inserted JPGS are just fine.
    I managed to use Automator and applied a custom Quartz filter to apply an RGB profile and render the intent on the shading and it seemed to help some, but it is not the same as the original. This action I created has to start with a PDF file to run it - so you can see I am back at square one with the PDF save not capturing the correct colors. This action took a 7+mb PDF file (created via Export) and made it into 660kb (oh, I also used a compression quartz filter too in the action).
    I only had one problem with one image getting fine white lines horizontally through it. I suspect that is one image that was very large to begin with. I will try to resize it in PSE and then insert a smaller version of it. The rest of the jpg's were fine.
    Right now this newsletter PDF has to be emailed to members and it will be posted online for download. It will also be emailed to prospective commercial printers to give them a preview of the project (but not use this actual file for printing).
    So I am still stuck with PDF saves not preserving my original colors.

Maybe you are looking for