Quantcast
Channel: Aspose.Pdf Product Family
Viewing all 3131 articles
Browse latest View live

Unable to construct Document class with attached, encrypted document

$
0
0
Attempting to construct the Document class with the attached "test (encrypted).pdf", an exception is raised that there are password issues with the file.

Text Wrapping issue in PDF table (using Aspose.Pdf.Generator namespace)

$
0
0

Hello,

I use Aspose.Pdf.Generator namespace to create PDF and faced the following problem when generating tables:
I use "Cell.IsWordWrapped" property for text wrapping.
If the text ends with the word of a single letter, the word does not wrap to the next line in a cell, but printed in the next cell.

I found a topic, according to which a similar problem has been fixed in version 8.6 for  Aspose.Pdf namespace: http://www.aspose.com/community/forums/thread/508721/text-wrapping-issue-in-pdf-table.aspx

Could it be fixed for the Aspose.Pdf.Generator namespace?

 

Best Regards,

Vasili.

PDF to tiff to an esigned PDF

$
0
0
Hi,

I am trying to use aspose.pdf to convert an esigned PDF to tiff. The problem is the signature comes up as a mirrored image and is almost on the top of the tiff instead of its original place in the PDF.

I am using the following code for the conversion(as available on the website)



        Dim pdfDocument As New Document("..\Pdftotiff\JiniRay.pdf")
        'Create Resolution object
        Dim resolution As New Resolution(600)

        'Create TiffSettings object
        Dim tiffSettings As New TiffSettings()
        tiffSettings.Compression = CompressionType.None
        tiffSettings.Depth = ColorDepth.Default
        tiffSettings.Shape = ShapeType.Portait

        tiffSettings.SkipBlankPages = False
     
        'Create TIFF device
        Dim tiffDevice As New TiffDevice(resolution, tiffSettings)

        'Convert a particular page and save the image to stream
        tiffDevice.Process(pdfDocument, "..\OutPut\output.tiff")

Please advice.

Thanks,
Biplab. 

This message was posted using Support2Forum.

Calculated form fields

$
0
0
I have an Acrobat pdf form that I want to use as a template.  This template has some calculated fields on it (see calculated tab in the properties of a form field in Acrobat Pro) that sets the value of the fields based on values from other fields on the page.  I want to know if, after using your product to update the form fields on the the template, will the calculated field have its value set (and formatted correctly based on the formating specified on the template for that field)?  We are converting an asp app to .net and are looking for a suitable replacement for the Adobe ActiveX FDF toolkit that currently use to do this stuff.

Images Not Showing in PDF

$
0
0
I am unable to get the image to render in the PDF output. I am using an explicit url, as I thought that would work, but it still doesn't produce any output. below is my code. Everything works except the image is not in the PDF output. The image appears if I point the image src to our development environment, but I have elevated permissions on that server. Do you need more than read permissions on that directory to be able to view the images?

Image in html:

<img src="http://portal.hcmlp.com/img/highland_logo_new.gif" />

C# to generate PDF:

Aspose.Pdf.License license = new Aspose.Pdf.License();
            license.SetLicense("Siepe.Portal.Web.Aspose.Pdf.lic");
            license.Embedded = true;

            string url = Request.Url.Scheme + System.Uri.SchemeDelimiter + Request.Url.Host + ":" + Request.Url.Port + "/Wires/Wire/Print/" + id;
            System.Net.HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
            request.Timeout = 3000;
            request.Credentials = System.Net.CredentialCache.DefaultCredentials;

            HttpWebResponse response = (HttpWebResponse)request.GetResponse();
            Encoding encoding = Encoding.GetEncoding(1252);
            StreamReader reader = new StreamReader(response.GetResponseStream(), encoding);

            Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();

            pdf.PageSetup.Margin.Left = pdf.PageSetup.Margin.Right = pdf.PageSetup.Margin.Bottom = pdf.PageSetup.Margin.Top = 5;
            pdf.CompressionLevel = 9;

            Aspose.Pdf.Generator.Section section = pdf.Sections.Add();
            section.TextInfo.FontName = "Helvetica";
            Aspose.Pdf.Generator.Text text2 = new Aspose.Pdf.Generator.Text(section, reader.ReadToEnd());

            text2.IsHtmlTagSupported = true;
            text2.IsFitToPage = true;


            section.Paragraphs.Add(text2);

            byte[] buffer = pdf.GetBuffer();
            return File(buffer, "application/pdf");

Throws exception converting when Html to Pdf for custom fonts

$
0
0
Hi I am trying to export HTML to PDF document. Sometimes HTML contain custom fonts that is not installed on the machine. In such case Aspose.Pdf throws exception. I have already set IsFontNotFoundExceptionThrown flag to false. I am using Aspose.Pdf version 8.8.0 Exception details: System.ApplicationException was unhandled by user code HResult=-2146232832 Message=The embedded font 'crisp' is not found. Make sure that you set correct path to the font file. Source=Aspose.Pdf StackTrace: at . . (String , Boolean , String , Exception ) at . . ( , String , String , Boolean , Boolean , Boolean , String , Boolean ) at . . (String , String , Boolean , Boolean , Boolean , String , Boolean ) at . . (TextInfo ) at . . (Text , Pdf ) at . . (Pdf , Section , Table , Row , Cell , Text , , , Boolean ) at . . (Pdf , Section , HeaderFooter , Table , Row , Cell , Text , , , Boolean ) at . . (Pdf , Section , Table , Row , Cell , , ) at . . (Pdf , Section , Table , Row , , ) at . . (Pdf doc, Section currentPart, HeaderFooter hf, Table table, assignInfo, useType, Boolean isFirst, & breakTableNextPart) at . . (Pdf , Section , ) at . . (Pdf ) at . . ( , Pdf ) at Aspose.Pdf.Generator.Pdf.Save(Stream stream) at HelpSTAR.BusinessRule.Core.clsRequestViewer.ExportRequestDetailsToPdf(Int32 requestId, Boolean publicMemoOnly, String excludedAuthors, String excludeTransactionTypes, hsSortDirection sortDirection, String whereClause, Int32 currentUserId) in c:\Development\HSSilverlight2012\BusinessRule\Core\clsRequestViewer.cs:line 1137 at HelpSTAR.Server.Factory.ServiceRequestFactory.ExportRequestDetailsToPdf(Int32 requestId, Boolean publicMemoOnly, String excludedAuthors, String excludeTransactionTypes, hsSortDirection sortDirection, String whereClause, Int32 currentUserId) in c:\Development\HSSilverlight2012\HelpSTAR.Server.Factory\ServiceRequestFactory.cs:line 5951 at HelpSTAR.Server.Services.LongTimeTransactionScopeService.ExportRequestDetailsToPdf(String userSessionKey, Int32 requestId, Boolean publicMemoOnly, String excludedAuthors, String excludeTransactionTypes, hsSortDirection sortDirection, String whereClause, Int32 currentUserId) in c:\Development\HSSilverlight2012\HelpSTAR.Server\Services\LongTimeTransactionScopeService.svc.cs:line 289 at SyncInvokeExportRequestDetailsToPdf(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) InnerException: System.ApplicationException HResult=-2146232832 Message=Font 'crisp' not found. Please make sure the customer font file is correctly set. Source=Aspose.Pdf StackTrace: at . . ( , String , String , Boolean ) at . . ( , String , String , Boolean , Boolean , Boolean , String , Boolean ) at . . ( , String , String , Boolean , Boolean , Boolean , String , Boolean ) InnerException: Thanks, Binoy

Converting XPS files to PDF

$
0
0
Hi,

I try to convert XPS files to PDF and I get this exception:
"System.ArgumentException : The ImagesSource /Documents/1/Resources/Images/PIX_0_0.wdp was not found".

I noticed that problem occurs when image files are split into pieces (PIX_0_0.wdp is a directory containing [0].piece [1].last.piece files).
It seems the problem occurs only with split files in "Image" folder.

Thank you for your help.

Content render outside the table when page break

$
0
0
Hi,

I am facing a issue when rendering html content in a table. Please use the below code to reproduce the problem. I attached car.jpg which used in the html and the result file BrokenLine.pdf for your reference. Put the car.jpg image under c:\temp\.

As you can see from the result file, in the first page, the bottom border of the table went through the last second line while the last line is shown outside the table.

What am I missing here?

Thanks.
Iris.


Aspose.Pdf.Generator.MarginInfo _defaultCellMargin = new Aspose.Pdf.Generator.MarginInfo();
            _defaultCellMargin.Top = 2;
            _defaultCellMargin.Left = 5;
            _defaultCellMargin.Right = 5;
            _defaultCellMargin.Bottom = 2;

            Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
            Aspose.Pdf.Generator.Section sec = pdf.Sections.Add();

            sec.PageInfo.Margin.Left = 20;
            sec.PageInfo.Margin.Right = 20;
            sec.PageInfo.Margin.Top = 30;
            sec.PageInfo.Margin.Bottom = 30;

            //Instantiate a table object
            Aspose.Pdf.Generator.Table tab = new Aspose.Pdf.Generator.Table();
            sec.Paragraphs.Add(tab);

            tab.Border = new Aspose.Pdf.Generator.BorderInfo((int)Aspose.Pdf.Generator.BorderSide.All, 0.1F, new Aspose.Pdf.Generator.Color("Black"));
            tab.Margin.Bottom = 10;

            int tabWidth = 555;
            int columnWidth = tabWidth / 2;
            tab.ColumnWidths = columnWidth.ToString() + " " + (tabWidth - columnWidth).ToString();

            //Create rows in the table and then cells in the rows
            Aspose.Pdf.Generator.Row rowTitle = tab.Rows.Add();
            rowTitle.FixedRowHeight = 35;
            rowTitle.DefaultRowCellPadding = _defaultCellMargin;
            rowTitle.VerticalAlignment = Aspose.Pdf.Generator.VerticalAlignmentType.Center;

            // set the background color for Row
            rowTitle.BackgroundColor = new Aspose.Pdf.Generator.Color("Gray");

            tab.DefaultCellBorder = new Aspose.Pdf.Generator.BorderInfo((int)Aspose.Pdf.Generator.BorderSide.All, 0.0F);
            Aspose.Pdf.Generator.TextInfo tiTitle = new Aspose.Pdf.Generator.TextInfo()
            {
                FontName = "Arial",
                FontSize = 10,
                IsTrueTypeFontBold = true,
                IsTrueTypeFontItalic = false,
                Color = new Aspose.Pdf.Generator.Color("Black")
            };
            Aspose.Pdf.Generator.Cell leftTitle = rowTitle.Cells.Add();
            leftTitle.Alignment = Aspose.Pdf.Generator.AlignmentType.Left;
            leftTitle.Paragraphs.Add(new Aspose.Pdf.Generator.Text("Testing Left", tiTitle));

            Aspose.Pdf.Generator.Cell rightTitle = rowTitle.Cells.Add();
            rightTitle.Alignment = Aspose.Pdf.Generator.AlignmentType.Left;
            rightTitle.Paragraphs.Add(new Aspose.Pdf.Generator.Text("Testing Right", tiTitle));

            Aspose.Pdf.Generator.Row contentRow = tab.Rows.Add();
            contentRow.DefaultRowCellPadding = _defaultCellMargin;
            Aspose.Pdf.Generator.Cell contentCell = contentRow.Cells.Add();
            contentCell.ColumnsSpan = 2;

            contentCell.Border = new Aspose.Pdf.Generator.BorderInfo()
            {
                Right = new Aspose.Pdf.Generator.GraphInfo() { LineWidth = 0.1F, Color = new Aspose.Pdf.Generator.Color("Black") },
                Left = new Aspose.Pdf.Generator.GraphInfo() { LineWidth = 0.1F, Color = new Aspose.Pdf.Generator.Color("Black") },
                Bottom = new Aspose.Pdf.Generator.GraphInfo() { LineWidth = 0.1F, Color = new Aspose.Pdf.Generator.Color("Black") },
                Top = new Aspose.Pdf.Generator.GraphInfo() { LineWidth = 0.0F, Color = new Aspose.Pdf.Generator.Color("Black") }
            };


            string txt = "<font size=\"1\"><html>\r   \r   <body>\r <p><strong>Test Image</strong></p>\r <p> </p>\r <p><img src=\"c:\\temp\\car.jpg\" alt=\"\" /></p>\r <p> </p>\r <p> </p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">SQL Server 2008 (formerly codenamed \"Katmai\") [11][12] was released on August 6, 2008[13] and aims to make data management self-tuning, self organizing, and self maintaining with the development of SQL</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">Server Always On technologies, to provide near-zero downtime. SQL Server 2008 also includes support for structured and semi-structured data, including digital media formats for pictures, audio, video and other</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">multimedia data. In current versions, such multimedia data can be stored as BLOBs (binary large objects), but they are generic bitstreams. Intrinsic awareness of multimedia data will allow specialized functions to</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">be performed on them. According to Paul Flessner, senior Vice President, Server Applications, Microsoft Corp., SQL Server 2008 can be a data storage backend for different varieties of data: XML, email,</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">time/calendar, file, document, spatial, etc as well as perform search, query, analysis, sharing, and synchronization across all data types.[12]</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">Other new data types include specialized date and time types and a Spatial data type for location-dependent data.[14] Better support for unstructured and semi-structured data is provided using the new</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">FILESTREAM[15] data type, which can be used to reference any file stored on the file system.[16] Structured data and metadata about the file is stored in SQL Server database, whereas the unstructured</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">component is stored in the file system. Such files can be accessed both via Win32 file handling APIs as well as via SQL Server using T-SQL; doing the latter accesses the file data as a BLOB. Backing up and</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">restoring the database backs up or restores the referenced files as well.[17] SQL Server 2008 also natively supports hierarchical data, and includes T-SQL constructs to directly deal with them, without using</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">recursive queries.[17]</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">The Full-text search functionality has been integrated with the database engine. According to a Microsoft technical article, this simplifies management and improves performance.[18]</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">Spatial data will be stored in two types. A \"Flat Earth\" (GEOMETRY or planar) data type represents geospatial data which has been projected from its native, spherical, coordinate system into a plane. A \"Round</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">Earth\" data type (GEOGRAPHY) uses an ellipsoidal model in which the Earth is defined as a single continuous entity which does not suffer from the singularities such as the international dateline, poles, or map</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">projection zone \"edges\". Approximately 70 methods are available to represent spatial operations for the Open Geospatial Consortium Simple Features for SQL, Version 1.1.[19]</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">SQL Server includes better compression features, which also helps in improving scalability.[20] It enhanced the indexing algorithms and introduced the notion of filtered indexes. It also includes Resource Governor</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">that allows reserving resources for certain users or workflows. It also includes capabilities for transparent encryption of data (TDE) as well as compression of backups.[15] SQL Server 2008 supports the ADO.NET</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">Entity Framework and the reporting tools, replication, and data definition will be built around the Entity Data Model.[21] SQL Server Reporting Services will gain charting capabilities from the integration of the</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">data visualization products from Dundas Data Visualization, Inc., which was acquired by Microsoft.[22] On the management side, SQL Server 2008 includes the Declarative Management Framework which allows</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">configuring policies and constraints, on the entire database or certain tables, declaratively.[14] The version of SQL Server Management Studio included with SQL Server 2008 supports IntelliSense for SQL queries</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">against a SQL Server 2008 Database Engine.[23] SQL Server 2008 also makes the databases available via Windows PowerShell providers and management functionality available as Cmdlets, so that the server</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">and all the running instances can be managed from Windows PowerShell.[24]</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">----------</span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\"> </span></p>\r <p><span style=\"font-size: 10pt; font-family: arial, helvetica, sans-serif;\">  </span></p>\r </body>\r   </html></font>";

            Aspose.Pdf.Generator.Table tabContent = new Aspose.Pdf.Generator.Table();
            tab.DefaultCellPadding = _defaultCellMargin;

            contentCell.Paragraphs.Add(tabContent);
            int tableWidth = 545;

            tabContent.ColumnWidths = tableWidth.ToString();
            Aspose.Pdf.Generator.Row row1 = tabContent.Rows.Add();
            Aspose.Pdf.Generator.Cell cell1 = row1.Cells.Add();
            Aspose.Pdf.Generator.Text htmlTxt = new Aspose.Pdf.Generator.Text(txt);
            htmlTxt.IsHtmlTagSupported = true;
            cell1.Paragraphs.Add(htmlTxt);

            pdf.Save(@"C:\temp\BrokenLine.pdf");

Multiple Form fields from Textboxes

$
0
0

Hi All,

I have just purchased Aspose.PDF. I am using VB.net and am starting to get my head around Aspose.    I have managed to write a VB.net piece of code to have Aspose.PDF replace a textbox (textbox1 with a formfield). 

 Now I am attempting to have Aspose replace multiple text boxes (textbox1, textbox2, ... textbox_20) with form fields via a loop in the code.  I am including a copy of the PDF (TestAccountsInput.PDF) which contains three textboxes (in red).  In case it helps I am also including the VB code wherein the top section works fine and allows me to replace a named textbox with a formfield, and the bottom section where I am trying to figure out how to get a loop to work and replace a number of textboxes.

In case it makes any difference I am using an application to scroll through a database,  extract the various amounts shown in the demo, and then via a call to Crystal Reports create the static data PDF file.  Once created I need to call the Aspose.PDF classes to insert the form fields.

Thanks for the assist

Yours

Michael O'Rourke

 

ImageStamps on new PDF Files -&gt; Doesnt work

$
0
0
Hi! 
When I create multiple PDF pages, it is not possible to set a previously defined content in a new PDF File page.
I have big performance problems with Aspose.Pdf, so I have to split my PDF files into several small files first, in order afterwards to reunite them into one.
I have used the following code:

- Init Aspose.Pdf.ImageStamps with open streams
- Add elements on every pdf pages
- create new pdf files and add existing ImageStamps as initialized bevore (doesnt work, i have to reinit the ImageStamps! -> performance problems, is there any other way? )

(i have attached my source code to this post)


...is it possible to initialize the contents of the Image stamps only once? Otherwise, I get even more performance problems than I already have anyway.

Kind regards
Sebastian

All the checkboxes are not available through enumeration of Aspose.Pdf.Document.Form

$
0
0
I am trying to enumerate all the Fields (Textboxes, Checkboxes) in the attached PDF document. The "MARRIED (one income)" and "HEAD OF HOUSEHOLD" checkboxes under Filing Status Withholding Allowances are not available via the following code:

var pdfDoc = new Document(pdfFile);
foreach (Aspose.Pdf.InteractiveFeatures.Forms.Field field in pdfDoc.Form)
{
Console.WriteLine(field.FullName);
}

How do I access those two checkboxes?

PDF file is converting to tiff as blank images

$
0
0
Hi,

I am using Aspose.pdf.dll v8.4.1.0

But i am not able to convert the attached pdf to tiff images.

Converted tiff image is showing as blank image.
Can you please help me?

Regards
Anish

Portfolio funtionality on Linux

$
0
0
Hi Tilal,

Has this issue been fixed? We are facing a similar problem in Aspose PDF for Java 4.5 for PDFPortfolio functionality. It works as expected when we run it in Windows environment. However, when we deploy the same code in Ubuntu Linux 10.04, null pointer exception is thrown at doc.save() line. Appreciate your response.

Thank you,
Ashok

Code snippet attached below for reference:

    com.aspose.pdf.Document doc = new com.aspose.pdf.Document();
doc.setCollection(new com.aspose.pdf.Collection());
String fileName="";
String out_file="";
try {
for (int i=0; i<key.size();i++)
{
fileName = dir_name + "rmp_fellows_" + i + ".pdf";
ReadPdfFromUrl(key.get(i), fileName);
File f = new File(fileName);
System.out.println("f.exists()  - " + f.exists());
com.aspose.pdf.FileSpecification pdf = new com.aspose.pdf.FileSpecification(fileName);
pdf.setDescription("Pdf File"+i);
doc.getCollection().add(pdf);
}
out_file = new java.util.Date().getTime()+ ".pdf";
System.out.println("# of pages :" + doc.getPages().size());

doc.save(out_dir_name+out_file);
System.out.println("Portfolio saved in " +  out_file); 


Exception:
java.lang.NullPointerException
        at com.aspose.g.h.a(Unknown Source)
        at com.aspose.pdf.ADocument.preSave(Unknown Source)
        at com.aspose.pdf.ADocument.saveInternal(Unknown Source)
        at com.aspose.pdf.Document.saveInternal(Unknown Source)
        at com.aspose.pdf.ADocument.save(Unknown Source)
        at com.aspose.pdf.Document.save(Unknown Source)
        at org.ieee.pdfportfolio.PDFPortfolioResource.getKeys(PDFPortfolioResource.java:78)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
        at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
        at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
        at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
        at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
        at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
        at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)


horizontal line placement that work in 5.2 is misplaced in 7.9

$
0
0
A few months back we upgraded from Aspose.PDF.5.2 to Aspose.PDF.7.9 to fix a problem we were having with word wrapping.  

Recently a customer reported that horizontal placement is correct towards the bottom of the page and progressively gets worse as you go up the page.  Our code has not changed (except to adopt namespace changes between the two versions).   We reproduced the customers problem in 7.9 and were not able to reproduce it in 5.2.


ASPOSE PDF .net system.outofmemoryexception

$
0
0
Hi, I have latest version of Aspose PDF .net (v8.8). When I run product samples search text in PDF which is console application same file no error(SearchAndGetTextFromAllPagesOfPDF), But when I run into Windows Form application, I get system.outofmemoryexception error or memory getting large as 1.2 GB for 4MB PDF files. This is emergency. We purchase your product in last week. I need to find solution before Friday night. Thanks.

Fill out form then stream to the browser

$
0
0
Hello,

I am evaluating the trial version of Aspos.pdf and am having a bit of trouble. I would like to read in a pdf template file, fill out the form fields then stream the filled out pdf to the browser. Here is what I have so far based on another post:


Dim formfilename As String = "creditapp4.pdf"
Dim FormPath As String = Server.MapPath("~/CreditApp/PDFs/" + formfilename)

Dim fs As FileStream = File.OpenRead(FormPath)
Dim pdfForm As New Aspose.Pdf.Facades.Form(fs)

'FillPDFForm(pdfForm)
pdfForm.FillField("Company_Info", "XYZ Chevrolet")

Dim ms As New MemoryStream()
pdfForm.Save(ms)

fs.Close()

Response.Clear()
Response.ClearHeaders()
Response.ClearContent()
Response.Charset = "UTF-8"
Response.AddHeader("Content-Length", ms.Length.ToString())
Response.AddHeader("content-disposition", "inline; filename=" + "CreditApp.pdf")
Response.ContentType = "application/pdf"
Response.BinaryWrite(ms.ToArray())
Response.Flush()
Response.End()



The problems I am having are that in IE 11 the browser shows a blank page and the pdf is never rendered. In Firefox, the pdf is rendered in the browser but the form field is not filled in. What am I doing wrong?

Thanks.

Charles

Adding HTML to Text Fragment

$
0
0
Hi Guys,

1. I want to add the HTML text in existing PDF. Can you please provide any example? I am using TextFragment and Paragraph object to add text but couldn't find any solution to add HTML text.

2. If above is not possible then how can I open existing document with pdf.generator?

Regards,

Print PDF from code

$
0
0
Can I use the PDF component to print the PDF from code? (without using acrobat)

converting issue

$
0
0
when we converting from Pd f to E pup that is convenverting 15kb only
my pdf file size 148kb  after connvert its coming 15kb only

i used Aspose.Pdf

Issues with Pdf to Html Conversion

$
0
0
Hi 

We have requirement to convert pdf document to html. We have used Aspose.pdf ddl (Ver 8.7) to evaluate the same. While converting few files we have found few issues with conversion.

Below is the list of issues that we have encountered
1. Italic font formatting is lost in the generated html. Even bold formatting is not getting applied.
2. Even if there are multiple fonts used in the pdf document, the generated html does not embed them. Instead by default it is taking Times New Roman
3. When pdf is converted to html it is generating svg files. For few letters in the svg files, we are seeing black background.

Can you guys let us know how we can rectify the above issues
Viewing all 3131 articles
Browse latest View live