2-Page pdf generats a pdf-file with warnings

View: New views
7 Messages — Rating Filter:   Alert me  

2-Page pdf generats a pdf-file with warnings

by itx_sx :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I create a pdf with c# an iTextSharp, and it works fine. But when the text will be to long and I need a second page the created pdf-File had some warnings. When I open it with Adobe Reader or Professional and I'am coming to the second side, it says "Errors on this side, maybe you will see it not accuratly".
I checked the file with preflight, but I don't know, what I can see there. The warnings are something with: "wrong content-stream for an operator" and the second i couldn't translate, something with "content stream analysis".

Did anyone know this problem? How can I fix this?

Regards,
itx_sx

Re: 2-Page pdf generats a pdf-file with warnings

by Paulo Soares-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Only you know what you are doing in the second page.

Paulo

> -----Original Message-----
> From: itx_sx [mailto:woellner@...]
> Sent: Wednesday, October 08, 2008 12:44 PM
> To: itextsharp-questions@...
> Subject: [itextsharp-questions] 2-Page pdf generats a
> pdf-file with warnings
>
>
> Hello,
>
> I create a pdf with c# an iTextSharp, and it works fine. But
> when the text
> will be to long and I need a second page the created pdf-File had some
> warnings. When I open it with Adobe Reader or Professional
> and I'am coming
> to the second side, it says "Errors on this side, maybe you
> will see it not
> accuratly".
> I checked the file with preflight, but I don't know, what I
> can see there.
> The warnings are something with: "wrong content-stream for an
> operator" and
> the second i couldn't translate, something with "content
> stream analysis".
>
> Did anyone know this problem? How can I fix this?
>
> Regards,
> itx_sx

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.



-------------------------------------------------------------------------
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 a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Re: 2-Page pdf generats a pdf-file with warnings

by itx_sx :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,


I think this is the part I had forgotten. I don't know, how many Textlines I will get and I have to set the text at explizit positions in the first part of the document, so that I couldn't use Paragraphs.

Document pdfPDB = new Document();
PdfWriter writer = PdfWriter.GetInstance(pdfPDB, new FileStream(PdfDatei, FileMode.Create));
PdfContentByte cb = writer.DirectContent;
 
iXwert = 570;
int iAbstand = 12;

foreach (cProjectMember cpmP in alPt)
{
     sText = cpmP.ToString() + "  [" + dcn.GetADLoginName(cpmP.Nachname, cpmP.Vorname) + "]";
     if (iXwert <= 70)
     {
          pdfPDB.NewPage();
          iXwert = 800;
     }
     cb.BeginText();
     cb.SetFontAndSize(bf, 10);
     iXwert -= iAbstand;  
     cb.SetTextMatrix(65, iXwert);                        
     cb.ShowText(sText);
     cb.EndText();
}


Bye itx_sx

Re: 2-Page pdf generats a pdf-file with warnings

by Paulo Soares-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't see anything wrong with the code. Please post the PDF or send it privately to me if you can't post it to the mailing list.

Paulo

> -----Original Message-----
> From: itx_sx [mailto:woellner@...]
> Sent: Thursday, October 09, 2008 10:46 AM
> To: itextsharp-questions@...
> Subject: Re: [itextsharp-questions] 2-Page pdf generats a
> pdf-file with warnings
>
>
> Hi,
>
>
> I think this is the part I had forgotten. I don't know, how
> many Textlines I
> will get and I have to set the text at explizit positions in
> the first part
> of the document, so that I couldn't use Paragraphs.
>
> Document pdfPDB = new Document();
> PdfWriter writer = PdfWriter.GetInstance(pdfPDB, new
> FileStream(PdfDatei,
> FileMode.Create));
> PdfContentByte cb = writer.DirectContent;
>  
> iXwert = 570;
> int iAbstand = 12;
>
> foreach (cProjectMember cpmP in alPt)
> {
>      sText = cpmP.ToString() + "  [" +
> dcn.GetADLoginName(cpmP.Nachname,
> cpmP.Vorname) + "]";
>      if (iXwert <= 70)
>      {
>           pdfPDB.NewPage();
>           iXwert = 800;
>      }
>      cb.BeginText();
>      cb.SetFontAndSize(bf, 10);
>      iXwert -= iAbstand;  
>      cb.SetTextMatrix(65, iXwert);                        
>      cb.ShowText(sText);
>      cb.EndText();
> }
>
>
> Bye itx_sx

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.



-------------------------------------------------------------------------
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 a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Re: 2-Page pdf generats a pdf-file with warnings

by Paulo Soares-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem is that you have somewhere in your code:

cb.BeginText();
cb.BeginText();

Remove one of them and it will work.

Paulo

> -----Original Message-----
> From: Paulo Soares [mailto:psoares@...]
> Sent: Thursday, October 09, 2008 12:03 PM
> To: Post all your questions about iTextSharp here
> Subject: Re: [itextsharp-questions] 2-Page pdf generats a
> pdf-file with warnings
>
> I don't see anything wrong with the code. Please post the PDF
> or send it privately to me if you can't post it to the mailing list.
>
> Paulo
>
> > -----Original Message-----
> > From: itx_sx [mailto:woellner@...]
> > Sent: Thursday, October 09, 2008 10:46 AM
> > To: itextsharp-questions@...
> > Subject: Re: [itextsharp-questions] 2-Page pdf generats a
> > pdf-file with warnings
> >
> >
> > Hi,
> >
> >
> > I think this is the part I had forgotten. I don't know, how
> > many Textlines I
> > will get and I have to set the text at explizit positions in
> > the first part
> > of the document, so that I couldn't use Paragraphs.
> >
> > Document pdfPDB = new Document();
> > PdfWriter writer = PdfWriter.GetInstance(pdfPDB, new
> > FileStream(PdfDatei,
> > FileMode.Create));
> > PdfContentByte cb = writer.DirectContent;
> >  
> > iXwert = 570;
> > int iAbstand = 12;
> >
> > foreach (cProjectMember cpmP in alPt)
> > {
> >      sText = cpmP.ToString() + "  [" +
> > dcn.GetADLoginName(cpmP.Nachname,
> > cpmP.Vorname) + "]";
> >      if (iXwert <= 70)
> >      {
> >           pdfPDB.NewPage();
> >           iXwert = 800;
> >      }
> >      cb.BeginText();
> >      cb.SetFontAndSize(bf, 10);
> >      iXwert -= iAbstand;  
> >      cb.SetTextMatrix(65, iXwert);                        
> >      cb.ShowText(sText);
> >      cb.EndText();
> > }
> >
> >
> > Bye itx_sx

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.



-------------------------------------------------------------------------
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 a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

System.DllNotFoundException

by Desmond Madima :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi can any help to solve this error am connecting oracle using .net
Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) (Exception from HRESULT: 0x8007007e)

-----Original Message-----
From: itx_sx [mailto:woellner@...]
Sent: 09 October 2008 11:46 AM
To: itextsharp-questions@...
Subject: Re: [itextsharp-questions] 2-Page pdf generats a pdf-file with warnings


Hi,


I think this is the part I had forgotten. I don't know, how many Textlines I
will get and I have to set the text at explizit positions in the first part
of the document, so that I couldn't use Paragraphs.

Document pdfPDB = new Document();
PdfWriter writer = PdfWriter.GetInstance(pdfPDB, new FileStream(PdfDatei,
FileMode.Create));
PdfContentByte cb = writer.DirectContent;

iXwert = 570;
int iAbstand = 12;

foreach (cProjectMember cpmP in alPt)
{
     sText = cpmP.ToString() + "  [" + dcn.GetADLoginName(cpmP.Nachname,
cpmP.Vorname) + "]";
     if (iXwert <= 70)
     {
          pdfPDB.NewPage();
          iXwert = 800;
     }
     cb.BeginText();
     cb.SetFontAndSize(bf, 10);
     iXwert -= iAbstand;
     cb.SetTextMatrix(65, iXwert);
     cb.ShowText(sText);
     cb.EndText();
}


Bye itx_sx
--
View this message in context: http://www.nabble.com/2-Page-pdf-generats-a-pdf-file-with-warnings-tp19877117p19895594.html
Sent from the itextsharp-questions mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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 a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

This e-mail is sent on the terms and conditions that can be accessed by clicking on this link http://www.swisttech.com/email.htm or calling +27 21 8887920

-------------------------------------------------------------------------
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 a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Re: System.DllNotFoundException

by Ross Presser :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What could this possibly have to do with iText? Go ask an Oracle mailing list or forum.

On Fri, Oct 10, 2008 at 6:15 AM, Desmond Madima <Desmond.Madima@...> wrote:
Hi can any help to solve this error am connecting oracle using .net
Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) (Exception from HRESULT: 0x8007007e)



-------------------------------------------------------------------------
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 a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
LightInTheBox - Buy quality products at wholesale price!