HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Deployment / Configuration issues › Deploy in .net 2.0
- This topic has 5 replies, 2 voices, and was last updated Feb 17, 2010
17:23:50 by PD4ML.
-
AuthorPosts
-
February 17, 2010 at 16:44#26335
I downloaded the trial version for .NET pd4ml.pro.trial.dotnet20.351.
It is running fine when I debug it.
But after I deploy it to the server to let the manager decide if this is what we will purchase. It give error “The file is damaged and could not be repaired”.
Is this a license issue or something else?
If it is a license issue, how can I get the trial version in our server for a certain time, so the decision making people can review it?Thanks
February 17, 2010 at 16:52#27857This is most likely happening because there is some stray HTML being output after/before the PDF stream is getting created.
I would recommend to save PDF to the hard drive and to open it with a text editor. Make sure it starts with %PDF-1.4 and ends with %%EOF
February 17, 2010 at 17:00#27858It is running fine in my computer though.
Our application need to pop up this PDF report in the window, and let user to save it to their disks if they want to.
Below is the code I use to convet a html string to pdf:…
MemoryStream mstr = new MemoryStream(Encoding.ASCII.GetBytes(strHtml));
pd4ml.render(mstr, outfile);below is the value of strHtml in debug mode:
“rn rn
rn NON-CONFORMANCE RECORD rn
rn Status: rn
VOIDED rn
NCR #: rn
25 rn
rn Originator: rn
brant rn
Origin Date: rn
2/12/2010 rn
rn rn
Print Date: rn
2/17/2010 rn
rn Part Number: rn
01921231 BR FR 1/4X7/8LG rn
rn
rn NCR Quantity: rn
3.00 Advanced Deviation: rn
No Inspection Number: rn
rn
rn Document Type: rn
Purchase Order P/O,J/O,W/O#: rn
10004 rn
rn
rn Supplier or Work Center: rn
2419 HOGGE PRECISION PARTS rn
rn
rn Purchasing Agent: rn
JES rn
rn
rn
rn
rn
rn REASON FOR REJECTION rn
rn
rn
rn
rn
rn Reason Code(s): rn
rn
rn Drawing Specification: rn
d rn
rn Problem / Descrepancy: rn
d rn
rn Q / C Comments: rn
d rn
rn rn
rn
rn
rn
rn
rn MATERIAL DISPOSITION rn
rn
rn
rn
rn
rn Disposition Responsibility: rn
Engineering Disposition Code: rn
rn
rn Disposition By: rn
Disposition Date: rn
Rework/RMA#: rn
rn
rn Disposition Comments: rn
rn
rn Authorized By: rn
Authorized Date: rn
rn
rn
rn
rn
rn
rn DISTRIBUTION LIST rn
rn
rn
rn
rn
rn brant, Charity Clear, rn
rn
rn
“
February 17, 2010 at 17:20#27859Problem soved. Thanks a lot.
February 17, 2010 at 17:22#27860Could you please post the “outfile” content here or send it to support pd4ml com.
February 17, 2010 at 17:23 -
AuthorPosts
The forum ‘Deployment / Configuration issues’ is closed to new topics and replies.