Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-502

How To: compile for .NET for image support..

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Invalid
    • 0.8.0-incubator
    • None
    • .NET
    • None
    • Building for .Net

    Description

      I hope I have categorized this correctly...

      In order to take advantage of image support in PDFBox (ie to add an image to a page) you must compile with at least IKVM ver 0.40.0.1

      The older version returns an error "Not Implemented" when creating image objects like "org.apache.pdfbox.pdmodel.graphics.xobject.PDJpeg"

      The new version supports the java.awt.image library a little better.

      However, the new IKVM requires some changes to the build.xml file becease the IKVM file names changed.

      I probably have over referenced the dll's but this works.

      For each of the build.NET portions of build.xml:
      Replace
      <arg value="-reference:${ikvm.dir}/bin/IKVM.OpenJDK.ClassLibrary.dll" />
      <arg value="-reference:${ikvm.dir}/bin/IKVM.AWT.WinForms.dll" />

      With
      <arg value="-reference:${ikvm.dir}/bin/IKVM.AWT.WinForms.dll" />
      <arg value="-reference:${ikvm.dir}/bin/IKVM.OpenJDK.Charsets.dll" />
      <arg value="-reference:${ikvm.dir}/bin/IKVM.OpenJDK.Corba.dll" />
      <arg value="-reference:${ikvm.dir}/bin/IKVM.OpenJDK.Core.dll" />
      <arg value="-reference:${ikvm.dir}/bin/IKVM.OpenJDK.Jdbc.dll" />
      <arg value="-reference:${ikvm.dir}/bin/IKVM.OpenJDK.Management.dll" />
      <arg value="-reference:${ikvm.dir}/bin/IKVM.OpenJDK.Misc.dll" />
      <arg value="-reference:${ikvm.dir}/bin/IKVM.OpenJDK.Security.dll" />
      <arg value="-reference:${ikvm.dir}/bin/IKVM.OpenJDK.SwingAWT.dll" />
      <arg value="-reference:${ikvm.dir}/bin/IKVM.OpenJDK.Text.dll" />
      <arg value="-reference:${ikvm.dir}/bin/IKVM.OpenJDK.Util.dll" />
      <arg value="-reference:${ikvm.dir}/bin/IKVM.OpenJDK.XML.dll" />

      Attachments

        Activity

          People

            Unassigned Unassigned
            rob@ttlco.com Rob Bradley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: