How to edit a PDF in Photoshop CS4

Hi there,
I'm having some real trouble trying to figure out how to edit a PDF in photoshop cs4. So i need to edit/change text, move things around, that type of thing.
I work in Windows.
Could someone give me a bit a low down on how this is done?
Much appreciated,
Victoria

You can open them but you will totally rasterize everything.
PDFs are not intended to be edited. They are a final format but as
mentioned you can use Acrobat for some minor text edits or use it to
extract the images to Photoshop for further editing.
Bob

Similar Messages

  • How to Edit Flash Symbol in Photoshop?

    In Flash CS4, I have a graphic of a long filmstrip with 24 pix in it. I need to edit the symbol in photoshop (to put all new pix in), and then replace the current filmstrip with the new filmstrip. How? This is CS4, not CS5.

    Add an image to a folder with your fla, image folder(with image inside) and then re import image to stage again then try 'EDIT' the file!
    Date: Sat, 24 Sep 2011 13:31:35 -0600
    From: [email protected]
    To: [email protected]
    Subject: How to Edit Flash Symbol in Photoshop?
        Re: How to Edit Flash Symbol in Photoshop?
        created by sneedbreedley in Flash Pro - General - View the full discussion
    Whe nI double click on the image, a Bitmap Properties window opens with no option to edit. When I right-clcik on the image and select Edit With and choose photoshop, an error message appears saying The file G:\web-02\Site\film120902.gif does not exist, uable to launch external editor.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3936238#3936238
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3936238#3936238. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Flash Pro - General by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Hi I need help ..I do not know how to edit a pdf file that I scanned in,

    Hi I need help ..I do not know how to edit a pdf file that I scanned in, will someone please tell me what I should do PLEASE HELP

    What program are you using?  If it is just Adobe Reader you can not edit.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • I need to know how to edit a PDF document?

    I need to know how to edit a PDF document?

    Preview has limited PDF editing capability.  You can get a lot more on:
    http://www.pdfescape.com/
    or with Wondershare's PDF Editor.
    Adobe Acrobat Pro is the most expensive solution.
    Since you posted under iMac PPC forum, which is for iMacs that can't run any operating system newer than August 28, 2009, I can't say specifically what the capabilities of your version of Preview are.  Go to Apple menu -> About This Mac.  If you have an Intel, you do not have a PPC.  If you have a G5, G4 or G3, you posted to the right forum, and just need to find the version of Preview you have in Applications folder.

  • How to Edit or PDF Multiple Page Tiles in CS2 doc while working in CS4?

    I have to resave this file as CS2, so I need to be able to edit and PDF original Page Tiles from CS2, not convert to Artboards. There is no Edit Page tiles, only View Page Tiles. When I go to save as PDF, there is no "multiple pages" option under General as stated elsewhere, and it PDF's as one huge "artboard" even though there are multiple page "tiles". Thanks in advance!

    If you want to save an editable Illustrator file for CS2 then you save as .ai not as .pdf.
    You can still Show Print Tiling in the View menu. Use the Print dialogue to set up the paper size, orientation, and tiling options, then click Done.

  • How To Edit a .pdf file - Please Help!

    When I Googled the above question, I was told to download the Adobe Acrobat XI.
    I tried downloading the trial version. I was then told to download the Creative Cloud to  be able to download Acrobat XI.
    I downloaded Creative Cloud, then I was taken to the Adobe Applications Manager Page which show a bunch of apps to download.
    I don't  know which app I will need for the editing.  I was looking for Acrobat XI, but it's not showing anywhere.
    I tried downloading Photoshop. This took more than 2 hours. After the download was complete, I tried launching it, but nothing happened.
    I went back & double-checked the instructions, & I'm directed & got stumped at the Applications Manager page once more.
    I find this very frustrating. I wish it were not this complicated.
    I just want to edit a .pdf file, and nothing else. I'm not sure if I want to go through all these maze, or just use FIVVER, pay $5.00 & AVOID all these hassles.@nikoledeon.
    PLEASE HELP!

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.5 (win), 5.5 (mac) | 5.4 (win), 5.4 (mac) | 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Creating a .pdf in photoshop cs4 different than earlier versions

    Hi. In PS CS4.
    I am trying to make a .pdf to send to a printer. I do not know if the printer as CS4. Eventually I will ask, but..
    I made a pdf in Photoshop, basically using the High Quality print settings.
    Normally, when I open a pdf in Photoshop that was made in Photoshop I am able to see the layers, adjustment layers..etc..
    I tried opening this .pdf in Photoshop 7.0 & it had asked me to rasterize it with that dialog screen, although I did have Preserve Photoshop Editing Capabilities checked. I am not sure why it did that.
    What do you do for people that have earlier versions?
    Thank you.

    not much you can do about it, the Preserve Photoshop Editing Capabilities only works when opening it in Photoshop CS2 or newer

  • How to edit a PDF document in Netweaver Development Studio?

    Dear Experts,
    I am trying to edit a PDF file in the Netweaver Developer Studio.
    Can anybody tell me how can I import and edit it in the Netweaver Developer Studio?
    I am trying to do some editing.Eg. adding action buttons, adding input fields etc to the PDF file.
    If somebody has previously done such things or have some idea, I would like to hear from your experiences.
    Many thanks
    Rgds,
    Sudeep

    Hi Satya,
    Thank you for the immediate response.
      Now I can import the pdf files and edit them.
    However there is a problem.
    I can only open the pdf files which I created by the developer studio.
    When I open the pdf files those created by a scanner, they appear blank. However, when I open the same files with acrobat reader, the contects in the file appear.
    I will be very thankful if you could help me in this.
    Many thanks
    sudeep

  • How to edit a pdf file?

    I downloaded the free Adobe and i want to edit a pdf file and it wont allow me. asking me to subscribe.

    You want to go to the source program you first edited and authored the file in and create a fresh new PDF from that file. You should always save a current copy of the program file which you authored the PDF file in. Acrobat is not really intended for creating content as such. You can do quick edits in Acrobat by setting up the Touch-up preferences, Preferences>General>Touch up, These should point to the programs you use to edit PDF content, in my case the Object editor is Illustrator and Image editor is Photoshop. Now if you select the touch up object tool and the click on the object(s) you want to edit selecting them, then right click to get the contextual menu and select, Edit Object, Acrobat will create a temp file and open it in the program which you selected in preferences. Do the edit and close the temp file, Acrobat uses the temp file to update the open Acrobat PDF file you were working on.
    Hope this helps

  • How to edit existing pdf's from RoboHelp 8

    Hi,
    Our company had been using an old version of RH5 for many years, and we've recently upgraded to RH8 to manage our company Infocenter (knowledge repository). We have many pdf files within this repository.
    Before upgrading to RH8, we would edit pdf files using Adobe Writer very easily. However, after upgrading to RH8 and installing it on a brand new computer, our attempts to install Adobe Writer failed with a message saying there is a more functional product already installed on the workstation. No other Adobe products apart from RH8 are currently installed.
    I think this means that RH8 can edit pdf files with no additional software, can anyone confirm? And if so, how do we go about doing it? (For now I only need to know how to edit pdf's, not create them.)
    Thanks, and my apologies in advance if this was covered in another thread, but I couldn't find any information.
    T.

    I suspect that Acrobat Writer is seeing the PDF writer that you installed with RoboHelp as being the later version.
    I don't use that as I have the full version of Acrobat so I cannot check but I don't believe you can use the lighter version that comes with RoboHelp to edit PDFs.
    Thus you can write PDFs with what you have but I suspect you cannot directly edit. You would need Acrobat Pro for that and buying the Technical Communication Suite would have been a better option.
    Do you have the source files that created those PDFs? If so you can edit those and use the PDF writer that shipped with RH8 to create new PDFs.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Editing iPhoto photos in Photoshop CS4 and saving a copy

    I'm relatively new to Mac and am trying to figure out my workflow. I like a lot of the features of iPhoto, but I'm struggling with something critical.
    Typically, when I edit a jpeg in photoshop, i like to save the modified version as a copy either with a -01 suffix or I create another folder in the file's original folder named 'Revised' or something like that and save the copies in there. I don't see how I can get the iPhoto event to update to include the added file. It seems clear that it definitely won't add the folder.
    I've noticed that Lightroom does the same thing. Once a folder is imported, it doesn't seem to go back and check to see if changes were made in an external program.
    Perhaps it's possible to force an update, but that doesn't really solve it either, unless I'm willing to go in and update the folder/event after every edit I make is PS.
    Anyone know if I'm missing something or have a recommendation on how to work more effectively?
    Thanks!

    If you're not editing RAW file then the following may be of some help to you:
    Using Photoshop (or Photoshop Elements) as Your Editor of Choice in iPhoto.
    1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements 6 the Saving File preferences should be configured: "On First Save: Save Over Current File". Also I suggest the Maximize PSD File Compatabilty be set to Always.
    If you want to use both iPhoto's editing mode and PS without having to go back and forth to the Preference pane, once you've selected PS as your editor of choice, reset the Preferences back to "Open in main window". That will let you either edit in iPhoto (double click on the thumbnail) or in PS (Control-click on the thumbnail and seledt "Edit in external editor" in the Contextual menu). This way you get the best of both worlds
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..

  • Incorrectly coloured text when saving to .PDF using Photoshop CS4

    I am using Photoshop CS4 on Windows 7, and have designed my own business card.
    When saving to .PDF to send to printers I am finding that a small section of text is saving with a white section to it, for example out of the 3 lines of text on the card the bottom left hand corner of the & sign I have in the design is coming out white, the rest of the text is a golden colour.
    I have tried searching on this forum and on google but can't seem to find anyone with my actual problem so unsure where to go.
    Any help much appreciated.
    Thanks

    Mylenium wrote:
    Well, you could change the native text color instead of using layer styles, could you not?
    Mylenium
    Or make the Type and Hyphen layers into a single Smart Object and clip a yellow layer to it.

  • How to edit a pdf such that it is still searchable?

    Hi,
    I want to edit some words in a pdf file and want to make sure the pdf is still searchable.
    I changed the following
    -234.719 -10.8 Td
    [(A)-0.700044(t)10.3332(t)10.3332(i)10.3332(a)-11.0341(s)-12.4995(,)-392.394(H)-0.699227(. )-392.394(1)-8.56716(9)-8.56716(9)-8.56716(9)-8.56716(.)-365.634(I)11.8003(n)-8.56716(f)11 .8003(e)-11.0341(r)11.8003(r)11.8003(i)10.3332(n)-8.56716(g)-410.061(p)-8.56716(a)-11.0341 (r)11.8003(a)-11.0341(m)1.76604(e)-11.0341(t)10.3332(e)-11.0341(r)11.8003(s)-387.228(a)-11 .0341(n)-8.56716(d)-383.301(s)-12.5011(t)10.3348(r)11.7986(u)-8.56716(c)-11.0341(t)10.3348 (u)-8.56716(r)11.7986(e)-385.761(o)-8.56716(f)-389.695(u)-8.56716(n)-8.56716(o)-8.56716(b) ]TJ
    222 0 Td
    [(s)-12.5011(e)-11.0341(r)11.7986(v)18.206(e)-11.0341(d)-356.534(v)18.1995(a)-11.0341(r)11 .7986(i)10.3348(a)-11.0341(b)-8.56716(l)10.3348(e)-385.761(m)1.76767(o)-8.56716(d)-8.56716 (e)-11.0341(l)10.3348(s)-387.228(b)-8.56716(y)-383.301(v)18.1995(a)-11.0341(r)11.7986(i)10 .3348(a)-11.0341(t)10.3348(i)10.3348(o)-8.56716(n)-8.56716(a)-11.0341(l)-364.392(B)-2.1663 (a)-11.0341(y)-8.56716(e)-11.0341(s)-12.5011(,)-365.624(2)-8.56716(1)-8.56716(?)-8.56716(3 )-8.56716(0)-8.56716(.)-338.864(I)11.8019(n)-8.56716(:)10.3316]TJ
    -214.8 -10.8 Td
    to
    -234.719 -10.8 Td
    [(A)-0.700044(t)10.3332(t)10.3332(i)10.3332(a)-11.0341(s)-12.4995(,)-392.394(H)-0.699227(. )-392.394(1)-8.56716(9)-8.56716(9)-8.56716(9)-8.56716(.)-365.634(I)11.8003(n)-8.56716(f)11 .8003(e)-11.0341(r)11.8003(r)11.8003(i)10.3332(n)-8.56716(g)-410.061(p)-8.56716(a)-11.0341 (r)11.8003(a)-11.0341(m)1.76604(e)-11.0341(t)10.3332(e)-11.0341(r)11.8003(s)-387.228(a)-11 .0341(n)-8.56716(d)-383.301(s)-12.5011(t)10.3348(r)11.7986(u)-8.56716(c)-11.0341(t)10.3348 (u)-8.56716(r)11.7986(e)-385.761(o)-8.56716(f)-389.695(l)-8.56716(a)-8.56716(t)-8.56716(e) -12.5011(n)-12.5011(t)]TJ
    222 0 Td
    [-11.0341( )11.7986( )18.206( )-11.0341( )-356.534(v)18.1995(a)-11.0341(r)11.7986(i)10.3348(a)-11.0341(b)-8.56716(l)10.3348(e)-385 .761(m)1.76767(o)-8.56716(d)-8.56716(e)-11.0341(l)10.3348(s)-387.228(b)-8.56716(y)-383.301 (v)18.1995(a)-11.0341(r)11.7986(i)10.3348(a)-11.0341(t)10.3348(i)10.3348(o)-8.56716(n)-8.5 6716(a)-11.0341(l)-364.392(B)-2.1663(a)-11.0341(y)-8.56716(e)-11.0341(s)-12.5011(,)-365.62 4(2)-8.56716(1)-8.56716(?)-8.56716(3)-8.56716(0)-8.56716(.)-338.864(I)11.8019(n)-8.56716(: )10.3316]TJ
    -214.8 -10.8 Td
    But the word 'latent' is not searchable although the word 'unobserved' is searchable in acrobat. Does anybody what should be the correct way to edit a pdf file.
    What does the Td, Tj and the numbers, such as 10.3348, mean? Why a word are separated into many letters enclosed by ()?

    I know that pdf is usually compressed and pdftk can help decompress it. That is why I get the text format of the pdf code segments that I showed.
    The ISO 32000-1 document is too thick for me to digest. I know that if I should be able to find all the information that need from ISO 32000-1. But I'm wondering whether there is more concised document for my particular question.
    Also, I try to use Acrobat (TouchUP Text tool) to edit the pdf, but it always says "All or part of the selection has no available system font. You cannot add or delete text using the currently selected font." I find the following solution. But it doesn't really help, because I can not delete text if there is no system availabe font for the text that I'm going to delete.
    http://kb2.adobe.com/cps/330/330971.html

  • How to edit a pdf in acrobat pro

    Hello
    I have just subscribed to Acrobat Pro, and am unable to edit a PDF.
    Help please...

    Thanks for your help - I hadn't properly downloaded Acrobat.
    All sorted now - thanks again

  • How to Edit Existing  PDF

    Hi... i am try to edit existing pdf in itext any one can help me this sending code.......

    Using Itext i want to remove some content in the PDF
    This is my code i want to Edit or Remove some text in the Pdf
    package view;
    //import com.itextpdf.text.BaseColor;
    //import com.itextpdf.text.DocumentException;
    //import com.itextpdf.text.pdf.PdfContentByte;
    //import com.itextpdf.text.pdf.PdfCopyFields;
    //import com.itextpdf.text.pdf.PdfStamper;
    import com.lowagie.text.Document;
    import com.lowagie.text.DocumentException;
    import com.lowagie.text.pdf.PdfContentByte;
    import com.lowagie.text.pdf.PdfCopy;
    import com.lowagie.text.pdf.PdfCopyFields;
    import com.lowagie.text.pdf.PdfDictionary;
    import com.lowagie.text.pdf.PdfImportedPage;
    import com.lowagie.text.pdf.PdfName;
    import com.lowagie.text.pdf.PdfNumber;
    import com.lowagie.text.pdf.PdfReader;
    import com.lowagie.text.pdf.PdfStamper;
    import java.awt.Color;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    public class SplitingFlat {
        public static void main(String[] args) {
            String fileName =
                "D://OMR//OMRpdf//FlatFlies//EligibilityLists_Flat.pdf";
            splitPDFFile(fileName);
            rotateFlatPDF();
            markPdf();
            mergeFlatPdf();
        public static List splitPDFFile(String fileName) {
            List list = new ArrayList();
            int startPageNo[] =
            { 1, 29, 47, 67, 85, 133, 179, 197, 225, 243, 277, 295, 319, 337, 365,
              393, 419, 439, 471, 491, 513 };
            int endPageNo[] =
            { 28, 46, 66, 84, 132, 178, 196, 224, 242, 276, 294, 318, 336, 364,
              392, 418, 438, 470, 490, 512, 532 };
            try { /**
                     * Read the input PDF file
                PdfReader reader = new PdfReader(fileName);
                int totalPages = reader.getNumberOfPages();
                int split = 0;
                for (int i = 0; i < endPageNo.length; i++) {
                    for (int pageNum = 1; pageNum <= totalPages;
                         pageNum += endPageNo[i]) {
                        if (pageNum == 1) {
                            pageNum = startPageNo[i];
                        split++;
                        String outFile =
                            "D://OMR//OMRpdf//flat//split//Flat-split-" + split +
                            ".pdf";
                        Document document =
                            new Document(reader.getPageSizeWithRotation(1));
                        PdfCopy writer =
                            new PdfCopy(document, new FileOutputStream(outFile));
                        document.open();
                        int tempPageCount = 0;
                        int number = endPageNo[i] - pageNum;
                        for (int offset = 0;
                             offset < number && (pageNum + offset) <= totalPages;
                             offset++) {
                            PdfImportedPage page =
                                writer.getImportedPage(reader, pageNum + offset);
                            writer.addPage(page);
                            tempPageCount++;
                        document.close();
                        writer.close();
                        list.add(outFile);
                        break;
            } catch (Exception e) {
                e.printStackTrace();
            return list;
        private static void rotateFlatPDF() {
            String pdfFolderPath = "D:\\OMR\\OMRpdf\\flat\\split\\";
            int split = 1;
            File pdfFolder = new File(pdfFolderPath);
            if (pdfFolder != null && pdfFolder.isDirectory()) {
                String[] pdfFileNames = pdfFolder.list();
                if (pdfFileNames != null && pdfFileNames.length > 0) {
                    int documentNumber = 0;
                    for (String pdfFileName : pdfFileNames) {
                        File pdfFile =
                            new File(pdfFolderPath + File.separator + pdfFileName);
                        if (pdfFile.isFile()) {
                            documentNumber++;
                            PdfReader pdfReader;
                            String opFile =
                                "D:\\OMR\\OMRpdf\\flat\\rotate\\" + "DocumentSplitRotate-" +
                                split + ".pdf";
                            try {
                                pdfReader =
                                        new PdfReader(pdfFolderPath + File.separator +
                                                      pdfFileName);
                                int n = pdfReader.getNumberOfPages();
                                int rot;
                                PdfDictionary pageDict;
                                for (int i = 1; i <= n; i++) {
                                    rot = pdfReader.getPageRotation(i);
                                    pageDict = pdfReader.getPageN(i);
                                    pageDict.put(PdfName.ROTATE,
                                                 new PdfNumber(rot - 90));
                                PdfStamper stamper =
                                    new PdfStamper(pdfReader, new FileOutputStream(opFile));
                                stamper.close();
                                pdfReader.close();
                                split++;
                            } catch (IOException e) {
                            } catch (DocumentException e) {
        public static void markPdf() {
            try {
                //Flat
                String pdfFolderPath = "D:\\OMR\\OMRpdf\\flat\\rotate";
                File pdfFolder = new File(pdfFolderPath);
                if (pdfFolder != null && pdfFolder.isDirectory()) {
                    String[] pdfFileNames = pdfFolder.list();
                    if (pdfFileNames != null && pdfFileNames.length > 0) {
                        int documentNumber = 0;
                        for (String pdfFileName : pdfFileNames) {
                            File pdfFile =
                                new File(pdfFolderPath + File.separator +
                                         pdfFileName);
                            if (pdfFile.isFile()) {
                                documentNumber++;
                                PdfReader pdfReader =
                                    new PdfReader(pdfFolderPath + File.separator +
                                                  pdfFileName);
                                int pageCount = pdfReader.getNumberOfPages();
                                    String outputFileName =
        "D:\\OMR\\OMRpdf\\flat\\mark\\" +File.separator +pdfFileName.substring(0, pdfFileName.lastIndexOf(".pdf")) +
                                "_OMR_Marked.pdf";
                                FileOutputStream fileOutputStream =
                                new FileOutputStream(outputFileName);
                                PdfStamper pdfStamper =
                                new PdfStamper(pdfReader,
                                               fileOutputStream);
                                for (int i = 1; i <= pageCount; i++) {
                                PdfContentByte cb =
                                    pdfStamper.getOverContent(i);
                                cb.beginText();
                                cb.setColorStroke(Color.RED);
                                if (OMRMarkingUtilityFlatfold.isFlatZone1MarkingEnabled(documentNumber,
                                                                                i))
                                    OMRMarkingUtilityFlatfold.drawFlatOMRMark(cb,
                                                                      1, i,
                                                                      pageCount);
                                if (OMRMarkingUtilityFlatfold.isFlatZone2MarkingEnabled(documentNumber,
                                                                                i)) {
                                    PdfContentByte cb2 =
                                        pdfStamper.getOverContent(pageCount);
                                    OMRMarkingUtilityFlatfold.drawFlatOMRMark(cb2,
                                                                      2, i,
                                                                      pageCount);
                                if (OMRMarkingUtilityFlatfold.isFlatZone3MarkingEnabled(documentNumber,
                                                                                i)) {
                                    PdfContentByte cb3 =
                                        pdfStamper.getOverContent(1);
                                    OMRMarkingUtilityFlatfold.drawFlatOMRMark(cb3,
                                                                      3, i,
                                                                      pageCount);
                                if (OMRMarkingUtilityFlatfold.isFlatZone4MarkingEnabled(documentNumber,
                                                                                i))
                                    cb.endText();
                                pdfStamper.close();
                                fileOutputStream.close();
            catch (IOException ioe) {
                ioe.printStackTrace();
            } catch (DocumentException de) {
                de.printStackTrace();
        private static void mergeFlatPdf() {
            try {
                PdfCopyFields copy =
                    new PdfCopyFields(new FileOutputStream("D:\\OMR\\OMRpdf\\flat\\merge\\output1.pdf"));
                String pdfFolderPath = "D:\\OMR\\OMRpdf\\flat\\mark\\";
                File pdfFolder = new File(pdfFolderPath);
                if (pdfFolder != null && pdfFolder.isDirectory()) {
                    String[] pdfFileNames = pdfFolder.list();
                    if (pdfFileNames != null && pdfFileNames.length > 0) {
                        for (String pdfFileName : pdfFileNames) {
                            copy.addDocument(new PdfReader(pdfFolderPath +
                                                           pdfFileName));
                copy.close();
            } catch (IOException e) {
            } catch (DocumentException e) {
    package view;
    import com.lowagie.text.pdf.PdfContentByte;
    import org.apache.log4j.Logger;
    public class OMRMarkingUtilityFlatfold {
        private static final Logger logger =
            Logger.getLogger(OMRMarkingUtilityFlatfold.class);
        //public static final int Flat_Zone_X_Position     = 14;    // 0.1875 inches
        public static final int Flat_OMR_Mark_Thickness = 1; // 0.01   inches
        public static final int Flat_OMR_Mark_Length = 29; // 0.3    inches
        public OMRMarkingUtilityFlatfold() {
            super();
        public static boolean isFlatZone1MarkingEnabled(int documentNumber,
                                                        int pageNumber) {
            boolean flatZone1 = true;
            //        if (pageNumber % 2 != 0)
            //            trifoldZone4 = true;
            return flatZone1;
        public static boolean isFlatZone2MarkingEnabled(int documentNumber,
                                                        int pageNumber) {
            boolean flatZone2 = true;
            //        if (pageNumber % 2 != 0)
            //            trifoldZone4 = true;
            return flatZone2;
        public static boolean isFlatZone3MarkingEnabled(int documentNumber,
                                                        int pageNumber) {
            boolean flatZone3 = true;
            //        if (pageNumber % 2 != 0)
            //            trifoldZone4 = true;
            return flatZone3;
        public static boolean isFlatZone4MarkingEnabled(int documentNumber,
                                                        int pageNumber) {
            boolean flatZone4 = true;
            //        if (pageNumber % 2 != 0)
            //            trifoldZone4 = true;
            return flatZone4;
        public static int getFlat_Zone_X_Position() {
            return getFlat_Zone_X_Position();
        public static int getFlat_Zone3YPosition() {
            return getFlat_Zone3YPosition();
        public static int getFlat_Zone4YPosition() {
            return getFlat_Zone4YPosition();
        public static void drawFlatOMRMark(PdfContentByte cb, int zone,
                                           int pageNumber, int pageCount) {
            float x;
            float y;
            System.out.println(pageNumber);
            if (pageNumber == 1) {
                x = 14;
            } else {
                x = 7;
            switch (zone) {
            case 1:
                if (pageNumber == 1)
                    y = 689;
                else {
                    y = 688;
                break;
            case 2:
                y = 679;
                break;
            case 3:
                x = 14;
                y = 670;
                break;
            case 4:
                if (pageNumber == 1)
                    y = 661;
                else {
                    y = 660;
                break;
            default:
                y = 0;
                break;
            cb.moveTo(x, y);
            cb.lineTo(x + Flat_OMR_Mark_Length, y);
            cb.stroke();

Maybe you are looking for