You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, is there any functionality in pdfpig that i can use to make this string wrap around to the next line on this pdf with margin?
Is there anyway I can use a pdfrectangle instead of the pdfpoint to show how much of a rectangle the text should fill out?
Any help would be greatly appreciated.
This is my C# code:
var page = builder.AddPage(UglyToad.PdfPig.Content.PageSize.A4, true);
var imgX = 70; // Convert.ToInt32(ConfigurationManager.AppSettings["imgX"]);//cmToPdfUnits(2.5); //70.867
var imgY = 680; // Convert.ToInt32(ConfigurationManager.AppSettings["imgY"]);//cmToPdfUnits(14); //396.85
var imgWidth = 523; // Convert.ToInt32(ConfigurationManager.AppSettings["imgWidth"]);//cmToPdfUnits(16); //453.54
var imgHeight = 780; // Convert.ToInt32(ConfigurationManager.AppSettings["imgHeight"]);//cmToPdfUnits(12); //340.16
page.AddJpeg(imgstream, new PdfRectangle(imgX, imgY, imgWidth, imgHeight));
PdfDocumentBuilder.AddedFont font = builder.AddStandard14Font(Standard14Font.TimesRoman);
string displaytext = "Important Update Regarding the Workday Deployment";
page.AddText(displaytext, 24, new PdfPoint(70, 550), font);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, is there any functionality in pdfpig that i can use to make this string wrap around to the next line on this pdf with margin?
Is there anyway I can use a pdfrectangle instead of the pdfpoint to show how much of a rectangle the text should fill out?
Any help would be greatly appreciated.
This is my C# code:
Beta Was this translation helpful? Give feedback.
All reactions