Hy
I am using ITextSharp to parse a PDF file to output text. I want to know if I can catch if the PDF supports index or superscript, does anyone know how to make the difference between normal character and superscript in pdf using ITextSharp or another library?
thank
Disclaimer: I actually have no evidence, but ...
, / . , . , , / - , , PDF.
, , / : , " " . , , PDF ITextSharp, "" .
. PDF , / PDF, . ( ). :
//input -> curText if(curText.Baseline > previousText.Baseline && curText.Baseline < (prevText.Baseline + prevText.Height)) { // This is most likely superscript // } else if(curText.Baseline < previousText.Baseline && prevText.Baseline < (curText.Baseline + curText.Height)) { // This is most likely subscript // } else { // This is probably normal text // }
, PDF. List < > , y . - , , , .
Source: https://habr.com/ru/post/1787697/More articles:Amazon S3 Upload What Key does - amazon-s3Можно ли очистить URL-адреса в чистом решении ColdFusion? - coldfusionAdditional input fields in AmazonS3 Direct Upload POST Form - amazon-s3Does XSD have good practice when passing XML marshalled objects over wiring? - xmlHow to force fixed length Delphi strings to use wide characters? - delphiпредставление viewController после контакта было выбрано в peoplePickerNavigationController? - iphoneJson вернул мой HTMLв форме unicode\u003cbr/\ u003e. Причинениенапечатано как текст, а не создание новой строки - jqueryInsert data into rails - ruby-on-railsHow can I present a modal view controller after selecting a contact? - iphoneОбъединение подразделений Subversion - svnAll Articles