You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(1) |
Feb
|
Mar
|
Apr
(3) |
May
(4) |
Jun
(3) |
Jul
(3) |
Aug
(6) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2004 |
Jan
|
Feb
(1) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
(4) |
Oct
(2) |
Nov
|
Dec
|
| 2005 |
Jan
(1) |
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
(3) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
(1) |
Oct
(2) |
Nov
|
Dec
|
| 2007 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Roberto C. C. Y <rca...@ho...> - 2012-02-01 00:17:52
|
<a name="ujuoupfwqf" href="http://www.bubbly-hookah.se/image.php?dog120.img">http://www.bubbly-hookah.se/image.php?dog120.img</a> |
|
From: TREGAN, F. (CIMPA) <FAB...@ai...> - 2010-09-28 10:42:15
|
Hi, I have a C# application which successfully generate a .PDF file when a button is clicked on a WinForm. It then open the .pdf by calling process.Start(). But I have a problem, which is that after I call driver.run(), there a thre new processes running which don't stop and prevent my application from exiting. Here is what the process list in vS debugger shows : 0 9148 Worker Thread <No Name> Normal 0 0 9268 Worker Thread Event Dispatcher Thread Normal 0 0 9672 Worker Thread UI Thread Normal 0 Any idea ? Best Regards, Fabien. The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, please notify Airbus immediately and delete this e-mail. Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately. All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free. |
|
From: afzal r <af...@gm...> - 2009-09-17 16:05:28
|
Hi, I wanted to know that if we use nfop then can we create the pdf in japanese. To write in japanese we need to use font ms gothic font. Please advice me as this is very urgent. regards Afzal |
|
From: Gonzalo A. F. <gon...@gm...> - 2009-05-07 18:12:31
|
Hello, I know that there are many ways to specify the font's directory, wiht a configfile or programatically, but if I'm using the library ApacheFop.Net.dll from a C# application, how can I tell nFOP to use the fonts that are located in c:\windows\fonts ? I'm using the font Arial specifically and it is installed on my system (I have the arial.ttf file), the OS is Windows 2003 Server EE SP2. Regards, -- Gonzalo Alvarez Flores -------------------------------------- Follow the white rabbit.... http://www.gonzaloaf.net/ |
|
From: #Cyrille37# <cyr...@gm...> - 2008-05-07 22:39:27
|
Hello, I'm just testing NFOP for hours and it is a nice tool, thanks to have ported FOP to .Net. And thanks to have made an update this year, that's really great. I've just found an ugly stuff : image path must be full path. Is it a native FOP problem or a NFOP problem ? Cheers cyrille. |
|
From: O'Shaughnessy, K. <Kevin.O'<Sha...@AI...> - 2007-12-04 16:55:25
|
=20 American Life Insurance Company (registered in England no FC2696) and Zeus = Administration Services Limited (registered in England no 3856366) are auth= orised and regulated by the Financial Services Authority, and are members o= f the American International Group Inc (AIG).=20=20 Registered office: ALICO House, 22 Addiscombe Road, Croydon CR9 5AZ=20 |
|
From: Daniel C. <dch...@al...> - 2007-08-17 16:53:44
|
We are developing an application that produces PDF document and requires transparent GIF images to be embedded in the documents. Certain GIF images containing transparency information are corrupted when viewed in the PDF output generated by nFOP. Most often the transparent area is translated to black in the PDF. Has anyone had success using transparent GIFs with the current version of nFOP? Do the developers have intentions of improving transparent GIF functionality in a future version of nFOP? Thanks for any help! =20 Daniel |
|
From: Ben A. <ben...@st...> - 2007-06-25 09:05:25
|
Hello there I would greatly appreciate a small amount of your time to assist with my doctoral research at The University of Newcastle. The research concerns open source licensing and we're seeking developers working on Java projects. The research is supervised, ethics-approved, anonymous and results will be freely available. Participation will also provide a custom licensing report for your project. To learn more, please visit: http://licensing-research.newcastle.edu.au Thanks for reading this email, and I hope you'll consider participating. Best regards Ben Alex (My apologies for being off-topic; this list will not be emailed again) |
|
From: Ben A. <ben...@ac...> - 2007-05-21 01:58:23
|
[Apologies for the off-topic message; no further emails will be sent] You are invited to participate in an academic research project that I am conducting into open source component licensing. The research is part of my Doctorate of Business Administration degree at the University of Newcastle, Australia, and is being supervised by Dr Len Whitehouse. The research is entirely non-commercial, and full results will be made freely available to any person who is interested. It is hoped that the research will offer useful information about how component licensing is approached in practice. We are looking for Java software developers who are working on either commercial or open source projects. Participation in the research is entirely voluntary, and privacy has been carefully addressed to ensure that participants cannot be identified. The research has received an ethics clearance from the university. Participation will usually take less than 30 minutes. If you participate, you may optionally view a licensing compliance assessment report for your project. This may be of general interest or assist in planning licensing compliance strategies. If you are interested in learning more about the research, please visit http://research.acegitech.com. At that location you will find the Research Information Sheet that fully explains the research and provides you with details on how to participate or ask further questions. Please note that data collection is scheduled to end on 4 June 2007. Thank you for taking the time to read this email, and I hope that you will consider participating. Kind regards Ben Alex |
|
From: Bennie, J. <jos...@al...> - 2007-03-30 08:08:18
|
=0D=0AA Batik port is form my past analysis the best technical option, but = is=0D=0Ait overkill=3F=20=0D=0A=0D=0A-----Original Message-----=0D=0AFrom: = nfo...@li...=0D=0A[mailto:nfop-developers-= bo...@li...] On Behalf Of=0D=0ACavanagh, Tim (DFEEST)=0D=0A= Sent: 30 March 2007 01:30=0D=0ATo: nfo...@li...=0D= =0ASubject: Re: [Nfop-developers] XSL-FO and SVG=0D=0A=0D=0A=0D=0AWhat abou= t using iTextSharp I use NFOP so not sure is it is possible=0D=0Awith ITS. = Or you could attempt a BATIK port=3F=0D=0A=0D=0ACheers Tim=0D=0A=0D=0A_____= ____________________________________________________________=0D=0ADe todo p= ara la Mujer Latina http://latino.msn.com/mujer/=0D=0A=0D=0A=0D=0A---------= ---------------------------------------------------------------=0D=0A-=0D=0A= Take Surveys. Earn Cash. Influence the Future of IT=0D=0AJoin SourceForge.n= et's Techsay panel and you'll get the chance to share=0D=0Ayour opinions on= IT & business topics through brief surveys-and earn=0D=0Acash=0D=0Ahttp://= www.techsay.com/default.php=3Fpage=3Djoin.php&p=3Dsourceforge&CID=3DDEVDE=0D= =0AV=0D=0A_______________________________________________=0D=0ANfop-develop= ers mailing list Nfo...@li...=0D=0Ahttps://lists.s= ourceforge.net/lists/listinfo/nfop-developers=0D=0A=0D=0A------------------= ------------------------------------------------------=0D=0A-=0D=0ATake Sur= veys. Earn Cash. Influence the Future of IT=0D=0AJoin SourceForge.net's Tec= hsay panel and you'll get the chance to share=0D=0Ayour opinions on IT & bu= siness topics through brief surveys-and earn=0D=0Acash=0D=0Ahttp://www.tech= say.com/default.php=3Fpage=3Djoin.php&p=3Dsourceforge&CID=3DDEVDE=0D=0AV=0D= =0A_______________________________________________=0D=0ANfop-developers mai= ling list Nfo...@li...=0D=0Ahttps://lists.sourcefo= rge.net/lists/listinfo/nfop-developers=0D=0A=0D=0A=0D=0A-------------------= ----------------------=0D=0AThe information contained in this transmission = may be privileged and=0D=0Aconfidential and is intended only for the use of= the person(s) named=0D=0Aabove. If you are not the intended recipient, or = an employee or agent responsible=0D=0Afor delivering this message to the in= tended recipient, any review, dissemination,=0D=0Adistribution or duplicati= on of this communication is strictly prohibited. If you are=0D=0Anot the in= tended recipient, please contact the sender immediately by reply e-mail=0D=0A= and destroy all copies of the original message. Please note that we do not = accept=0D=0Aaccount orders and/or instructions by e-mail, and therefore wil= l not be responsible=0D=0Afor carrying out such orders and/or instructions.= If you, as the intended recipient=0D=0Aof this message, the purpose of wh= ich is to inform and update our clients, prospects=0D=0Aand consultants of = developments relating to our services and products, would not=0D=0Alike to = receive further e-mail correspondence from the sender, please "reply" to th= e=0D=0Asender indicating your wishes. In the U.S.: 1345 Avenue of the Amer= icas, New York,=0D=0ANY 10105.=0D=0A |
|
From: Cavanagh, T. \(DFEEST\) <Cav...@sa...> - 2007-03-30 00:26:41
|
What about using iTextSharp I use NFOP so not sure is it is possible with ITS. Or you could attempt a BATIK port? Cheers Tim _________________________________________________________________ De todo para la Mujer Latina http://latino.msn.com/mujer/ ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ Nfop-developers mailing list Nfo...@li... https://lists.sourceforge.net/lists/listinfo/nfop-developers |
|
From: Bennie, J. <jos...@al...> - 2007-03-29 14:43:06
|
Hi Rob=20=0D=0A=0D=0AI have the same problems and I haven't yet had the pre= ssure to develop my own solution.=20=0D=0AI've also had problems using any = other img types.=20=0D=0A=0D=0AI'm using the nfop with a few of my own wrap= per classes but miss the SVG support=20=0D=0A=0D=0AIf you have any success = can you let me know.=20=0D=0A=0D=0AIf not I'd be happy to start looking int= o a port/new implementation of an SVG renderer in c#. If Other people think= this is worth while, and We have a Quick Discussion on the best approaches= =2E=0D=0A=0D=0Aregards=0D=0AJay=20=0D=0A=0D=0A-----Original Message-----=0D= =0AFrom: nfo...@li... [mailto:nfop-develop= ers...@li...] On Behalf Of Roberto Carlos Castaneda Y=0D= =0ASent: 29 March 2007 15:15=0D=0ATo: nfo...@li...=0D= =0ASubject: [Nfop-developers] XSL-FO and SVG=0D=0A=0D=0A=0D=0AHello,=0D=0A=0D= =0ADo you guys know of a .net or C# component that could help me to interpr= eter=20=0D=0Aand draw SVG tags from a XSL-FO File to a PDF file.=0D=0A=0D=0A= The NFOP version I=B4ve working with doesn=B4t support SVG Rendering. Has a= nybody had success working with SVG=3F=0D=0A=0D=0AAny help will be apprecia= ted.=0D=0AThanks,=0D=0ARober=0D=0A=0D=0A___________________________________= ______________________________=0D=0ADe todo para la Mujer Latina http://lat= ino.msn.com/mujer/=0D=0A=0D=0A=0D=0A---------------------------------------= ----------------------------------=0D=0ATake Surveys. Earn Cash. Influence = the Future of IT=0D=0AJoin SourceForge.net's Techsay panel and you'll get t= he chance to share your opinions on IT & business topics through brief surv= eys-and earn cash http://www.techsay.com/default.php=3Fpage=3Djoin.php&p=3D= sourceforge&CID=3DDEVDEV=0D=0A_____________________________________________= __=0D=0ANfop-developers mailing list Nfo...@li...=0D= =0Ahttps://lists.sourceforge.net/lists/listinfo/nfop-developers=0D=0A=0D=0A=0D= =0A-----------------------------------------=0D=0AThe information contained= in this transmission may be privileged and=0D=0Aconfidential and is intend= ed only for the use of the person(s) named=0D=0Aabove. If you are not the i= ntended recipient, or an employee or agent responsible=0D=0Afor delivering = this message to the intended recipient, any review, dissemination,=0D=0Adis= tribution or duplication of this communication is strictly prohibited. If y= ou are=0D=0Anot the intended recipient, please contact the sender immediate= ly by reply e-mail=0D=0Aand destroy all copies of the original message. Ple= ase note that we do not accept=0D=0Aaccount orders and/or instructions by e= -mail, and therefore will not be responsible=0D=0Afor carrying out such ord= ers and/or instructions. If you, as the intended recipient=0D=0Aof this me= ssage, the purpose of which is to inform and update our clients, prospects=0D= =0Aand consultants of developments relating to our services and products, w= ould not=0D=0Alike to receive further e-mail correspondence from the sender= , please "reply" to the=0D=0Asender indicating your wishes. In the U.S.: 1= 345 Avenue of the Americas, New York,=0D=0ANY 10105.=0D=0A |
|
From: Roberto C. C. Y <rca...@ho...> - 2007-03-29 14:15:19
|
Hello, Do you guys know of a .net or C# component that could help me to interpreter and draw SVG tags from a XSL-FO File to a PDF file. The NFOP version I´ve working with doesn´t support SVG Rendering. Has anybody had success working with SVG? Any help will be appreciated. Thanks, Rober _________________________________________________________________ De todo para la Mujer Latina http://latino.msn.com/mujer/ |
|
From: Cavanagh, T. \(DFEEST\) <Cav...@sa...> - 2007-03-21 23:13:13
|
Hi Robert, How very timely I was just starting to work on the very same thing. Very well done!!! - Regards Tim Cavanagh Project Officer - Analyst/Programmer ESP Production House Ground Floor, West Sector 120 Currie St Adelaide SA 5000 Ph: 8207 8374 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If the recipient of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication (or any part of it) is strictly prohibited and may be unlawful. If you have received this email in error, please delete it from your system and notify the sender immediately. Any views or opinions presented are solely those of the author and do not necessarily represent those of DFEEST. DFEEST does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, virus or interference. -----Original Message----- From: nfo...@li... [mailto:nfo...@li...] On Behalf Of Robert Soeding Sent: Thursday, 22 March 2007 4:22 AM To: nfo...@li... Subject: [Nfop-developers] Here's how to use (Unicode) fonts There have been some questions concerning how to use (Unicode) fonts in=20 NFOP. Generally, there are two methods: 1) By using userconfig.xml (not sure=20 how or even if this is implemented with NFOP) and 2) by coding (that's=20 described here). Both methods actually are doing same, at last. The following method will ***not embed*** the fonts added into the PDF=20 document, =3D=3D=3D>> Could anyone please point me to understand how? <<=3D=3D=3D some parts of the code are Windows-specific, anyways, here's how: 1. Create the font metrics files=20 (http://xmlgraphics.apache.org/fop/0.20.5/fonts.html). 2. Get the NFOP source and add a folder /fonts/resources. Put the=20 metrics files there and in their properties, set the Build Action to=20 Embedded Resource. Note that setting up the fonts at every rendering event takes some time=20 (the more fonts, the longer), so it would be probably be a better idea=20 to have the fonts setup done in satellite assemblies, each one for a=20 couple of fonts commonly used together in an XSL:FO project. 3. Some patches: 3.1. URLBuilder.java: public static URL buildURL(String spec) throws MalformedURLException { if (spec =3D=3D null) throw new NullPointerException("spec must = not=20 be null"); // #RS 2006-10-10: 1. "new File(spec)" fails when "directory"=20 doesn't start // with a drive letter (or two backslashes, possibly). // On the other hand, "new URL(spec)" does fail when "directory" doesn't // start with "file:///" return new URL(spec); // File f =3D new File(spec); // if (f.exists()) { // return new URL(f.toString()); // } else { // URL u1 =3D new URL(spec); // return u1; // } } 3.2. PDFRenderer.java: private String getUnicodeString(char c) { StringBuffer buf =3D new StringBuffer(4); =20 byte[] uniBytes =3D null; try { char[] a =3D {c}; // #rs 2006-10-10: UnicodeBigUnmarked fails with a // java.io.UnsupportedEncodingException. It doesn't exist=20 on Windows. //uniBytes =3D new String(a).getBytes("UnicodeBigUnmarked"); uniBytes =3D new String(a).getBytes("UnicodeBig"); }=20 catch (Exception e)=20 ... 3.3. Driver.java: public Driver() { _stream =3D null; _treeBuilder =3D new FOTreeBuilder(); setupDefaultMappings(); =20 //#RS 2006-10-12: Support for additional (Unicode) fonts try { CustomFontsConfiguration.initialize(); } catch (System.IO.FileNotFoundException fnfExc) { getLogger().fatalError(fnfExc.get_Message()); } } 3.4. Configuration.java: private static URL buildBaseURL(String directory) throws=20 java.net.MalformedURLException { if (directory =3D=3D null) return null; // #RS 2006-10-10: 1. "new File(directory)" fails when=20 "directory" doesn't start // with a drive letter (or two backslashes, possibly). // On the other hand, "new URL(directory)" does fail when=20 "directory" doesn't // start with "file:///" // File dir =3D new File(directory); // if (dir.isDirectory()) { // return new URL(dir.toString()); // } else { URL baseURL =3D new URL(directory); return baseURL; // } } 3.5. PDFDocument.java: // #rs 20070321 Set to ISO as otherwise, there would be a=20 // UnsupportedEncodingException in PDFFont.toPDF(). // Attention: The actual problem probably sits elsewhere, and this=20 might lead to follow-up issues. public static final String ENCODING =3D "ISO-8859-1"; //public static final String ENCODING =3D "UTF-8"; 3.6. PFBParser.java: // #rs 20070321: Added the constructor. // Else, Visual Studio wouldn't step into the "static" block - d'uh! public PFBParser() { } =20 static { // #rs 20070321: US-ASCII isn't supported on my system. // Use some other 2-byte charset. =20 try { CURRENTFILE_EEXEC =3D "currentfile eexec".getBytes("ISO-8859-1"); CLEARTOMARK =3D "cleartomark".getBytes("ISO-8859-1"); } catch (java.io.UnsupportedEncodingException e) { throw new RuntimeException("Incompatible VM. It doesn't=20 support the US-ASCII encoding"); } //try { // CURRENTFILE_EEXEC =3D "currentfile eexec".getBytes("US-ASCII"); // CLEARTOMARK =3D "cleartomark".getBytes("US-ASCII"); //} catch (java.io.UnsupportedEncodingException e) { // throw new RuntimeException("Incompatible VM. It doesn't=20 support the US-ASCII encoding"); //} } 4. Add a new class CustomFontsConfiguration.java. Adapt the code to your font and file names, etc., and generally, step through it debugging one=20 time to see if it's all working with your system. The code is a bit=20 rough in parts. package org.apache.fop.fonts; =20 import java.util.ArrayList; import java.util.List; import org.apache.fop.configuration.Configuration; import org.apache.fop.configuration.FontInfo; import org.apache.fop.configuration.FontTriplet; =20 /** * #RS 2006-10-11 * Add support for custom (Unicode) fonts. */ public class CustomFontsConfiguration { static ArrayList configFontInfos; =20 public static final String[] supportedFonts =3D { "Arial", "ArialUnicodeMS", "Verdana", "Neue Helvetica", "Neue Helvetica Bold Condensed", "Neue=20 Helvetica Bold",=20 "Neue Helvetica Light", "Neue Helvetica Medium", "Neue Helvetica Roman"}; private static final String[] supportedFontFileTitles =3D { "Arial.ttf", "ArialUnicodeMS.ttf", "Verdana.ttf", "LTe50271.pfm", "LTe50874.pfm", "LTe50261.pfm", "LTe50263.pfm", "LTe50265.pfm", "LTe50259.pfm"}; private static final String[] supportedFontMetricsFileTitles =3D {"Arial.xml", "ArialUnicodeMS.xml", "Verdana.xml", "HelveticaNeueLT Black.xml", "HelveticaNeueLT Bold=20 Condensed.xml", "HelveticaNeueLT Bold.xml", "HelveticaNeueLT Light.xml", "HelveticaNeueLT Medium.xml",=20 "HelveticaNeueLT Roman.xml"}; private static final boolean[] supportedFontsKerning =3D {true, true, true, true, true, true, true, true, true}; =20 public static void initialize() throws System.IO.FileNotFoundException { //List fontTriplets; //FontTriplet fontTriplet; //FontInfo configFontInfo; //String fontName; //String metricsFileName, ttfFileName; //boolean kerning; =20 configFontInfos =3D new java.util.ArrayList(); =20 for (int i =3D 0; i < supportedFonts.length; i++) { String metricsFileName =3D new = CustomFontsConfiguration().new=20 FontMetricsSupport() .getMetricsFileName(supportedFontMetricsFileTitles[i]); String fontFileName =3D=20 getFontFileName(supportedFontFileTitles[i], false); addFont(configFontInfos, supportedFonts[i], metricsFileName, fontFileName, supportedFontsKerning[i]); } =20 Configuration.put("fonts", configFontInfos); Configuration.put("fontBaseDir",=20 getUrlStyleFileOrFolderName(getFontsFolderName())); } =20 private static void addFont(java.util.ArrayList configFontInfos,=20 String fontName,=20 String metricsFileName, String fontFileName, boolean kerning) { if (fontName !=3D null) { ArrayList fontTriplets =3D new ArrayList(); FontTriplet fontTriplet =3D new FontTriplet(fontName,=20 "normal", "normal"); fontTriplets.add(fontTriplet); fontTriplet =3D new FontTriplet(fontName, "bold", "normal"); fontTriplets.add(fontTriplet); fontTriplet =3D new FontTriplet(fontName, "bold", "italic"); fontTriplets.add(fontTriplet); fontTriplet =3D new FontTriplet(fontName, "normal", = "italic"); fontTriplets.add(fontTriplet); FontInfo configFontInfo =3D new FontInfo( fontName, metricsFileName, kerning, fontTriplets,=20 fontFileName); configFontInfos.add(configFontInfo); } } =20 private static String getUrlStyleFileOrFolderName(String=20 fileOrFolderName) { if (!fileOrFolderName.startsWith("file:///")) { fileOrFolderName =3D "file:///" + fileOrFolderName; fileOrFolderName =3D fileOrFolderName.Replace("\\", "/"); } =20 return fileOrFolderName; } =20 private static String getFontsFolderName() { String systemFolderName =3D System.Environment.GetFolderPath( System.Environment.SpecialFolder.System); System.IO.DirectoryInfo winDirInfo =3D=20 System.IO.Directory.GetParent(systemFolderName); String fontsFolderName =3D winDirInfo.get_FullName() + "\\fonts"; //=20 System.IO.Path.DirectorySeparatorChar.ToString(); =20 if (!System.IO.Directory.Exists(fontsFolderName)) { return null; } =20 return fontsFolderName; } =20 private static String getFontFileName(String fontFileTitle, boolean=20 throwErrorIfNotFound) throws System.IO.FileNotFoundException { String fontsFolderName =3D getFontsFolderName(); =20 if (fontsFolderName !=3D null) { String fontFileName =3D fontsFolderName + "\\" //=20 System.IO.Path.DirectorySeparatorChar.ToString() + fontFileTitle; =20 if (System.IO.File.Exists(fontFileName)) { return getUrlStyleFileOrFolderName(fontFileName); } } =20 if (throwErrorIfNotFound) { throw new System.IO.FileNotFoundException("File not found.", fontFileTitle); } =20 return null; } =20 private class FontMetricsSupport { public String getMetricsFileName(String fileTitle) { String tempFileName =3D System.IO.Path.GetTempPath(); if (!tempFileName.EndsWith("\\")) //=20 System.IO.Path.DirectorySeparatorChar.ToString())) { tempFileName +=3D "\\"; //=20 System.IO.Path.DirectorySeparatorChar.ToString(); } tempFileName +=3D fileTitle; =20 if (!System.IO.File.Exists(tempFileName)) { System.IO.Stream stm =3D=20 this.GetType().get_Assembly().GetManifestResourceStream( "ApacheFop.fonts.resources." + fileTitle); System.IO.StreamReader streamReader =3D new=20 System.IO.StreamReader( stm, System.Text.Encoding.get_UTF8()); String xml =3D streamReader.ReadToEnd(); =20 System.IO.StreamWriter streamWriter =3D new=20 System.IO.StreamWriter( tempFileName, false, System.Text.Encoding.get_UTF8()); streamWriter.Write(xml); streamWriter.Close(); } return getUrlStyleFileOrFolderName(tempFileName); } } } Cheers Robert ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ Nfop-developers mailing list Nfo...@li... https://lists.sourceforge.net/lists/listinfo/nfop-developers |
|
From: Robert S. <rob...@gm...> - 2007-03-21 17:51:49
|
There have been some questions concerning how to use (Unicode) fonts in NFOP. Generally, there are two methods: 1) By using userconfig.xml (not sure how or even if this is implemented with NFOP) and 2) by coding (that's described here). Both methods actually are doing same, at last. The following method will ***not embed*** the fonts added into the PDF document, ===>> Could anyone please point me to understand how? <<=== some parts of the code are Windows-specific, anyways, here's how: 1. Create the font metrics files (http://xmlgraphics.apache.org/fop/0.20.5/fonts.html). 2. Get the NFOP source and add a folder /fonts/resources. Put the metrics files there and in their properties, set the Build Action to Embedded Resource. Note that setting up the fonts at every rendering event takes some time (the more fonts, the longer), so it would be probably be a better idea to have the fonts setup done in satellite assemblies, each one for a couple of fonts commonly used together in an XSL:FO project. 3. Some patches: 3.1. URLBuilder.java: public static URL buildURL(String spec) throws MalformedURLException { if (spec == null) throw new NullPointerException("spec must not be null"); // #RS 2006-10-10: 1. "new File(spec)" fails when "directory" doesn't start // with a drive letter (or two backslashes, possibly). // On the other hand, "new URL(spec)" does fail when "directory" doesn't // start with "file:///" return new URL(spec); // File f = new File(spec); // if (f.exists()) { // return new URL(f.toString()); // } else { // URL u1 = new URL(spec); // return u1; // } } 3.2. PDFRenderer.java: private String getUnicodeString(char c) { StringBuffer buf = new StringBuffer(4); byte[] uniBytes = null; try { char[] a = {c}; // #rs 2006-10-10: UnicodeBigUnmarked fails with a // java.io.UnsupportedEncodingException. It doesn't exist on Windows. //uniBytes = new String(a).getBytes("UnicodeBigUnmarked"); uniBytes = new String(a).getBytes("UnicodeBig"); } catch (Exception e) ... 3.3. Driver.java: public Driver() { _stream = null; _treeBuilder = new FOTreeBuilder(); setupDefaultMappings(); //#RS 2006-10-12: Support for additional (Unicode) fonts try { CustomFontsConfiguration.initialize(); } catch (System.IO.FileNotFoundException fnfExc) { getLogger().fatalError(fnfExc.get_Message()); } } 3.4. Configuration.java: private static URL buildBaseURL(String directory) throws java.net.MalformedURLException { if (directory == null) return null; // #RS 2006-10-10: 1. "new File(directory)" fails when "directory" doesn't start // with a drive letter (or two backslashes, possibly). // On the other hand, "new URL(directory)" does fail when "directory" doesn't // start with "file:///" // File dir = new File(directory); // if (dir.isDirectory()) { // return new URL(dir.toString()); // } else { URL baseURL = new URL(directory); return baseURL; // } } 3.5. PDFDocument.java: // #rs 20070321 Set to ISO as otherwise, there would be a // UnsupportedEncodingException in PDFFont.toPDF(). // Attention: The actual problem probably sits elsewhere, and this might lead to follow-up issues. public static final String ENCODING = "ISO-8859-1"; //public static final String ENCODING = "UTF-8"; 3.6. PFBParser.java: // #rs 20070321: Added the constructor. // Else, Visual Studio wouldn't step into the "static" block - d'uh! public PFBParser() { } static { // #rs 20070321: US-ASCII isn't supported on my system. // Use some other 2-byte charset. try { CURRENTFILE_EEXEC = "currentfile eexec".getBytes("ISO-8859-1"); CLEARTOMARK = "cleartomark".getBytes("ISO-8859-1"); } catch (java.io.UnsupportedEncodingException e) { throw new RuntimeException("Incompatible VM. It doesn't support the US-ASCII encoding"); } //try { // CURRENTFILE_EEXEC = "currentfile eexec".getBytes("US-ASCII"); // CLEARTOMARK = "cleartomark".getBytes("US-ASCII"); //} catch (java.io.UnsupportedEncodingException e) { // throw new RuntimeException("Incompatible VM. It doesn't support the US-ASCII encoding"); //} } 4. Add a new class CustomFontsConfiguration.java. Adapt the code to your font and file names, etc., and generally, step through it debugging one time to see if it's all working with your system. The code is a bit rough in parts. package org.apache.fop.fonts; import java.util.ArrayList; import java.util.List; import org.apache.fop.configuration.Configuration; import org.apache.fop.configuration.FontInfo; import org.apache.fop.configuration.FontTriplet; /** * #RS 2006-10-11 * Add support for custom (Unicode) fonts. */ public class CustomFontsConfiguration { static ArrayList configFontInfos; public static final String[] supportedFonts = { "Arial", "ArialUnicodeMS", "Verdana", "Neue Helvetica", "Neue Helvetica Bold Condensed", "Neue Helvetica Bold", "Neue Helvetica Light", "Neue Helvetica Medium", "Neue Helvetica Roman"}; private static final String[] supportedFontFileTitles = { "Arial.ttf", "ArialUnicodeMS.ttf", "Verdana.ttf", "LTe50271.pfm", "LTe50874.pfm", "LTe50261.pfm", "LTe50263.pfm", "LTe50265.pfm", "LTe50259.pfm"}; private static final String[] supportedFontMetricsFileTitles = {"Arial.xml", "ArialUnicodeMS.xml", "Verdana.xml", "HelveticaNeueLT Black.xml", "HelveticaNeueLT Bold Condensed.xml", "HelveticaNeueLT Bold.xml", "HelveticaNeueLT Light.xml", "HelveticaNeueLT Medium.xml", "HelveticaNeueLT Roman.xml"}; private static final boolean[] supportedFontsKerning = {true, true, true, true, true, true, true, true, true}; public static void initialize() throws System.IO.FileNotFoundException { //List fontTriplets; //FontTriplet fontTriplet; //FontInfo configFontInfo; //String fontName; //String metricsFileName, ttfFileName; //boolean kerning; configFontInfos = new java.util.ArrayList(); for (int i = 0; i < supportedFonts.length; i++) { String metricsFileName = new CustomFontsConfiguration().new FontMetricsSupport() .getMetricsFileName(supportedFontMetricsFileTitles[i]); String fontFileName = getFontFileName(supportedFontFileTitles[i], false); addFont(configFontInfos, supportedFonts[i], metricsFileName, fontFileName, supportedFontsKerning[i]); } Configuration.put("fonts", configFontInfos); Configuration.put("fontBaseDir", getUrlStyleFileOrFolderName(getFontsFolderName())); } private static void addFont(java.util.ArrayList configFontInfos, String fontName, String metricsFileName, String fontFileName, boolean kerning) { if (fontName != null) { ArrayList fontTriplets = new ArrayList(); FontTriplet fontTriplet = new FontTriplet(fontName, "normal", "normal"); fontTriplets.add(fontTriplet); fontTriplet = new FontTriplet(fontName, "bold", "normal"); fontTriplets.add(fontTriplet); fontTriplet = new FontTriplet(fontName, "bold", "italic"); fontTriplets.add(fontTriplet); fontTriplet = new FontTriplet(fontName, "normal", "italic"); fontTriplets.add(fontTriplet); FontInfo configFontInfo = new FontInfo( fontName, metricsFileName, kerning, fontTriplets, fontFileName); configFontInfos.add(configFontInfo); } } private static String getUrlStyleFileOrFolderName(String fileOrFolderName) { if (!fileOrFolderName.startsWith("file:///")) { fileOrFolderName = "file:///" + fileOrFolderName; fileOrFolderName = fileOrFolderName.Replace("\\", "/"); } return fileOrFolderName; } private static String getFontsFolderName() { String systemFolderName = System.Environment.GetFolderPath( System.Environment.SpecialFolder.System); System.IO.DirectoryInfo winDirInfo = System.IO.Directory.GetParent(systemFolderName); String fontsFolderName = winDirInfo.get_FullName() + "\\fonts"; // System.IO.Path.DirectorySeparatorChar.ToString(); if (!System.IO.Directory.Exists(fontsFolderName)) { return null; } return fontsFolderName; } private static String getFontFileName(String fontFileTitle, boolean throwErrorIfNotFound) throws System.IO.FileNotFoundException { String fontsFolderName = getFontsFolderName(); if (fontsFolderName != null) { String fontFileName = fontsFolderName + "\\" // System.IO.Path.DirectorySeparatorChar.ToString() + fontFileTitle; if (System.IO.File.Exists(fontFileName)) { return getUrlStyleFileOrFolderName(fontFileName); } } if (throwErrorIfNotFound) { throw new System.IO.FileNotFoundException("File not found.", fontFileTitle); } return null; } private class FontMetricsSupport { public String getMetricsFileName(String fileTitle) { String tempFileName = System.IO.Path.GetTempPath(); if (!tempFileName.EndsWith("\\")) // System.IO.Path.DirectorySeparatorChar.ToString())) { tempFileName += "\\"; // System.IO.Path.DirectorySeparatorChar.ToString(); } tempFileName += fileTitle; if (!System.IO.File.Exists(tempFileName)) { System.IO.Stream stm = this.GetType().get_Assembly().GetManifestResourceStream( "ApacheFop.fonts.resources." + fileTitle); System.IO.StreamReader streamReader = new System.IO.StreamReader( stm, System.Text.Encoding.get_UTF8()); String xml = streamReader.ReadToEnd(); System.IO.StreamWriter streamWriter = new System.IO.StreamWriter( tempFileName, false, System.Text.Encoding.get_UTF8()); streamWriter.Write(xml); streamWriter.Close(); } return getUrlStyleFileOrFolderName(tempFileName); } } } Cheers Robert |
|
From: Jason P. <ja...@pe...> - 2006-10-25 12:49:45
|
Togni, I can only tell you that to the best of my knowledge the project is 100% .NET, and based on that I would be very surprised if it didn't run on = 2003 Server. I'm not sure what the criteria of "an explicit agreement" would = be; I can only tell you my best guess based on what I know. Jason -----Original Message----- From: fre...@di... [mailto:fre...@di...]=20 Sent: Wednesday, October 25, 2006 5:16 AM To: nfo...@li... Subject: [Nfop-developers] Compatibility with Windows 2003 server Hello, Can someone tell me if the nfop dll is compatible with Windows 2003 = server? I'm asking because it isn't explicitly written in the operating system = list and I need an explicit agreement to have the right to use it in our architecture. Thanks for your response, Togni Fr=E9d=E9ric. -------------------------------------------------------------------------= Using Tomcat but need to do more? Need to support web services, = security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Nfop-developers mailing list Nfo...@li... https://lists.sourceforge.net/lists/listinfo/nfop-developers |
|
From: <fre...@di...> - 2006-10-25 10:15:59
|
Hello, Can someone tell me if the nfop dll is compatible with Windows 2003 ser= ver? I'm asking because it isn't explicitly written in the operating system = list and I need an explicit agreement to have the right to use it in our architecture. Thanks for your response, Togni Fr=E9d=E9ric.= |
|
From: Samuel H. <ad...@cy...> - 2006-09-08 07:12:22
|
Hy, I have a problem with nfop, i don't know if it's possible, but in fop yes, so why not ? I would like to put arial verdana and century gothic fonts (it is in windows by default) in nfop, I do the xml metrics, but I don't see where I can link the font with nfop. If you have a idea, or if you know something on this problem (like "it's impossible !" or other thing for pleasure), it's really nice to send me a mail as soon is possible. We are in a Hardcore deadline, and wee don't have the good font on our document, it's really terrible for the client! Sorry for my poor English. And have a good day Cordialy Samuel Huron |
|
From: Marc V. <ma...@ul...> - 2006-08-23 14:54:34
|
Dear sirs, =20 Is it possible to generate via nFop a PDF that contains the javascript block to 'silent print'. This to prevent that a user needs to click the print button for each report request ? =20 We can do this now by opening the PDF after creation and adding a javascript block (using tall pdf component API). We want to eliminate this step and add the Javascript block directly during the FOP rendering. =20 Hope you can help. =20 Regards =20 Marc Vermeulen CTO ---------------------------------- UltraGenda nv B-9070 Destelbergen / Belgium ma...@ul... <mailto:ma...@ul...>=20 www.ultragenda.com <http://www.ultragenda.com/>=20 +32 9 326 30 30 (main)=20 +32 9 326 30 03 (direct) ---------------------------------- =20 |
|
From: Andreia O. <an...@re...> - 2006-07-18 17:58:02
|
Hi! I am migrating a .NET solution (on fop 0.2.5) using nfop dll (released last year) to the latest fop version 0.9.2beta. This new fop version has enhancements we would like to incorporate in our solution (specially the new possibilities to control page breaks,...). Do you have any plans on when a new release of nFOP will be available? If this is not going to be in the near future, what do you advise regrading this need to implement the "page-breaks" functionalities? Thanks in advance for your feedback. Best regards, ACO |
|
From: Antoine <mel...@gm...> - 2006-07-09 12:18:56
|
Hi, It looks as though nfop has no way of displaying in a component as opposed to creating a file - is this correct? Cheers Antoine ps. I realise .net awt support is pretty weak - is this the reason? -- This is where I should put some witty comment. |
|
From: John C. <joh...@gm...> - 2006-05-18 20:16:43
|
Hi NFop developers and users, Are there plans to port the latest FOP code to J#? Also I was wondering if the process of porting FOP to J# was documented? Thanks, John --=20 John Cavalieri joh...@gm... |
|
From: Marcello M. <Mar...@lo...> - 2006-05-09 10:33:13
|
Questo messaggio è stato controllato dal firewall/antivirus Fortigate di TITANIT SRL e LOG CONSULTING. in...@ti... - in...@lo... |
|
From: Marcello M. <Mar...@lo...> - 2006-05-09 10:17:00
|
Questo messaggio è stato controllato dal firewall/antivirus Fortigate di TITANIT SRL e LOG CONSULTING. in...@ti... - in...@lo... |
|
From: Forrest H. <FHu...@er...> - 2006-03-28 14:53:30
|
I really appreciate your immediate response and I apologize for the redundancy. I will review the documentation you provided and I thank you for your efforts. =20 Thanks =20 Forrest Hulette Director, Software Development fhu...@er...=20 ________________________________ From: Jason Pettys [mailto:ja...@pe...]=20 Sent: Tuesday, March 28, 2006 9:50 AM To: nfo...@li... Subject: RE: [Nfop-developers] Licensing Requirements for using nfop project =20 Hi Forrest, =20 I hope you find NFOP useful. As with any SourceForge project the license is indicated on the project summary page. This page is at http://sourceforge.net/projects/nfop. Under the green "Download NFop" tag there is a note, License: Apache Software License. This is the license for NFop because it is a port of the Apache FOP project, and that's the license it uses. The text of this license is available at http://www.apache.org/licenses. =20 I believe you will find this license will allow you to do most of what you'd like to do at zero cost and without much restriction, but you should read through the license to ensure it's a good fit for your organization and situation. =20 Jason =20 ________________________________ From: nfo...@li... [mailto:nfo...@li...] On Behalf Of Forrest Hulette Sent: Tuesday, March 28, 2006 8:17 AM To: nfo...@li... Subject: [Nfop-developers] Licensing Requirements for using nfop project =20 I apologize for any ignorance as I am new to this site, and quite impressed with the wealth of information... =20 =20 One of my developers has pointed me to this project in hopes that we can use this in our development, but I need to know before approving the addition of the third party control what type of licensing and/or royalties, if any, would be involved if we use this project. If this information is indicated on the site and I missed it my apologies and if you will point me in the correct place I will continue researching. =20 Thanks in advance for any assistance that you may be able to offer me. =20 =20 =20 Forrest Hulette Director, Software Development ERA Software Systems, Inc. *804-897-4644 (Richmond Office) *562-983-7510 (Long Beach Office) *fhu...@er... <mailto:+fhu...@er...> =20 =20 |