Using PDF as image format

Hi, Frame users
What is your opinion on using Graphics with PDF-format when authoring DITA content, as I'm not sure that PDFs are supported as Graphics-format in DITA?
Reason for this is that I'm trying to switch from using grapics with WMF-format (exported from cad) to SVG-format, but I have experienced some problems when importing Graphics with SVG-format to FrameMaker.
Sómetimes it works, but not always, for example "the filter encountered a problem and could not complete the translation".
I have also tried checking if the files are valid with the W3C online validator.
Best regards
Ronny

Hi Ronny...
DITA doesn't care about the format, it's just a referenced file. How well this works will depend on your publishing stream. The best thing to do it to try it and see what happens. If you only produce PDFs through FM, then it's likely to be fine. If you produce HTML-based output through RoboHelp (or through the FM Publish command), it'll probably work fine there as well. If you use the OT, it may not work .. the OT doesn't do any image conversions and will just pass the file through to the output format as it is.
SVG can work if you've got "clean" files. The SVG format is very flexible and can render the "same" image in many different ways. FM's SVG rendering seems to only be set up to understand a subset of what the format can really handle. If you get SVGs from different tools they will likely be created by different means. Open them up in a text editor and take a look. If you find a tool that produces SVG that FM likes, you can probably continue to use that tool and it'll work in FM. (maybe)
SVG can have similar problems as PDF though, it may or may not be properly supported by your publishing stream. Most modern browsers will support SVG, but older browsers may not. The best thing to do is to give it a try, and test it in all of the deliverable formats that you're likely to use.
Cheers,
…scott

Similar Messages

  • Unable to use PDF as a format only text

    emailed invoices come out in unreadable format.
    acrobat doesn't allow us to use PDF a a format only text.
    win7x64 with Officex32, outlook x32. and acrobat X pro (trial version)
    any help is appreciated

    I will do my best on your comments and may be repetitive (I am also getting tried and am sleepy). I get the impression that the result looks fine in Acrobat OR Reader. I an not sure reader can e-mail the PDF, but if it can the results often depend on the client e-mail setup (typically requiring MAPI to be active. Many folks (even my on some machines) just can't get the e-mail option to work. I would suggest that they simply attach the PDF to an e-mail directly, though I think you are trying to streamline the process. At least that may give a working process as you are trying to find out what is happening.
    Howver, you also seem to suggest that the e-mail works (that would mean that the PDF was attached to the e-mail). In that case, my guess is that the e-mail package on the client machine is not set to encode attachments properly. I would suggest that encoding (typically MIME) be activated in the client for all attachments. Outlook has problems in that it often reads a PDF as a text file and does not encode it unless you force the encoding. When that happens the PDF gets corrupted.
    If that is not the problem, then it may simply be that the fonts are not in the PDF or present on the receiving systems, causing a messed up font substitution, particularly if something like the MAC PDF viewer is being used rather than Reader.
    I may still not understand the problem, but that is my best guess at this point.

  • Using pdf file images in Premiere???

    I have some botanical images which are in a pdf file. Will I be able to insert them into the timeline of Adobe Premiere Pro CS4?
    Thanking all respondents in advance...
    davidvee

    Though PDF's are listed supported formats, there are several flavors, such as Photoshop PDF's with PS editing capabilities, etc. You might, or might not, have good results.
    OTOH, you can Open most in PS and then just Save_As .PSD, which will Import beautifully into PrPro.
    It's the same with AI (Adobe Illustrator) files. Most will Import, but the best results will come from Placing, Opening, etc., those same AI files in PS and doing the Rasterization there, prior to PrPro.
    Good luck,
    Hunt

  • HowTO: convert Image- byte[] when don't know image format?

    I have byte[] field in my DB. Images have been stored there.
    Images can be jpg/gif/png.
    My task is to scale them and save back (to another field)
    I have such code:
    I know, that getScaledInstance is bad, but please, don't pay attention. This operation +(massive image resizing will be performed once a year at night)+
    public class ImageResizer {
         private static byte[] resizeImage(byte[] sourceImg, int newWidth){
              byte[] result = null;
              Image resizedImage = null;     //output image
              ImageIcon imageIcon = new ImageIcon(sourceImg);     //source image
              Image imageSource = imageIcon.getImage();
              int imageSourceWidth = imageSource.getWidth(null);
              int imageSourceHeight = imageSource.getHeight(null);
              if(imageSourceWidth > newWidth){
                   float scaleFactor =  newWidth/imageSourceWidth;
                   int newHeight = Math.round(imageSourceHeight*scaleFactor);
                 resizedImage = imageSource.getScaledInstance(newWidth, newHeight,Image.SCALE_SMOOTH);
                 Image temp = new ImageIcon(resizedImage).getImage();// This code ensures that all the pixels in the image are loaded.
                 // Create the buffered image.
                 BufferedImage bufferedImage = new BufferedImage(temp.getWidth(null), temp.getHeight(null),BufferedImage.TYPE_INT_RGB);
                 /**And what next?*/
              }else{
                   result = sourceImg;
              return result;
         public static byte[] scaleToSmall(byte[] sourceImg){
              return resizeImage(sourceImg, 42);
         public static byte[] scaleToBig(byte[] sourceImg){
              return resizeImage(sourceImg, 150);
         public static byte[] serializeObjectToBytearray(Object o) {
             byte[] array;
             try {
               ByteArrayOutputStream baos = new ByteArrayOutputStream();
               ObjectOutputStream oos = new ObjectOutputStream(baos);
               oos.writeObject(o);
               array = baos.toByteArray();
             catch (IOException ioe) {
               ioe.printStackTrace();
               return null;
             return array;
    }On this forum I've found many solutions, but approximately all of them suppose that I know file format (PixelGrabber, ImageIO, e.t.c). But I don't know it. I know, that it can be jpeg/gif/png.
    What can I do?
    I've found that simple serialization can help me (+public static byte[] serializeObjectToBytearray(Object o)+), but seems like it doesn't work.
    Edited by: Holod on 01.11.2008 10:18

    Here I came up with one possible solution using some more functionality of ImageIO.
    public class ImageResizer {
        private static byte[] resizeImage(byte[] sourceBytes, int newWidth) throws Exception {
            byte[] scaledBytes;
            // ImageIO works with Files or Streams, so convert byte[] to stream
            ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(sourceBytes);
            // Why not just use ImageIO.read(inputStream)? - Because there would be
            // no way to know the original image format (I am assuming here that
            // you need to write back the image in the same format as the original)
            ImageInputStream imageInputStream = ImageIO.createImageInputStream(byteArrayInputStream);
            // assuming there is at least one ImageReader able to read the image
            ImageReader imageReader = ImageIO.getImageReaders(imageInputStream).next();
            // save image format name so we can write it back in the same format
            String formatName = imageReader.getFormatName();
            imageReader.setInput(imageInputStream);
            BufferedImage sourceImage = imageReader.read(0);
            int imageSourceWidth = sourceImage.getWidth();
            int imageSourceHeight = sourceImage.getHeight();
            if (imageSourceWidth > newWidth) {
                // be careful with integer divisions ( 500 / 1000 = 0!)
                double scaleFactor = (double) newWidth / (double) imageSourceWidth;
                int newHeight = (int) Math.round(imageSourceHeight * scaleFactor);
                System.out.println("newWidth=" + newWidth + ", newHeight=" + newHeight + ", formatName=" + formatName);
                // getScaledInstance provides the best downscaling quality but is
                // orders of magnitude slower than the alternatives
                // since you're saying performance is not issue, I leave it as is
                Image scaledImage = sourceImage.getScaledInstance(newWidth, newHeight, Image.SCALE_SMOOTH);
                // Unfortunately we need a RenderedImage to use ImageIO.write.
                // So the next lines convert whatever type of Image was returned
                // by getScaledImage into a BufferedImage.
                // Using TYPE_INT_ARGB so potential alpha channels are preserved
                BufferedImage scaledBufferedImage = new BufferedImage(newWidth, newHeight, BufferedImage.TYPE_INT_ARGB);
                Graphics2D g2 = scaledBufferedImage.createGraphics();
                g2.drawImage(scaledImage, 0, 0, null);
                g2.dispose();
                // Now use ImageIO.write to encode the image back into a byte[],
                // using the same image format
                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                ImageIO.write(scaledBufferedImage, formatName, byteArrayOutputStream);
                scaledBytes = byteArrayOutputStream.toByteArray();
            } else {
                // if not scaling happened, just return the original byte[]
                scaledBytes = sourceBytes;
            return scaledBytes;
        public static void main(String[] args) throws Exception {
            // this is just for my own local testing
            // simulate byte[] input from database
            BufferedImage image = ImageIO.read(new File("input.jpg"));
            ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
            ImageIO.write(image, "PNG", byteArrayOutputStream);
            byte[] sourceBytes = byteArrayOutputStream.toByteArray();
            byte[] scaledBytes = resizeImage(sourceBytes, 640);
            // write out again to check result
            ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(scaledBytes);
            image = ImageIO.read(byteArrayInputStream);
            ImageIO.write(image, "PNG", new File("output.jpg"));
    }

  • Image formats that can be used directly in PDF

    Hi,
    after severel hours of searching google, discussion boards and the PDF reference, I could not find an answer, so hopefully you guys can help me .
    I have written my own little PDF exporter and want to include images. I figured out to include jpegs directly, with the DCTDecode filter.
    Are there other image formats, which can be included in PDF directly?
    I read somewhere, that GIFs - for example - has to be parsed to get the pixel data and than must be compressed again to be inserted in the PDF file. Therefore it would be easier for me to convert GIF to JPEG with an external program and then insert the JPEG into the PDF. Or is there an advantage, to include the GIF like described above?
    What about BMP, TIFF and other image formats?
    Is it possible to insert image files lossless into PDF?
    I know, lots of questions but i would be really glad if someone can help me .
    Thanks in advance,
    Regards, Maecky

    Hi,
    thanks for your answer.
    What exactly do you mean with "unwrap"? Should i just get the data without header of the image file and put it into the pdf stream? Otherwise i would have to decompress the format, or am I wrong?
    Thanks,
    kind regards, maecky

  • PDF image format?

    From what I understand, the PDF file format can contain text, vector graphics and raster graphics in many different formats. When I print to a PDF (via Save as PDF... in the print dialog box), what type of image format is actually used inside the PDF (which I assume is just a container format, really)?
    Say I come across a full quality RAW file from a 10-megapixel camera. If I open that image in an image editor and then print it as a PDF, what ends up in the PDF file? Is it a JPEG? A PNG? Some type of otherwise unknown lossless format?
    I assume the screenshot mechanism in OS X that saves to PDF uses similar technology. In that case, is a screenshot saved as a PDF better or worse quality than a PNG or JPEG (using a utility like TinkerTool to change the default screenshot format)?

    Actually, it doesn't matter what you set on a folio level. The article settings override the folio settings. The folio settings are supposed to appear as the default when you create articles, but it doesn't work that way at this time.

  • Convert PDF Page to Image format

    Is there any way to convert PDF page to Image formats (like JPG, GIF...)?
    I am looking in iTextSharp. If there are other options also, please let me know.

    There is a sample included with the Acrobat SDK that shows how to perform conversions of PDFs to other formats. There are also other options available to plug-ins such as PDPageDrawContentsToMemory() and then using an image library of your choice to save the bitmap data into various image formats.
    > I am looking in iTextSharp
    This is the Acrobat SDK forum - for questions regarding coding using the Acrobat SDK. Have you considered asking this in an iTextSharp forum if you are limiting yourself to that product?

  • Is there a website or PDF somewhere which discusses best practices for producing a children's picture book? I am mostly interested in requirements for good image format, resolution, etc.

    Is there a website or PDF somewhere which discusses best practices for producing a children's picture book? I am mostly interested in requirements for good image format, resolution, etc.

    There may be a few links in Apple Support, regarding articles about how to use iBooks Author
    and iBooks Store, etc; these would be separated into two general categories by device used.
    Since there is an iOS and an OS X version of each, you may have to look to see what Apple
    Support says about the one you are interested in; and how far their database goes toward an
    answer to your question. Otherwise, a general search engine approach may be necessary.
    Not sure if anything along the lines of what you seek would be available in an App.
    References to iBooks Author and iBooks Store, etc appear within these two categories in Support:
    For Mac OS X:
    http://www.apple.com/support/mac-apps/
    For iOS:
    http://www.apple.com/support/ios/
    Appears a community host moved your earlier post into one of the iBooks Author or Store sections
    after I'd replied to what otherwise may be a similar post. Not sure if the links to the Discussions area
    of iBooks you are interested in, have similar questions or answers by others who'd visited previously.
    Is there a website or PDF somewhere which discusses best practices for producing a children's picture book? I am mostly interested in requirements for good image format, resolution, etc.
    In my reply to your earlier thread, prior to it being moved, those links to sections of iBooks Author, etc
    are posted. You can also find them from the main Apple Support Communities page.
    Sorry to not be of much help in this matter.
    Good luck & happy computing!

  • Problem in creating client side PDF with image using flex and AlivePD

    I need a favor I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.
    Thanks in advance
    Atishay

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • Using the value "Image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of preconfigured file types (.jpe, .jpg, .jpeg, .?

    On a form, using the value "image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of pre-configured file types (.jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw)?
    Say I wanted to add .gif, .jfif or .ico. I find this array limited, how can I add types to image?
    <input type="file" name="file" accept="image/*" id="file" />
    mimeTypes.rdf does not seem to allow this.

    ''mimeTypes.rdf'' has nothing to do with web development. It's a file that stores your file handling preferences (e.g. if you want ZIP files automatically saved or opened).
    You can't change the file types of the pre-defined content specifiers (audio/*, video/*, image/*), but you can specify additional MIME types. To add PDF to your above example,
    <pre><nowiki><input type="file" name="file" accept="image/*,application/pdf" id="file" /></nowiki></pre>
    For details, see
    * [https://developer.mozilla.org/En/HTML/Element/Input developer.mozilla.org/En/HTML/Element/Input]

  • Mapviewer performance problem using image format FORMAT_RAW_COMPRESSED

    I am using the MapViewer.FORMAT_RAW_COMPRESSED map image in my (java) map application because some features must be clickable and as far as I can work out, this is the only way to achieve this in a Java client. On my local system, running the map server in an oc4j container, this works about as fast as using FORMAT_GIF_URL and loading the image from this url. There also doesn't seem to be much difference in memory and cpu usage.
    When I direct the request to a map server running on a remote Application Server the rendering time grows exponentially. The same maprequest using FORMAT_GIF_URL runs as fast as it does in my local OC4J container. The problem seems to be in "packing time" in RealWorker:
    Remote AS:
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 99ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 5560ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 142605ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 148264ms
    Local OC4J:
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 540ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 2490ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 120ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 3150
    The test server is smaller than my local system and more applications are running on the AS, generating the map takes all the available memory and cpu, but the difference between the time it takes generating a GIF image and generating a Java image of almost a factor 50 is puzzling.
    What could cause this enormous difference? Any idea's about how we can analyze or solve this? What could RealWorker be doing in this packing time? Any hints would be greatly appreciated.
    Many thanks,
    Ida

    Thanks for the replies!
    1. Which AS version are you using? -> 10.1.2
    2. Just as a test, if you restart AS (if possible) do you still get the same values? -> yes, we restarted the AS and the results are the same.
    The server is indeed running low in memory. It is a 512MB machine, just big enough to run the AS. The production server will have some more, but not very much. Could I estimate how much extra memory it will need to keep a good performance when generating maps with live features? And maybe I'm wrong, but shouldn't the extra load for the java image only be on the client, since that's where the image is made? On the server it's just the image data, isn't it?
    I tried removing the basemap, but that reduces the loading time just with a few seconds. The live themes are jdbc themes and result in only some 20 to 30 geofeatures. Removing them from the request so only an empty image with a title is retrieved still takes about 117 seconds. Reducing the device size does reduce the loading time, so it does seem to have something to do with the amount of pixels in the image space, not with the data. Could it be that in the "packing" of the image something happens that takes a lot of memory, related to the amount of pixels?
    In my situation it would be handy if the live features were also returned when the image format is not set to FORMAT_RAW_COMPRESSED, it is also possible to draw shapes onto an existing image and this would bypass the memory problems.
    Thanks for any further help.
    Ida

  • Corrupt image formatting when creating pdf from embedded visio image in MS word

    Hello, Using Adobe Acrobat 9 standard and trying to create a PDF file from an MS word (version 2003) document.  PDF file created is fine except for an image (embedded visio diagram imported into word).  When created in PDF, the image is missing many of the diagram labels, and other text boxes are in the wrong font and wrong location.  I don't know if it's my Adobe Acrobat or MS Word settings that need to be updated.
    thanks, NB

    Dear fellows,
    the problem is still present.  My system:Windows 7 32-Bit Prof, MS Office 2010 Prof, Acrobat X Pro 10.1.1, Vision 2010 Prof, all updates installed.
    Problem #1: Even the latest Acrobat X 10.1.1 version causes Visio 2010 to start with error messages, origin: the Acrobat Add-In.  Therefore I de-activated the Acrobat Add-In, again, as in the past.
    As I design grafics with Visio 2010, I mark them in the active Visio window, copy the marked parts and then insert them into my Word-Document.  So far, so good and as I want it.
    The (still present) problem: I can produce a PDF file using the "save as Adobe PDF", but the Visio drawing is incomplete and corrupt.  E.g. arrows as line endings have disappeared.
    PS: But using Adobes PDF printer sets the embedded Visio drawing correctly!  But using the printer one looses some features of the "save as Adobe PDF" command.
    Well, probably one day ...
    Regards,
    Rückenlehne.

  • Using IMAQReadFile with .jpg format of file is producing an "incompatible image size" error ?

    The .jpg monochrome images are of slightly different sizes. Is there a way round this or should i use a different file format ?
    Attachments:
    Read_multiple_IMAQ_Image_and_other_data_from_file_and_loop_through.vi ‏88 KB

    I trimmed down your code a bit, but I don't see any problems with using various sized images. I ran your code first with no changes except removing the text file IO and changing the paths and saw no problems. I am using LV 6.1 with Vision 6.1. Take a look at the code below and see if it works for you.
    Regards,
    Brent R.
    Applications Engineer
    National Instruments
    Attachments:
    fileread.zip ‏309 KB

  • What raw raster image format in pdf ?

    hello,
    I understood  from "image xobject in pdf" question from bokhandbok that  an xobject image can be either a jpeg  or a raw raster  format.
    But to me,  raw is not a standardized format like DNG or tiff/ep are.
    so, where can i find a description of the raw raster image format of the pdf ?
    is it related to any existing norms like iso 12234-2, dng, etc.
    if not, where can i find a description of this format ?
    thanks a lot,
    denis

    No, an image expects raw bitmap data in the format defined by the PDF Reference.
    However, an image is stored as a stream, and a stream can have a filter applied. There are many possible filters and one is DCTDecode, which roughly corresponds to a "JPEG file".
    So, an image with JPEG file data and the DCTDecode filter can work.
    "Raw" is a convenient way to talk about "uncompressed image data" but you are right that it is not a standard. Fortunately, PDF is well standardised and precisely described in ISO 32000-1.

  • Will TREX/KM search for content on PDF files in Searchable image formats?

    Good Day,
    We are implementing KM/Trex for an SAP E-sourcing installation and I'm wondering if TREX is able to search PDF contents in the Searchable image format?
    Essentially, we scan a document which creates an image and then run Abobe Acrobats OCR on the document to create searchable text.
    Thanks in Advance,
    Kyle

    Hi Kyle,
    TREX is not able to index a scanned document even this is pdf.
    BUT if afterwards a OCR is running and this OCR text will be stored as hidden text in the pdf than TREX is able to search in this pdf.
    Best regards
    Frank

Maybe you are looking for

  • Pages App on Mac won't open documents created on iPad

    My pages app on my mac wouldn't open documents created on my iPad, it said that I needed to down load the newest version which I belive I had.  So I put it in the trash hoping I could re install but now I can't open it at all :-(

  • Stand alone installer for Yosemite

    Is there a stand alone installer for Yosemite?  I have extremely slow internet access and the download fails repeatedly from Software Update. I would like to download at work and bring to my computer as taking my computer to work is not an option. Th

  • SQL performance difference in application an in SQL Server

    We are using Visual Studio 2010 and SQL Server 2012. We insert into the database using the stored procedure InsertData. When I timed in the program how long it takes to execute stored procedure InsertData, it takes more than 10 ms per insert. But, ou

  • Somer real time questions

    hi experts, 1. how to call 2 transactions in same BDC program at a time, like 'mk01' and 'va01'. 2. what is the transaction to create barcode. 3. how to debug a smartform. 4. in which table session are stored. ALSO CAN ANY ONE SEND ME SOME REAL TIME

  • How to expand the view of my flash in browser?

    Hi, can anyone tell me how to do this? I embeded a flash with size 100px X 100 px into a html. The background image in the flash is bigger than 100 px. How can I display whole of the background image in the browser without expand the size in flash? P