Re: [iText-questions] iText in an ASP.net Web environment

2009-04-20 Thread Fabrizio Accatino
Emad, AFAIK if you don't want to give access to windows fonts folder, the only solution is to make a new directory and copy there the fonts you need (ttf files). Than allow Aspnet user to access to the new directory (read-only should be sufficient). fabrizio On Mon, Apr 20, 2009 at 4:13 PM,

Re: [iText-questions] how to merge in-memory PDFs

2009-04-07 Thread Fabrizio Accatino
Please, provide pdf file (form.pdf). fabrizio On Tue, Apr 7, 2009 at 11:54 AM, Matteo Mazzotti wrote: > Hello all, > I'm using iText (iTextSharp actually, but I know there isn't much > difference) to fill an FDF form of an existing PDF template. The > process is successful. > .. >

Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image

2008-11-24 Thread Fabrizio Accatino
Hello, swap Step 4.1 with Step 4.2. You must place the text, than place the tif image. fabrizio - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with M

Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image

2008-11-24 Thread Fabrizio Accatino
try this... 1 - create a new pdf 2 - add a new page 3 - add plain text (use white as text color) 4 - add the tiff (it covers all the page) Fabrizio - This SF.Net email is sponsored by the Moblin Your Move Developer's challe

Re: [iText-questions] SQL Server 2008 - Reporting Services PDFExport

2008-10-21 Thread Fabrizio Accatino
FYI: Microsoft "closed" the bug. They do not consider it a true bug... but they'll fix it in the next sql major release. Uh! Details: http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=373767 Fabrizio On Wed, Oct 8, 2008 at 2:35 PM, Fabrizio A

Re: [iText-questions] Bug in iText

2008-10-13 Thread Fabrizio Accatino
AFAIK the only workaround is to increase the stack size. http://www.nabble.com/IIS6-problem---Stack-overflow%3A-System.util.collections.k_Tree.Insert-to16559593.html#a16559593 Fabrizio - This SF.Net email is sponsored by the

Re: [iText-questions] SQL Server 2008 - Reporting Services PDFExport

2008-10-08 Thread Fabrizio Accatino
FYI: I've opened a bug on Connect.microsoft.com https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=373767 Fabrizio - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge

Re: [iText-questions] SQL Server 2008 - Reporting Services PDFExport

2008-10-08 Thread Fabrizio Accatino
Hi Paulo, I'm curious: what was the problem? fabrizio - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is

Re: [iText-questions] Specify paper tray per page using iText API

2008-07-01 Thread Fabrizio Accatino
Hi, Is it possible to specify a certain printer paper tray on a per-page basis > using the iText API? > Paper tray selection is print/manufacturer specific. Contact your printer tech support. If not: Are there any tools that can do that? > AFAIK no on Pdf. Some tools on postscript. > Is PDF

Re: [iText-questions] base64 encode/decode

2008-06-06 Thread Fabrizio Accatino
NET Framework: byte[] Convert.FromBase64String(string s) http://msdn.microsoft.com/en-us/library/system.convert.frombase64string.aspx Fabrizio - Check out the new SourceForge.net Marketplace. It's the best place to buy or

Re: [iText-questions] Error in iTextSharp when concatenating PDFs

2008-04-28 Thread Fabrizio Accatino
Johannes, the pdf files seems to have a problem in the XRef table. Ghostscript reports this: Warning: An error occurred while reading an XREF table. The file has been damaged. This may have been caused by a problem while converting or transfering the file. Ghosts

Re: [iText-questions] Issue with displaying PDF content with Internet Explorer

2008-04-10 Thread Fabrizio Accatino
Hello, I'm not sure but it should be a IE bug. I saw you attached jpeg: the url contains many parameters. Can you add another one? Try to add, at the end, &dummy=dummy.pdf. It's a trick to "force" IE to consider the page as a pdf. More info (at the end): http://fhtino.blogspot.com/2006/11/how-

Re: [iText-questions] PDF Files created cannot be opened with Adobe Reader < 8

2008-03-28 Thread Fabrizio Accatino
A question: how do you create the pdf file? From a standalone application or from a web app (asp.net / jsp / ... ) ? Fabrizio - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for ju

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-18 Thread Fabrizio Accatino
Hello, I'm not sure but try to close Document and PdfWrite before reading content from "baos". Fabrizio - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdm

Re: [iText-questions] tiff2pdf byte Array problem

2008-03-17 Thread Fabrizio Accatino
Post the source code where you use ByteArrayOutputStream. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/_

Re: [iText-questions] Method Clarification needed

2008-03-13 Thread Fabrizio Accatino
Hi George, save and restoreState are related to Pdf graphic state (see Pdf reference from Adobe for details). When you call a saveState, the current pdf graphic state is saved on a stack. Than you can change it and, at the end, you can return to the previous calling restoreState. Briefly the pdf g

Re: [iText-questions] printing front-back

2008-02-28 Thread Fabrizio Accatino
Ciao Davide, No. You cannot. You must create 2 different pdfs: one for simplex printing (italian: solo fronte) and one for duplex printing (italian: fronte e retro). Fabrizio On Thu, Feb 28, 2008 at 10:03 AM, davide tau <[EMAIL PROTECTED]> wrote: > Hello, > I'm using your library iText in m

Re: [iText-questions] set paper tray

2008-02-22 Thread Fabrizio Accatino
Hello, AFAIK paper tray selection is too closely related to the producer of the printer and also to the printer model. Pdf standard has no buildin functions for paper tray selection. I suggest you to contact the technical support of the printer and ask them. Probably the first thing they will rep

Re: [iText-questions] finding the position of xobject in an existing pdf

2008-02-14 Thread Fabrizio Accatino
Chris, I don't understand exaclty what your code does but... findind the real position of an xobject is very complex. I write "real positon" because a xobject can contain other xobjects and the placement could be translated and rotated (see tranformation matrix). So, AFAIK, understaning where an o

Re: [iText-questions] ERROR: limitcheck OFFENDING COMMAND: gsave

2008-02-12 Thread Fabrizio Accatino
Andrei, if you need to check the level of nested xobject in a pdf file, you can try to use a piece of code I wrote: http://fhtino.blogspot.com/2007/10/level-of-nested-xobject-in-pdf-file.html How to control it? It depends how you application works. AFAIK there is no (easy) way to reduce the leve

Re: [iText-questions] Permission for the iText dll

2008-01-02 Thread Fabrizio Accatino
http://www.nabble.com/System.Security.SecurityException%3A-That-assembly-does-not-allow-partially-trusted-callers.-to14433163.html Fabrizio On Jan 1, 2008 8:08 PM, Dan Erez <[EMAIL PROTECTED]> wrote: > Hello, > > I've installed the iText dll on my .NET site, but the host server blocks > it

Re: [iText-questions] System.Security.SecurityException: That assembly does not allow partially trusted callers.

2007-12-20 Thread Fabrizio Accatino
Christoph, iTextSharp assembly is not marked with AllowPartiallyTrustedCallersattribute. (if you want to understand more about that, read this very interesting post http://blogs.msdn.com/shawnfa/ar

Re: [iText-questions] limitcheck gsave error

2007-12-06 Thread Fabrizio Accatino
Hello, excuse me but I don't understand. Have you read the value of PdfCheckXObjectLevels.MaxLevel ? What is its value in the files you created ? Fabrizio On Dec 6, 2007 4:57 PM, Gery D. Dorazio <[EMAIL PROTECTED]> wrote: > > > Hi Fabrizio, > > Thank you for your checker code. Here is a li

Re: [iText-questions] limitcheck gsave error

2007-12-06 Thread Fabrizio Accatino
Post source code. I think it was usefull to understand how you build your pdf (I haven't undestood). AFAIK, CutePdf is based on Ghostscript, and AFAIK Ghostscript try to reduce the level of nested xobject in pdf files. This explains why pdf printed on CutePdf and then printed on a PS printer does

Re: [iText-questions] Interoperability with VB 6 (Help needed)

2007-10-18 Thread Fabrizio Accatino
iTextSharp is a NET assembly. So you cannot call it directly from VB6. But you can create a NET "wrapper class" and register it as a COM object. http://www.nabble.com/Re%3A-iText-with-VB-or-ASP-p7671960.html Fabrizio On 10/18/07, jestin john <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to make

Re: [iText-questions] Signing a PDF with Certificate in Windows Store (iTextSharp)

2007-05-11 Thread Fabrizio Accatino
Hi Paul, I think that it's not possible to use the NET Framework classes to sign a Pdf using iTextSahrp. There are some examples that use pfx files and Bouncycastle classes. But, as I know, Bouncycastle classes are not "compatible" with NET Framework classes (X509Certificate2, etc...). Paulo a

Re: [iText-questions] Signing a PDF with Certificate in Windows Store (iTextSharp)

2007-05-11 Thread Fabrizio Accatino
Paul, I don't understand... You want to know how to sign a pdf usign iTextSharp? Or your want to know how to get a certificate from the Windows Certificate Store insted of from a .pfx file? Fabrizio On 5/10/07, Paul <[EMAIL PROTECTED]> wrote: Hi, Does anyone have some sample code of how to

Re: [iText-questions] How to reduce levels of nested xobjects?

2007-04-10 Thread Fabrizio Accatino
Paulo and Leonard, thank you very much. Now I'm investigating a more simple application: a "counter" of nested levels. I think it should be easier to implement. I have done some tests and it seems to work on my pdf test files. I'd like to share some pieces of code. If you or other have time to

Re: [iText-questions] How to reduce levels of nested xobjects?

2007-04-06 Thread Fabrizio Accatino
Paulo, yes, I know iText can't do that. But if I work inside the library, extending/modifying it, is it possible? In your opinion, do you think it is a very complex work? Can you give me some "start points" to investigate? Fabrizio On 4/6/07, Paulo Soares <[EMAIL PROTECTED]> wrote: iText ca

[iText-questions] How to reduce levels of nested xobjects?

2007-04-06 Thread Fabrizio Accatino
I have a pdf. I insert it in a new pdf using PdfReader, AddTemplate, etc. Then I get the resulting pdf and do the same. I insert it in a new pdf. And then I repeat the same many times. The resulting pdf contains a sequence of nested Form Xobjects The question is: is there a way to reduce the lev

Re: [iText-questions] PDF to TIFF

2007-03-04 Thread Fabrizio Accatino
iText / iTextSharp cannot convert pdf to tiff (or to any other image format). You can use ghostscript (as you know). It's a bit complex to run it on server side (asp.net or NTservice ?) but it is possible. I have done it many times. But Ghostscript is OT on this mailing list. If you need help, f

Re: [iText-questions] .net 2.0?

2007-02-08 Thread Fabrizio Accatino
yes, iTextSharp http://itextsharp.sourceforge.net/ Fabrizio - 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

Re: [iText-questions] [POSTSCRIPT] Can iText generate postscript instead of PDF ?

2007-02-07 Thread Fabrizio Accatino
I'm not sure but if i remember correctly, old versions of Pdf standard supported "postscript xobject" or something like that. The idea is to inject small pieces of postscript code in a pdf file. The postscript code will be ignored by all non PS device but executed by PS device. That features was d

Re: [iText-questions] [POSTSCRIPT] Can iText generate postscript instead of PDF ?

2007-02-06 Thread Fabrizio Accatino
Hi Bruno, yes, I know that Pdf 1.7 suports those features but the real production printing machines does not support Pdf 1.7. Ok, ok, perhaps there are few printers supporting it now... but I dont know them. The problem of "real" pdf direct printing is complex and hard to make it work well (

Re: [iText-questions] [POSTSCRIPT] Can iText generate postscriptinstead of PDF ?

2007-02-06 Thread Fabrizio Accatino
No. iText does not generate PostScript. You can generate Pdf and then convert it to PostScript using another tool (like ghoscript). Fabrizio - Using Tomcat but need to do more? Need to support web services, security? Get stuf

Re: [iText-questions] [POSTSCRIPT] Can iText generate postscript instead of PDF ?

2007-02-06 Thread Fabrizio Accatino
Hi, Pdf does not support selective duplex/simplex and paper tray selection. There are some solutions but tipically they are related with a particular printer manufacturer. But the argument is OffTopic on this mailing list. Feel free to write me privately if you need more infos/suggestions. Fab

Re: [iText-questions] Problem with different versions in client machine

2006-12-19 Thread Fabrizio Accatino
Can you give us a piece of code? It's a bit hard to help you without it. Fabrizio On 12/19/06, Vijay S. <[EMAIL PROTECTED]> wrote: Hi, I have written a PDF opening page in asp.net. This is opening properly if client machine is having PDF Version 7.0 and it gives blank page if client is havin

Re: [iText-questions] iText with VB or ASP

2006-12-03 Thread Fabrizio Accatino
Hello, you cannot call iText directly from Classic Asp or VB. But there is a "long" solution walking through iTextSharp and writing an own wrapper COM object. I'm not sure if it works perfectly and if its performances are good or bad. - download iTextSharp (NET version of iText) http://itexts

Re: [iText-questions] Bug? Landscape, PdfPTable 4 cells, Web App, file damaged.

2006-11-03 Thread Fabrizio Accatino
Hello, I have tested your code on VS2005  (Net 2.0) and I have no problem. Both landscape and portrait work well. However I have some notes about your code.MemoryStream.GetBuffer gives you the current buffer and not the real content of the stream. Tipically at the end of the buffer there are many

Re: [iText-questions] Unable to open file.

2006-10-09 Thread Fabrizio Accatino
Hello,   Do you call document.close() before calling  Runtime.getRuntime().exec  ? Does iText fineshed its work?   Can you post a bigger piece of code?         Fabrizio     On 10/6/06, Goud, Srikanth <[EMAIL PROTECTED]> wrote:   Hi , I developed the reports using ITEXT, its really fast and easy

Re: [iText-questions] Unable to open .PDF file from Server

2006-10-05 Thread Fabrizio Accatino
  Do you call document.close() before calling  Runtime.getRuntime().exec  ? Does iText fineshed its work?        Fabrizio   On 10/4/06, Goud, Srikanth <[EMAIL PROTECTED]> wrote: Hi , I developed the reports using ITEXT, its really fast and easy to develop the .PDF files, my question is I develope

Re: [iText-questions] Creating a image from my PDF-file or how to create a HTML document ?

2006-09-22 Thread Fabrizio Accatino
am I able to take a 'picture' of my PDF-document and publish that image on a HTML? That would solve my problem !?   To take a picture (jpeg, png, ...) of your pdf, you can use GhostScript.     Fabrizio                - Take S