pdfsharp

MigraDoc Bullet List (holes)

北慕城南 提交于 2020-01-02 03:54:05
问题 In my Solution I am using bullet list in PDF files. It looks something like that: • Solcellepaneler kræver hverken autoriseret service eller tidskrævende vedligehold. • Solceller er støjfri, forurener ikke og har ingen bevægelige dele, hvilket mindsker service og vedligehold • Solceller kan integreres i bygningers arkitektur eller anvendes som bygningselement i form af tag, facader eller solafskærmning • Solceller har lang levetid, med en produktionsgaranti på hele 25 år • 10 kvadrameter

PDFsharp add private/installed font

戏子无情 提交于 2019-12-30 10:35:32
问题 I want to apply Trade gothic font to my pdf text using PDFsharp, I have installed the font and use below line of code to apply XPdfFontOptions options = new XPdfFontOptions(PdfFontEncoding.Unicode, PdfFontEmbedding.Always); // var options = new XPdfFontOptions(PdfFontEmbedding.Always); XFont font = new XFont("TRADE GOTHIC BOLD CONDENSED NO. 20", 20, XFontStyle.Bold, options); But it does not work!!. Also I wanted to know in production I'm using Windows server 2008, is there a way I can

PDFsharp add private/installed font

ぐ巨炮叔叔 提交于 2019-12-30 10:35:20
问题 I want to apply Trade gothic font to my pdf text using PDFsharp, I have installed the font and use below line of code to apply XPdfFontOptions options = new XPdfFontOptions(PdfFontEncoding.Unicode, PdfFontEmbedding.Always); // var options = new XPdfFontOptions(PdfFontEmbedding.Always); XFont font = new XFont("TRADE GOTHIC BOLD CONDENSED NO. 20", 20, XFontStyle.Bold, options); But it does not work!!. Also I wanted to know in production I'm using Windows server 2008, is there a way I can

Alter PDF - Text repositioning

烂漫一生 提交于 2019-12-30 10:04:16
问题 Is there any way to shift / move the text inside existing pdf page to some other position ? Like there is some text at area x=100, y=100, w=100, h=100 and i want to move it to x=50, y=200, w=100, h=100. I did a lot of research and it seems iTextSharp cannot do that. PDFSharp claims that it can be done but i could not find any examples. One way is to make a bitmap of specific area of the text i want to shift, draw white rectangle over that area and insert bitmap at new location. I don't want

pdfsharp xfont OCR-B-10 BT works locally but not on server

随声附和 提交于 2019-12-25 15:54:09
问题 I use pdfsharp in my web app to create pdf documents. These documents need to have OCR-B-10 BT font. In the code i create a new font object as follows: XFont font = new XFont("OCR-B-10 BT", 13, XFontStyle.Regular); Now when i run the code on my work pc (windows 7), it works fine no problems there. However on my server (windows server 2008 standard), it creates documents using the default font. on both machines, i have ocrb10n_0.ttf installed in c:/windows/fonts. Any ideas why the default font

Formatting text using PDFsharp

≡放荡痞女 提交于 2019-12-25 11:35:56
问题 I want to apply style to string "Helloword" and have style properties like fontFamily='Verdana', fontStyle='bold', FontSize='12', textDecoration='underline', textAlign='center', fontColor='#FF0000', x=100 and y=100. I want to display this string in PDF using PDFsharp. can anyone suggest me how to do that? I'm using XFont and XGraphics.DrawString method but I'm not able to apply all above styles. 回答1: The string is slightly incorrect, but I hope all other requirements are met: // Create a font

Formatting text using PDFsharp

China☆狼群 提交于 2019-12-25 11:35:38
问题 I want to apply style to string "Helloword" and have style properties like fontFamily='Verdana', fontStyle='bold', FontSize='12', textDecoration='underline', textAlign='center', fontColor='#FF0000', x=100 and y=100. I want to display this string in PDF using PDFsharp. can anyone suggest me how to do that? I'm using XFont and XGraphics.DrawString method but I'm not able to apply all above styles. 回答1: The string is slightly incorrect, but I hope all other requirements are met: // Create a font

How can I do a find & replace using PDFSharp?

丶灬走出姿态 提交于 2019-12-25 04:39:07
问题 I have a PDF file with 3 static place holders that I need to replace. The place holders are using the following format: [item1ToReplace] [item2ToReplace] [item3ToRepalce] So my question is how can I read in the pdf, replace the values, and save a new pdf using PDFSharp, or a simliar opensource library? Target language is C# on 3.5 framework. Help is much appreciated. 回答1: it looks like the problem has been talked about a little here http://forums.asp.net/t/1408202.aspx they're using

Migradoc Image in paragraph line

≯℡__Kan透↙ 提交于 2019-12-25 04:04:17
问题 I have pdf cover page where i have 5 paragraph lines, and over for those 5 paragraph line i need to be able to add a logo picture, so it will looks something like this : Pragraph 1 First part of picture Pragraph 2 Second part of picture Pragraph 3 Third part of picture Pragraph 4 fourth part of picture Pragraph 5 fifth part of picture Any ideas? Right now if i create 5 lines and put a picture with wrapperformat set to through it just ends over or under paragraph lines. 回答1: Simply set the

Edit and render RichText

这一生的挚爱 提交于 2019-12-25 03:34:28
问题 We have an application (a custom network management tool for building automation) that supports printing labels that you can cut out and insert into the devices' front displays. In earlier versions of the tool (not developed in my company), the application just pushed the strings into an Excel file that the field technician could then manipulate (like formatting text). We didn't do this in the new version because it was hard (impossible) to keep the Excel file in sync, and to avoid a binding