Direkt zum Hauptbereich

Howto diff pdfs on cli - on windows

Pixel Diff
  1.  Get ImageMagick cli tool
    1. Windows:
      choco install imagemagick
  2. Convert every pdf page to a rastrized image, use different directories
    magick convert inputA.pdf output%d.png
    magick convert inputB.pdf output%d.png 
  3. Use winmerge to compare the output

 Text Diff

  1. Get pdftotxt
    1. http://www.xpdfreader.com/download.html
  2. create inputA.txt file
    1. xpdf-tools-win-4.03\bin64\pdftotext.exe .\inputA.pdf
  3. create inputB.txt file
    1. xpdf-tools-win-4.03\bin64\pdftotext.exe .\inputB.pdf
  4. Use winmerge to compare the output

Kommentare

Beliebte Posts aus diesem Blog

favourite geek&poke comics

http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013485e5e37b970c-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013486458e35970c-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0133f32a0f25970b-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0133f3716c17970b-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013486997ef7970c-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013487146609970c-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0133f4227ee4970b-pi

Open DRM-Free Unencrypted DVB-T2 Tv and Radio in Austria

Most things in Austria terestical TV got encrypted since DVB-T got shut down, but there are still three TV channels and three Radio Channels unencrypted. I had some hard time to find out how to get it working using linux... and non existing documentation of the sender did not help. Howerver... if you have use for detailed channel setup arround vienna, take a look: Tvheadend seems to lack channel search support using DVB-T2, but puzzeling every value together works fine: Mux A-WNB Channel Frequency: 498000000 Bandwitdh: 8MHz Constellation; QAM/16 Mux B2 Channel Frequency: 578000000 Bandwitdh: 8MHz Constellation; QAM/16 Unstable Twin Tuner I am using some twin tuner. That was not supported on older kernel version, but is now supported on current versions. Great? nope. The system/tvheadend gets unstable if two tuner are enabled running for weeks. After disabling one tuner, tvheadend runs reliable for months. List of unencrypted streams Example stream info tv channel   Surround sound ...

ffmpeg wrapper for .net and java

Ok. I built a custom ffmpeg wrapper but it was just a dirty hack. it was not encapsulated clean.... it worked but it was just tooo ugly to develop some extension... wrapping looked something like this: THIS DOES NOT WORK it is refactored to death:    class MencoderSharp     {         public static bool mencoder(System.Uri infovdrpath, string ratio, System.Uri destinationpath, BackgroundWorker worker, bool deleteConverted,string audioparameter, string videoparamter, bool testRun, DoWorkEventArgs e)         {             int returncode = 0;             foreach (string sourcepath in Directory.GetFiles(infovdrpath.ToString().Substring(0, infovdrpath.ToString().Length - 9), "0*.vdr"))             {                 Process p = new Process();                 //p.StartInfo.WorkingDirectory = @"C:\whatever";                 p.StartInfo.FileName = @"mencoder.exe";                 // http://msdn.microsoft.com/de-de/library/system.diagnostics.processstar...