Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Feature Forums
  3. - Uncategorised posts -
  4. hi i am trying to compare two pdf files using java but not able to get the result file can any one help

hi i am trying to compare two pdf files using java but not able to get the result file can any one help

Scheduled Pinned Locked Moved - Uncategorised posts -
javahelp
11 Posts 5 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U User 13906183

    Hi I am trying to compare two PDF files using pdfutil in Java. I was able to compare the document using boolean approch and get the value but when using visual approch I am not able to get the result file which is set in the (setImagedestinationpath) there is no errors

    PDFUtil pdfUtil = new PDFUtil();
    String file1="c:/files/doc1.pdf";
    String file2="c:/files/doc2.pdf";

    // compares the pdf documents and returns a boolean
    // true if both files have same content. false otherwise.
    // Default is CompareMode.TEXT_MODE
    pdfUtil.setCompareMode(CompareMode.VISUAL_MODE);

    pdfUtil.highlightPdfDifference(true);
    pdfUtil.setImageDestinationPath("c:/imgpath");
    pdfUtil.compare(file1, file2);

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #2

    Don't use the root of C: to create or store files, use your Documents folder.

    U 1 Reply Last reply
    0
    • L Lost User

      Don't use the root of C: to create or store files, use your Documents folder.

      U Offline
      U Offline
      User 13906183
      wrote on last edited by
      #3

      i tried that as well but not working

      L D 2 Replies Last reply
      0
      • U User 13906183

        i tried that as well but not working

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #4

        Member 13938502 wrote:

        but not working

        I have no idea what that is supposed to mean. Please edit your question and provide proper details of your problem, including the exact text of any error messages.

        U 1 Reply Last reply
        0
        • L Lost User

          Member 13938502 wrote:

          but not working

          I have no idea what that is supposed to mean. Please edit your question and provide proper details of your problem, including the exact text of any error messages.

          U Offline
          U Offline
          User 13906183
          wrote on last edited by
          #5

          Hi I am trying to compare two PDF files using pdfutil in Java. I was able to compare the document using boolean approch and get the value but when using visual approch I am not able to get the result file which is set in the (setImagedestinationpath) there is no errors

          L 1 Reply Last reply
          0
          • U User 13906183

            Hi I am trying to compare two PDF files using pdfutil in Java. I was able to compare the document using boolean approch and get the value but when using visual approch I am not able to get the result file which is set in the (setImagedestinationpath) there is no errors

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #6

            See Introducing PDFUtil - Compare two PDF files textually or Visually | Vinsguru[^]

            J 1 Reply Last reply
            0
            • L Lost User

              See Introducing PDFUtil - Compare two PDF files textually or Visually | Vinsguru[^]

              J Offline
              J Offline
              jeffG2021
              wrote on last edited by
              #7

              Hey, I am new to the development world, I have also tried to compare two pdf files in my coding but not get the proper results. I am confused about the situation and came here for the solution. Please help me if there any solution. Thank you

              L 1 Reply Last reply
              0
              • J jeffG2021

                Hey, I am new to the development world, I have also tried to compare two pdf files in my coding but not get the proper results. I am confused about the situation and came here for the solution. Please help me if there any solution. Thank you

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #8

                jeffG2021 wrote:

                I have also tried to compare two pdf files in my coding but not get the proper results.

                Sorry, but no one can possibly help you without proper details of your problem. Saying things like, "it doesn't work", "I get errors", "I don't get the correct results", etc., is about as useful as telling us that it is dark where you live.

                Richard DeemingR 1 Reply Last reply
                0
                • L Lost User

                  jeffG2021 wrote:

                  I have also tried to compare two pdf files in my coding but not get the proper results.

                  Sorry, but no one can possibly help you without proper details of your problem. Saying things like, "it doesn't work", "I get errors", "I don't get the correct results", etc., is about as useful as telling us that it is dark where you live.

                  Richard DeemingR Offline
                  Richard DeemingR Offline
                  Richard Deeming
                  wrote on last edited by
                  #9

                  He's a spammer: Spammer from moderation queue (jeffG2021)[^]


                  "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                  "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                  L 1 Reply Last reply
                  0
                  • Richard DeemingR Richard Deeming

                    He's a spammer: Spammer from moderation queue (jeffG2021)[^]


                    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #10

                    Unfortunately I answered the question before going to S&A.

                    1 Reply Last reply
                    0
                    • U User 13906183

                      i tried that as well but not working

                      D Offline
                      D Offline
                      Deepak Vasudevan
                      wrote on last edited by
                      #11

                      Can you help us with the error message that you are confronting so that we can assist you further?

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups