|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Re: Image.GetInstance hangs after a few iterationsThe problem is also happening with AddImage. Here are the contents of the some of the variables: cb(PdfContentByte acquired from a PdfStamper), chkbox
is the Image that is added to each document: cb {q 10 0 0 10 30 275 cm} [iTextSharp.text.pdf.StampContent]: {q 10 0 0 10 30 275 cm} CharacterSpacing: 0.0 Duplicate: {} HorizontalScaling: 100.0 InternalBuffer: {q 10 0 0 10 30 275 cm} Leading: 0.0 PdfDocument: {iTextSharp.text.pdf.PdfDocument} PdfWriter: {iTextSharp.text.pdf.PdfStamperImp} RootOutline: null WordSpacing: 0.0 XTLM: 0.0 YTLM: 0.0 cb.InternalBuffer
{q 10 0 0 10 30 275 cm} base {System.IO.Stream}: {q 10 0 0 10 30 275 cm} Buffer: {byte[128]} CanRead: false CanSeek: false CanWrite: true Length: 21 Position: 21 Size: 21 TRFDocument.chkbox {Rectangle: 10x10 (rot: 0 degrees)} [iTextSharp.text.Jpeg]: {Rectangle: 10x10 (rot: 0 degrees)} base {iTextSharp.text.Rectangle}: {Rectangle: 10x10 (rot: 0 degrees)} AbsoluteX: 30.0 AbsoluteY: 275.0 Additional: null Alignment: 0 Alt: null Annotation: null Bpc: 8 Colorspace: 3 CompressionLevel: -1 Deflated: false DirectReference: null DpiX: 72 DpiY: 72 ImageMask: null IndentationLeft: 0.0 IndentationRight: 0.0 InitialRotation: 0.0 Interpolation: false Inverted: true Layer: null Matrix: {float[8]} MySerialId: 1 OriginalData: null OriginalType: 1 PlainHeight: 10.0 PlainWidth: 10.0 RawData: null ScaledHeight: 10.0 ScaledWidth: 10.0 Smask: false SpacingAfter: 0.0 SpacingBefore: 0.0 TagICC: {iTextSharp.text.pdf.ICC_Profile} TemplateData: null Transparency: null Type: 32 Url: {file:///C:/Program Files/Metametrix/TRFPrintService2009/Chkbox.jpg} WidthPercentage: 100.0 XYRatio: 0.0 cb.AddImage(TRFDocument.chkbox) Step into: Stepping over non-user code 'iTextSharp.text.pdf.PdfImage.PdfImage' 'cb.AddImage(TRFDocument.chkbox)' threw an exception of type 'System.Net.WebException' base {System.InvalidOperationException}: {"The operation has timed out"} Response: null Status: Timeout From: Afshan Raees
I have a queue of 76 documents that I am processing using iText. This means that I add a number of images to each one of the documents. This works fine for the first 4 of them and then the GetInstance times out. What could be causing this
problem? Thanks. Afshan This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or without error as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ |
|
|
Re: Image.GetInstance hangs after a few iterationsA timeout while reading from disk?
Paulo > -----Original Message----- > From: Afshan Raees [mailto:ARaees@...] > Sent: Tuesday, October 27, 2009 1:37 PM > To: Afshan Raees; itext-questions@... > Subject: Re: [iText-questions] Image.GetInstance hangs after > a few iterations > > The problem is also happening with AddImage. Here are the > contents of the some of the variables: cb(PdfContentByte > acquired from a PdfStamper), chkbox is the Image that is > added to each document: > > cb > > {q 10 0 0 10 30 275 cm} > > [iTextSharp.text.pdf.StampContent]: {q 10 0 0 10 30 275 cm} > > CharacterSpacing: 0.0 > > Duplicate: {} > > HorizontalScaling: 100.0 > > InternalBuffer: {q 10 0 0 10 30 275 cm} > > Leading: 0.0 > > PdfDocument: {iTextSharp.text.pdf.PdfDocument} > > PdfWriter: {iTextSharp.text.pdf.PdfStamperImp} > > RootOutline: null > > WordSpacing: 0.0 > > XTLM: 0.0 > > YTLM: 0.0 > > cb.InternalBuffer > > {q 10 0 0 10 30 275 cm} > > base {System.IO.Stream}: {q 10 0 0 10 30 275 cm} > > Buffer: {byte[128]} > > CanRead: false > > CanSeek: false > > CanWrite: true > > Length: 21 > > Position: 21 > > Size: 21 > > TRFDocument.chkbox > > {Rectangle: 10x10 (rot: 0 degrees)} > > [iTextSharp.text.Jpeg]: {Rectangle: 10x10 (rot: 0 degrees)} > > base {iTextSharp.text.Rectangle}: {Rectangle: 10x10 (rot: > 0 degrees)} > > AbsoluteX: 30.0 > > AbsoluteY: 275.0 > > Additional: null > > Alignment: 0 > > Alt: null > > Annotation: null > > Bpc: 8 > > Colorspace: 3 > > CompressionLevel: -1 > > Deflated: false > > DirectReference: null > > DpiX: 72 > > DpiY: 72 > > ImageMask: null > > IndentationLeft: 0.0 > > IndentationRight: 0.0 > > InitialRotation: 0.0 > > Interpolation: false > > Inverted: true > > Layer: null > > Matrix: {float[8]} > > MySerialId: 1 > > OriginalData: null > > OriginalType: 1 > > PlainHeight: 10.0 > > PlainWidth: 10.0 > > RawData: null > > ScaledHeight: 10.0 > > ScaledWidth: 10.0 > > Smask: false > > SpacingAfter: 0.0 > > SpacingBefore: 0.0 > > TagICC: {iTextSharp.text.pdf.ICC_Profile} > > TemplateData: null > > Transparency: null > > Type: 32 > > Url: {file:///C:/Program > Files/Metametrix/TRFPrintService2009/Chkbox.jpg} > > WidthPercentage: 100.0 > > XYRatio: 0.0 > > cb.AddImage(TRFDocument.chkbox) > > Step into: Stepping over non-user code > 'iTextSharp.text.pdf.PdfImage.PdfImage' > > 'cb.AddImage(TRFDocument.chkbox)' threw an exception of type > 'System.Net.WebException' > > base {System.InvalidOperationException}: {"The operation > has timed out"} > > Response: null > > Status: Timeout > > > > From: Afshan Raees > Sent: Tuesday, October 27, 2009 9:05 AM > To: 'itext-questions@...' > Subject: Image.GetInstance hangs after a few iterations > > > > I have a queue of 76 documents that I am processing using > iText. This means that I add a number of images to each one > of the documents. This works fine for the first 4 of them and > then the GetInstance times out. What could be causing this problem? > > > > Thanks. > > > > Afshan Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ |
| Free embeddable forum powered by Nabble | Forum Help |