Answered by:
add line iTextSharp + HTML

Question
-
I'm using iTextSharp to generate PDF through HTML, though, when you add the <hr>, does not show a line in my PDF, would someone help me?
following code below:string codeHtml4 = "<br /><hr /><hr /><span style='display:inline-block;width:210px;'>Name: </span><span style='display:inline-block;color:Black;background-color:Transparent;font-weight:bold;width:350px; font-size: 10px; font-size: 10px;'>" + name.Text + "</span><br />"; Document pdf = new Document(PageSize.A4, 80, 50, 30, 65); PdfWriter.GetInstance(pdf, new FileStream(file, FileMode.Create)); StringReader se = new StringReader(html); pdf.Open(); obj.Parse(se); pdf.Close();
- Moved by Neddy Ren Friday, January 21, 2011 3:28 AM third party support (From:Visual C# Language)
Wednesday, January 19, 2011 4:44 PM
Answers
-
You probably want to visit the itext mail lists. itext experts are not going to enroll every language forum to hunt down itext questions.
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- Proposed as answer by Neddy Ren Friday, January 21, 2011 3:19 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Tuesday, December 27, 2011 11:33 PM
Wednesday, January 19, 2011 11:43 PM -
Hi Caio Gomes:
Welcome to the MSDN Forum.
Based on the information and explanation above, your question is about itextsharp. Hence I believe that the best answer to this question is to contact <http://sourceforge.net/projects/itextsharp/support>.
If you have any questions in C#, please feel free to tell us.
Thank you for understanding.
Best Regards
Please remember to mark the replies as answers if they help and unmark them if they provide no help. Welcome to the C# Forum! If you have any feedback, please tell us.- Proposed as answer by Ed Price - MSFTMicrosoft employee Tuesday, December 27, 2011 11:32 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Tuesday, December 27, 2011 11:33 PM
Friday, January 21, 2011 3:27 AM
All replies
-
Hi Ciao,
What do you mean when you say that the header does not show up? I think if you want to add a header, you would need to put something between the tags like this:
<hr>My Header</hr>
If you want to have another empty line in your PDF, use <br/> instead of <hr/>. Is this what you were looking for?
All the best,
Roger
Wednesday, January 19, 2011 6:37 PM -
Roger,
tentei colocar entre tags mas, não foi gerada nenhuma linha em meu PDF, mostrou apenas o texto, ou seja, eu tenho as tags <HR> mas não mostra as linhas,Wednesday, January 19, 2011 6:48 PM -
You probably want to visit the itext mail lists. itext experts are not going to enroll every language forum to hunt down itext questions.
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- Proposed as answer by Neddy Ren Friday, January 21, 2011 3:19 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Tuesday, December 27, 2011 11:33 PM
Wednesday, January 19, 2011 11:43 PM -
Hi Caio Gomes:
Welcome to the MSDN Forum.
Based on the information and explanation above, your question is about itextsharp. Hence I believe that the best answer to this question is to contact <http://sourceforge.net/projects/itextsharp/support>.
If you have any questions in C#, please feel free to tell us.
Thank you for understanding.
Best Regards
Please remember to mark the replies as answers if they help and unmark them if they provide no help. Welcome to the C# Forum! If you have any feedback, please tell us.- Proposed as answer by Ed Price - MSFTMicrosoft employee Tuesday, December 27, 2011 11:32 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Tuesday, December 27, 2011 11:33 PM
Friday, January 21, 2011 3:27 AM