I am using Spire.PDF for .NET to create a pdf file and I am doing the following - take the user input from a field in a webform; this input is normally a numbered list of items as shown here
In the PDF template that will be filled out by my application, there is a multiline text field that will get the text entered by the user as you see above.
Here is how that field looks in the PDF template:
Is it possible to have a number of lines in the target PDF created depending on the number of items in the numbered list entered by the user ? Like in the given example, have 3 lines, each item on its own line, like here:
This would obviously then need to move down other items/artefacts that come after in the PDF automatically (if this list gets significantly longer). Is this possible with this library?
Related
I have an excel file containing MANY names column and many links column, i need to create directories and text files inside them based on the excel column *. text files filled with same text inside them
Lets say i have an excel file containing column:banana,apple
The output would be Banana directory,apple directory.
Inside apple directory apple.text,inside banana directory a file called banana.text.
Inside the text files banana.text and apple.text i would like to have the same specific text WITH the links as variable inside banana.txt the same text with the apropriate link to banana in the paralel link's column and for apple.text same specific text with the appropriate link to apple in the apple link's column pls .
lets saythe text inside apple.text will looks like:
hello and nice to meet u http://apple.com
lets saythe text inside banana.text will looks like:
hello and nice to meet u http://banana.com
same words in each file just the link will be changing.
I EDITED THE QUESTION.
I think there steps needs for you.
first, automated Exccel.
https://support.microsoft.com/en-us/help/302084/how-to-automate-microsoft-excel-from-microsoft-visual-c--net
find URLs.
There is many ways for that. I recommended using Regular Expression.
find Keyword.
in URL, remove http protocal related keywords.
i have a txt file with format
10000025|246|31032017|00|0|0.00|0.00|0.00|0.00|0|0.00|0.00|0.00|0.00|0.00|0.00|0.00|R
10000025|246|31032017|01|0|0.00|0.00|0.00|0.00|0|0.00|0.00|0.00|0.00|0.00|0.00|0.00|R
10000025|246|31032017|02|0|0.00|0.00|0.00|0.00|0|0.00|0.00|0.00|0.00|0.00|0.00|0.00|R
10000025|246|31032017|03|0|0.00|0.00|0.00|0.00|0|0.00|0.00|0.00|0.00|0.00|0.00|0.00|R
i want import to access database using C# code
If someone has a clue about how to perform something like this, i would be grateful !
I dont think there is any need to use c# sort of thing in this scenario. You can accomplish this task by using an excel sheet. Copy the whole txt file and paste it into the excel sheet, once done Select the header of the cell in which you copied the text (Lets say 'A'). Now in the top menu navigate to Data Tab and select "Text to Columns". A dialogue will appear where you can select Delimited (which is default selection) and click next there you will find the delimiters section where you can specify your delimiter like comma, semi colon, etc. In your case the separator is pipe character '|' so you can specify the pipe character in a text box given in the delimiter list.
Once done click next and finish you will get the data in a column and row form exactly what you were looking for now you can import the data to sql, access or to what ever you want take a look at this Link to know how to import data from excel to access
I am attaching following screen shots
Picture of text data being copied in excelwith header selected
Screen shot of delimiter screen where you will specify the pipe character
I have generated the report in PDF format that compares two .DAT files and it works fine and it highlights entire rows which have differences. But now I want to highlight specific change.
Is there anyway that compares the text from pdf and highlights the differences between it???
This is the comparison in listview
This is the comparision in pdf file which highlight entire row but now I want to highlight specific change
I think you have to try character comparison,but not directly,i have done string comparison but using the replace and to lowercase method,i.e first replace space with "",and lower the strings,then you can go for character comparison,then only result would not be weird.
I'm just facing a problem in fetching the data from a PDF file using C#.
Please have a look at the image below,
In the above image i'll pass the parameter value as "Customre Name"(The text in blue color).
Once i find that perticular text in the PDF file then i need to fetch related information of that "Customer Name".
I need the values like "See Data" and the text which is inside the Box.
I'm successfully fetching the value "See Data" but I'm failing to fetch the text which is inside the box, because the text inside the box is of variable number of lines, it may be in single line or multi line like 2, 3, 4 lines.
So for I'm trying in this way,
I fetch the data of a pdf file using iTextSharp, and I'll store the data of that page into line by line manner, in the line where I find "Customer Name" i'll add 1+ and i'll fetch the "See Data" Value then while fetching the value in the text box i don't know how many lines it will be and failed to do so.
So can any one of you help me in fetching the value of that text box.
Please let me know if you confused with my question.
Thanking you in advance,
Dada.
I am merging multiple PDF files using iTextSharp, but I need to re-number the pages by section. For example, I am merging a PDF file that corresponds to the cover of a book, with a PDF file that has the actual content of the book. I want to use I,II,III numbering system for the cover, then use 1,2,3 numbering for the content, so that when the user enters page number 9 in the navigation box, it'll take him/her to the corresponding page in the content.
In Adobe Acrobat, this can be done by selecting the pages and clicking on Number Pages. I would like to do the same but using c# code. Thanks!
This is a short snippet with the relevant lines you'll need:
var labels = new PdfPageLabels();
labels.AddPageLabel(sectionPageNumber, pageNumberingStyle, customText, startingNumber);
.
.
.
pdfWriter.PageLabels = labels;
In this snippet:
sectionPageNumber is the page number where the section starts,
pageNumberingStyle is a value such as PdfPageLabels.UPPERCASE_ROMAN_NUMERALS, PdfPageLabels.DECIMAL_ARABIC_NUMERALS, etc.
customText is any text that needs to go with the page number, and
startingNumber is the page number that this numbering style would start.