Questions tagged [pdf-writer]
58 questions
0
votes
1 answer
Special characters on file path:. Slash symbol
I work with files. And use code like this:
PdfWriter.GetInstance(newFile, new FileStream(WebConfigurationManager.AppSettings["StorageFolder"] + "\\" + DateTime.Now.Year.ToString() + "\\fnp\\request_" + myVariable+ "_l" + confirmLevel.ToString() +…

Sara Murtuzayeva
- 60
- 1
- 6
0
votes
0 answers
Why does breaking out of a foreach loop cause complaint "Cannot access a closed Stream"?
Based on the suggestion in the comments here, I refactored my method to try to assign data to a MemoryStream outside of the iTextSharp.text.Document "using" (but within the MemoryStream using clause):
internal static HttpResponseMessage…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
0
votes
0 answers
can css class to added to PdfContentByte?
I am trying to show a bar code on the pdf file. There's a css class already created that converts a job number into a bar code. So is there a way to set the PdfContentByte to this css class?
Code:
using (MemoryStream ms = new MemoryStream())
…

user123456789
- 1,914
- 7
- 44
- 100
0
votes
1 answer
Unable to convert base64 string to pdf
Document document = new Document();
String b64Image = medikmResourceRequest.getResourceImage();
String fileName = resourceDir+"/"+medikmResourceRequest.getPhysicianId()+"/"+medikmResourceRequest.getName()+" "+ System.currentTimeMillis()…

Anukul Mittal
- 29
- 5
0
votes
0 answers
On adding multicolumn to document, last page takes full page even if column has 2 or 3 lines?
I am using PDFwriter to write document in C#. Which has a paragraph and then multicolumn section followed by next paragraph
MultiColumnText columns = new MultiColumnText();
columns.AddRegularColumns(20f, document.PageSize.Width - 20f, 4f,…

DS2020
- 279
- 1
- 4
- 20
0
votes
0 answers
Prevent text from wrapping when writing to PDF File
My project is suppose to read text from an excel file that has been converted to a PDF. Once the information is read, the code is suppose to take certain lines from the pdf excel sheet and write them to a PDF. The problem is that there is a long…

Cscience18
- 25
- 1
- 4
- 13
0
votes
0 answers
iTextSharp Pdfwriter document footer data is overlapped with document data
I'm printing a PDF document which contains multiple pages and every page must have a footer.But when i print the main body content of the document is printing on the footer area also. how to make the document to go to the new page just before the…

Kalyan Ganta
- 45
- 1
- 8
0
votes
0 answers
Converting Image into PDF
I have used itext(itextg-5.5.1.jar) Android library for converting image into PDF,for this purpose I have used below code snippet for convert the image into PDF. I can get the PDF but what problem I am facing is,It is not actually converting the…

Jamal
- 976
- 2
- 14
- 39
0
votes
3 answers
pdfwriter doesn't translate special characters
I have HTML file with an external CSS. I want to create PDF from the HTML file, but the endcoing doesn't work. HTML file works fine, but after transfering to PDF, some characters in PDF are missing. (čřě...) It happens even if I set the Charset in…

fatevil
- 47
- 1
- 10
0
votes
1 answer
How to add cell-padding or cell-spacing in ruby pdf-writer
I have seen an ocean of options in pdf-writer Simple-Table, but it doesn't seem to have the cell-spacing and cell-padding.
1) Is it implemented, did i miss it? If so, can you plz gimme a line of code.
2) If not implemented, is there any…

Satya Kalluri
- 5,148
- 4
- 28
- 37
0
votes
2 answers
Shrink HTML page and convert to A4 size pdf
Converting html page to pdf. When i convert the page to pdf, html page content is not fit in A4 page. I want whole html page to be converted as pdf without any content missing.
I am already having code that converts html to pdf
String…

Muthu
- 1,550
- 10
- 36
- 62
0
votes
1 answer
Export SQL data to PDF. Error : HtmlParser
I want to Export Sql Data to PDF file.
I used the following code.
I am Getting Error as HtmlParser.Parse(Doc, xmlReader);
The name 'HtmlParser' does not exist in the current context
using System;
using System.Data;
using System.Configuration;
using…

Rushikesh Korgaonkar
- 191
- 2
- 9
- 21
-1
votes
1 answer
extra pdf is downloading while exporting pdf in c# .net
while im exporting, one pdf is downloading in desired location but another extra pdf is downloading in downloads folder
How to stop downloading extra one pdf?
Response.ContentType = "application/pdf";
…
user4762012