У меня проблема с полировальным символом с помощью itextSharp. Я хочу создать PDF-файл из html. Все работает нормально, но полированный символ отсутствует. Я использую функцию lower:
private void createPDF(string html)
{
//MemoryStream msOutput = new MemoryStream();
TextReader reader = new StringReader(html);// step 1: creation of a document-object
Document document = new Document(PageSize.A4, 30, 30, 30, 30);
// step 2:
// we create a writer that listens to the document
// and directs a XML-stream to a file
PdfWriter writer = PdfWriter.GetInstance(document, new FileStream("Test.pdf", FileMode.Create));
// step 3: we create a worker parse the document
HTMLWorker worker = new HTMLWorker(document);
// step 4: we open document and start the worker on the document
document.Open();
worker.StartDocument();
// step 5: parse the html into the document
worker.Parse(reader);
// step 6: close the document and the worker
worker.EndDocument();
worker.Close();
document.Close();
}
И попробуйте использовать его:
createPDF ("ĄąćęĘłŁŃńóÓŚśŹźŻż");
Я пытаюсь установить: SelectedValue SelectedValuePath Все эти свойства зависимостей определены в классе Selector. Я часто путаю SelectedItem с ...
В чем разница между следующим:
Все эти свойства зависимостей определены в классе Selector . Я часто путаю SelectedItem
с SelectedValue
и SelectedValue
с SelectedValuePath
.
Я хотел бы узнать разницу между ними, а также когда мы их используем, особенно SelectedValue
и SelectedValuePath
. Пожалуйста, объясните их использование на нескольких простых примерах.