[ 
https://issues.apache.org/jira/browse/PDFBOX-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752177#action_12752177
 ] 

Rob Bradley commented on PDFBOX-502:
------------------------------------

I am not familiar enough with it either.

However, I am not certain it matters.

In theory (at least my theory) as it compiles if it needs to use a component 
from one of the dll's then it would reference it within the compiled dll 
version.  In a .net application, any call to one of these procedures that would 
require the .net application to reference the corresponding ikvm dll as well.

Therefore, compiling with all of them referenced should not change the PDFBox 
dll at all.  I guess it would be equivalent to using a sledge hammer to compile 
an application that you could use a finish hammer on.  Not elegant but, if you 
were to start using some java that required one of them you would not change 
the ant script.

FYI, I am writing a .net class to create PDF reports on the fly.  It may be 
useful to other PDFBox users as well. I have added support for landscape text 
as well.


Rob Bradley
MIS Manager
Truckee-Tahoe Lumber Co.
Email:  [email protected]
Phone:  (530) 582-2125
Mobile: (530) 308-6188
Fax:    (530) 582-2135



> How To: compile for .NET for image support..
> --------------------------------------------
>
>                 Key: PDFBOX-502
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-502
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 0.8.0-incubator
>         Environment: Building for .Net 
>            Reporter: Rob Bradley
>            Priority: Trivial
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> 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" />

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to