Click here to Skip to main content
15,560,045 members
Home / Discussions / C#
   

C#

 
GeneralRe: Entity Framework Core 6 Problem Pin
Dave Kreskowiak27-Nov-22 10:32
mveDave Kreskowiak27-Nov-22 10:32 
GeneralRe: Entity Framework Core 6 Problem Pin
Kevin Marois27-Nov-22 10:39
professionalKevin Marois27-Nov-22 10:39 
GeneralRe: Entity Framework Core 6 Problem Pin
Dave Kreskowiak26-Nov-22 12:40
mveDave Kreskowiak26-Nov-22 12:40 
GeneralRe: Entity Framework Core 6 Problem Pin
Kevin Marois26-Nov-22 12:50
professionalKevin Marois26-Nov-22 12:50 
AnswerRe: Entity Framework Core 6 Problem Pin
Sam Hobbs24-Nov-22 12:23
Sam Hobbs24-Nov-22 12:23 
GeneralRe: Entity Framework Core 6 Problem Pin
Kevin Marois24-Nov-22 13:22
professionalKevin Marois24-Nov-22 13:22 
QuestioniTextSharp to Append QRCode to an Existing PDF File Pin
Fezih523-Nov-22 22:27
Fezih523-Nov-22 22:27 
AnswerRe: iTextSharp to Append QRCode to an Existing PDF File Pin
Richard Deeming23-Nov-22 23:00
mveRichard Deeming23-Nov-22 23:00 
Fezih5 wrote:
C#
PdfWriter pdfWriter = PdfWriter.GetInstance(document, new FileStream(path + originalFileName, FileMode.Append));
That simply appends a brand new PDF file to the end of the original file. The result will not be a valid PDF file.

You need to read the existing PDF file into memory, and then modify it.

The documentation for the Java iText library, on which iTextSharp is based, has this example:
Chapter 5: Manipulating an existing PDF document[^]

Hopefully the libraries won't have diverged too much, so you should be able to work out how to translate that to the iTextSharp version.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

QuestionTriangles count in Graph Pin
Member 1177893019-Nov-22 16:20
Member 1177893019-Nov-22 16:20 
AnswerRe: Triangles count in Graph Pin
Dave Kreskowiak19-Nov-22 19:03
mveDave Kreskowiak19-Nov-22 19:03 
AnswerRe: Triangles count in Graph Pin
OriginalGriff19-Nov-22 21:20
mveOriginalGriff19-Nov-22 21:20 
AnswerRe: Triangles count in Graph Pin
Gerry Schmitz20-Nov-22 6:13
mveGerry Schmitz20-Nov-22 6:13 
QuestionDynamic table insert issue with dates Pin
Vijay Bhaskar Oct202217-Nov-22 7:32
Vijay Bhaskar Oct202217-Nov-22 7:32 
AnswerRe: Dynamic table insert issue with dates Pin
Slacker00717-Nov-22 7:46
professionalSlacker00717-Nov-22 7:46 
AnswerRe: Dynamic table insert issue with dates Pin
OriginalGriff17-Nov-22 9:40
mveOriginalGriff17-Nov-22 9:40 
AnswerRe: Dynamic table insert issue with dates Pin
Richard Deeming17-Nov-22 22:37
mveRichard Deeming17-Nov-22 22:37 
QuestionMicrosoft.Practices.Composite.Presentation.Events Pin
Kevin Marois16-Nov-22 13:14
professionalKevin Marois16-Nov-22 13:14 
AnswerRe: Microsoft.Practices.Composite.Presentation.Events Pin
Dave Kreskowiak16-Nov-22 13:49
mveDave Kreskowiak16-Nov-22 13:49 
AnswerRe: Microsoft.Practices.Composite.Presentation.Events Pin
Richard Deeming16-Nov-22 22:31
mveRichard Deeming16-Nov-22 22:31 
QuestionI'm getting error code CS1001. And I'm not sure how to diagnose the problem. Pin
Rakos4613-Nov-22 11:46
Rakos4613-Nov-22 11:46 
AnswerRe: I'm getting error code CS1001. And I'm not sure how to diagnose the problem. Pin
Mycroft Holmes13-Nov-22 12:06
professionalMycroft Holmes13-Nov-22 12:06 
AnswerRe: I'm getting error code CS1001. And I'm not sure how to diagnose the problem. Pin
OriginalGriff13-Nov-22 19:53
mveOriginalGriff13-Nov-22 19:53 
AnswerRe: I'm getting error code CS1001. And I'm not sure how to diagnose the problem. Pin
Calin Negru14-Nov-22 4:28
Calin Negru14-Nov-22 4:28 
AnswerRe: I'm getting error code CS1001. And I'm not sure how to diagnose the problem. Pin
Victor Nijegorodov14-Nov-22 4:40
Victor Nijegorodov14-Nov-22 4:40 
QuestionMy Code gets stuck at MessageBox.Show() after pressing OK it does not move further. Pin
Radheya Patil9-Nov-22 18:45
Radheya Patil9-Nov-22 18:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.