Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Sep 23, 2015 11:39 am

Hi,

Can someone help me to solve this question?

I've used your code from the demo page

Code: Select all
string myDirectory = DCO.FileServerPath("XXX") + @"XXXX\eTicketReceipt\";

DirectoryInfo myDir = new DirectoryInfo(myDirectory + @"\XXXXXXXX\");
string myDirFullName = myDir.FullName;
string mySource = myDirFullName + "eTicket.html";
string myOutPut = myDirFullName + "eTicket.pdf";

PdfDocument pdf = new PdfDocument();
PdfHtmlLayoutFormat htmlLayoutFormat = new PdfHtmlLayoutFormat();
htmlLayoutFormat.IsWaiting = false;
PdfPageSettings setting = new PdfPageSettings();
setting.Size = PdfPageSize.A4;

string htmlCode = File.ReadAllText(mySource);
         
Thread thread = new Thread(() =>
{ pdf.LoadFromHTML(htmlCode, true, setting, htmlLayoutFormat); });
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();

pdf.SaveToFile(myOutPut);
System.Diagnostics.Process.Start(myOutPut);



It can work, I can create a PDF file, but the pdf file's content just only show a little.
I find the missing content is exist, just can't see, seems it's font color is transparent.


thanks

Nives
 
Posts: 2
Joined: Wed Sep 23, 2015 11:24 am

Thu Sep 24, 2015 2:13 am

Hello,

Thanks for your inquiry.
I have recreated your problem and posted it to our dev team. We will inform you when there is any update.
Welcome to write to us again for further problems.

Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Thu Sep 24, 2015 3:42 am

Hi,
Thank you for your reply!
Hope it can be solved.

Best Regards!

Nives
 
Posts: 2
Joined: Wed Sep 23, 2015 11:24 am

Thu Oct 29, 2015 5:56 am

Hi,

Thanks for waiting.
Your issue has been resolved. Welcome to download and test Spire.PDF Pack(Hot Fix) Version:3.5.143.
The downloading link is http://www.e-iceblue.com/Download/downl ... t-now.html.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Tue Nov 03, 2015 3:34 am

Hello,

Has your issue been resolved?
Thanks for your feedback.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF