Hi:
Hi Narendra,
Hi Aspose,
I have downloaded the latest version 8.9.1.0
However when I run we are getting following error message, we are having a license( Old one) and we are referring to that file. Can we have some kind of a temp license?
Error Message: The subscription included in this license allows free upgrades until 05 Jun 2013, but this version of the product was released on 14 Feb 2014. Please renew the subscription or use a previous version of the product.
Stack Trace:
|
Thanks & Regards,
Narendra B K
Hi Aspose,
We found a workaround for the license file and we worked on the items.
Please have a look at the following test which I gave and that is getting truncated when I use TWO SPACES after "-"
"mohamed - we are lookingoutofor test textwhich can be communica"
PDF Printing is as follows
mohamed - we ar
e lookingoutofor test textwhich can be
communica
Thanks & Regards,
Narendra B K
Hi Narendra,
Hi Narendra,
Thanks for contacting support.
In order to get a Temporary license, please following the instructions specified over Get a temporary license
Hi Support,
I have attached the sample files and files which we are using to generate the PDF files.
We have different forms and files shared are having all of the forms code with the common code.
We are having issues with "- " and ";" in these cases aspose is unable to indetify a single word and its breakig the word ubruptly
Thanks & Regards,
Narendra B K
Hi Narendra,
// new DOM approach<o:p></o:p>
Aspose.Pdf.Document doc = new Document();
doc.Pages.Add();
doc.Pages[1].Paragraphs.Add(new TextFragment("Manufactured on a modern- efficient chassis line and a state of the art cab line using robotic processes and with unmatched confort features, we have made every investment to ensure that the Chief delivers on quality, durability and reliability. We are confident of making significant headway in the fast - growing ABC market - with the new Chief,\" said Robert Gross, TY, Chuck Spencer. Specifically engineered to meet evolving customer expectations in the areas of performance, comfort and realiability, the Chief promises to make our customers more profitable by offering them a tailor-made product solution to meet ther needs and certainly will be a game-changer for them,\" he said."));
doc.Save("c:/pdftest/TextWrap.pdf");
// Aspose.Pdf.Generator approach
Aspose.Pdf.Generator.Pdf pdf = new Pdf();
pdf.Sections.Add().Paragraphs.Add(new Text("Manufactured on a modern- efficient chassis line and a state of the art cab line using robotic processes and with unmatched confort features, we have made every investment to ensure that the Chief delivers on quality, durability and reliability. We are confident of making significant headway in the fast - growing ABC market - with the new Chief,\" said Robert Gross, TY, Chuck Spencer. Specifically engineered to meet evolving customer expectations in the areas of performance, comfort and realiability, the Chief promises to make our customers more profitable by offering them a tailor-made product solution to meet ther needs and certainly will be a game-changer for them,\" he said."));
pdf.Save(“c:/pdftest/TextWrapGenerator.pdf”);
Hi Aspose,
Thanks for the quick reply, as you might have noticed in the sample file we are generating the PDF out of a web page. There are lot of tabs and each tab is having multple controls of multiple type. We have used generator so that we can push the html content in to Aspose and generate the PDF. Please notice the following code I will not be able to do something similar in Aspose.Pdf.Document? In that case we can proceed with Aspose.Pdf.Document, we considered that option initially but there were also performance issues with that. Please suggest.
Section 1#
Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
Aspose.Pdf.License IPALic = new Aspose.Pdf.License();
IPALic.SetLicense("Aspose.Pdf.lic");
IPALic.Embedded = true;
Aspose.Pdf.Generator.MarginInfo marginInfo = new Aspose.Pdf.Generator.MarginInfo();
marginInfo.Top = 5;
marginInfo.Bottom = 10;
marginInfo.Left = 10;
marginInfo.Right = 10;
sec1.PageInfo.Margin = marginInfo;
Aspose.Pdf.Generator.HeaderFooter hf1 = new Aspose.Pdf.Generator.HeaderFooter(sec1);
sec1.OddHeader = hf1;
sec1.EvenHeader = hf1;
Section 2# OR at one more place we have done alignment
Aspose.Pdf.Generator.Table tab1 = new Table();
hf1.Paragraphs.Add(tab1);
tab1.ColumnWidths = "275 275";
Aspose.Pdf.Generator.Row row1 = tab1.Rows.Add();
Aspose.Pdf.Generator.Cell cell1 = row1.Cells.Add();
Aspose.Pdf.Generator.Cell cell2 = row1.Cells.Add();
Aspose.Pdf.Generator.Text txtCandName = new Text("Candidate :" + candidate.CandidateName);
Aspose.Pdf.Generator.Text txtProposalStatus = new Text("Status :" + candidate.ProposalStatus);
cell1.Paragraphs.Add(txtCandName);
cell1.Alignment = AlignmentType.Left;
cell2.Paragraphs.Add(txtProposalStatus);
cell2.Alignment = AlignmentType.Right;
Section 3# Same items are considered for Footer creation
HeaderFooter footer = new HeaderFooter(sec1);
sec1.OddFooter = footer;
sec1.EvenFooter = footer;
Text t1 = new Text(footer, "Page: $p of $P");
Aspose.Pdf.Generator.Table tabFooter = new Table();
footer.Paragraphs.Add(tabFooter);
tabFooter.DefaultColumnWidth = "550";
Aspose.Pdf.Generator.Row footerRow = tabFooter.Rows.Add();
Aspose.Pdf.Generator.Cell footerCell = footerRow.Cells.Add();
footerCell.Alignment = AlignmentType.Center;
footerCell.Paragraphs.Add(t1);
footer.TextInfo.Alignment = AlignmentType.Center;
footer.Paragraphs.Add(t1);
Thanks & Regards,
Narendra B K
Hi Aspose Support,
Looks like we are not considering the ";" for which we have the same wrapping issue.
Issue is same that when I use "; " or "- " the word wrapping is incorrect.
Please check this one too, I have given reply to other item
Thanks & Regards,
Narendra B K
Narendra kallappa:Hi Aspose,
Thanks for the quick reply, as you might have noticed in the sample file we are generating the PDF out of a web page. There are lot of tabs and each tab is having multple controls of multiple type. We have used generator so that we can push the html content in to Aspose and generate the PDF. Please notice the following code I will not be able to do something similar in Aspose.Pdf.Document? In that case we can proceed with Aspose.Pdf.Document, we considered that option initially but there were also performance issues with that. Please suggest.
Section 1#
Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
Aspose.Pdf.License IPALic = new Aspose.Pdf.License();
IPALic.SetLicense("Aspose.Pdf.lic");
IPALic.Embedded = true;
Aspose.Pdf.Generator.MarginInfo marginInfo = new Aspose.Pdf.Generator.MarginInfo();
marginInfo.Top = 5;
marginInfo.Bottom = 10;
marginInfo.Left = 10;
marginInfo.Right = 10;
sec1.PageInfo.Margin = marginInfo;
Aspose.Pdf.Generator.HeaderFooter hf1 = new Aspose.Pdf.Generator.HeaderFooter(sec1);
sec1.OddHeader = hf1;
sec1.EvenHeader = hf1;
Section 2# OR at one more place we have done alignment
Aspose.Pdf.Generator.Table tab1 = new Table();
hf1.Paragraphs.Add(tab1);
tab1.ColumnWidths = "275 275";
Aspose.Pdf.Generator.Row row1 = tab1.Rows.Add();
Aspose.Pdf.Generator.Cell cell1 = row1.Cells.Add();
Aspose.Pdf.Generator.Cell cell2 = row1.Cells.Add();
Aspose.Pdf.Generator.Text txtCandName = new Text("Candidate :" + candidate.CandidateName);
Aspose.Pdf.Generator.Text txtProposalStatus = new Text("Status :" + candidate.ProposalStatus);
cell1.Paragraphs.Add(txtCandName);
cell1.Alignment = AlignmentType.Left;
cell2.Paragraphs.Add(txtProposalStatus);
cell2.Alignment = AlignmentType.Right;
Section 3# Same items are considered for Footer creation
HeaderFooter footer = new HeaderFooter(sec1);
sec1.OddFooter = footer;
sec1.EvenFooter = footer;
Text t1 = new Text(footer, "Page: $p of $P");
Aspose.Pdf.Generator.Table tabFooter = new Table();
footer.Paragraphs.Add(tabFooter);
tabFooter.DefaultColumnWidth = "550";
Aspose.Pdf.Generator.Row footerRow = tabFooter.Rows.Add();
Aspose.Pdf.Generator.Cell footerCell = footerRow.Cells.Add();
footerCell.Alignment = AlignmentType.Center;
footerCell.Paragraphs.Add(t1);
footer.TextInfo.Alignment = AlignmentType.Center;
footer.Paragraphs.Add(t1);
Thanks & Regards,
Narendra B K
The issues you have found earlier (filed as PDFNEWNET-35804) have been fixed in Aspose.Pdf for .NET 9.5.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(7)
Hi Narendra,