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

setIsBlackWhite() method error

$
0
0
hi, 

i'm using aspose pdf 9.0 but when i use this code can not find "setIsBlackWhite()" method.

img1.getImageInfo().setIsBlackWhite(true);


 could you help

thanks for all suggest.

Open Protected PDF file

$
0
0
Hi,

1. May i know the Aspose.pdf can support .NET Framework v1.14?
2. May I know whether Aspose.pdf can open the protected pdf file in the web application (ASPX)? If yes, can show an example?

Note:
The PDF file is protected with password. The PDF file is show at the portal website. When user click on the PDF file, i want the web application directly open the pdf file without asking the user to enter the password to open the file. The web application will provide the password.
   
Hope can heard from you...

Thanks.

HL

PDF/A_1b conversion fails with several documents

$
0
0
Aspose PDF 9.1.0.0

Hi,

I can not convert the attached document to a valid PDF/A_1B. I have a lot of such documents that fails. Converting with Ghostscript works.

Best regards,
Daniel

Insert first page

$
0
0
Hello, 

I'm trying to insert a new page to an existing pdf file at the index 1, but i'm getting an white empty page with 0 width and 0 height. If i try to insert the page to any different index it works fine.
I'm using the aspose.pdf 8.5
Below is the code i'm using :

 public MemoryStream InsertPages(MemoryStream inputFile, int index, MemoryStream pageStream)
 {    MemoryStream retVal = new MemoryStream();    if (inputFile != null)    {      Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(inputFile);      Page newPage = pdfDocument.Pages.Insert(index);       PageCollection pageCollection = pdfDocument.Pages;       double pdfPageWith, pdfPageHeight;       double lly, llx, urx, ury;       if (pageCollection.Count != 0)       {                    pdfPageWith = newPage.Rect.Width;          pdfPageHeight = newPage.Rect.Height;          lly = newPage.Rect.LLY;          llx = newPage.Rect.LLX;          ury = newPage.Rect.URY;          urx = newPage.Rect.URX;                        newPage.SetPageSize(pdfPageWith, pdfPageHeight);          Aspose.Pdf.Facades.PdfFileMend fileMend = new Aspose.Pdf.Facades.PdfFileMend(pdfDocument);          using (pageStream)          {                       float pdfPageHeightLLY = (float)lly;            float pdfPageWidthLLX = (float)llx;            float pdfPageHeightURY = (float)ury;            float pdfPageWidthURX = (float)urx;             if (pageStream != null)             {                 fileMend.AddImage(pageStream, index, pdfPageWidthLLX, pdfPageHeightLLY, pdfPageWidthURX, pdfPageHeightURY);             }                               }                pdfDocument.Save(retVal);                fileMend.Close();            }            return retVal;        }
Am I missing something ?

Regards, 

New conversion engine for inline html

$
0
0
Hi,

we are currently using inline html for some tables in our generated documents.

e.g.
var table = new Text("<html>...");
table.IsHtmlTagSupported  = true;

The problem with this approach is that the table overflows the right side of the document instead of being wrapped.
Like stated in the thread below it works with the new conversion engine.

http://www.aspose.com/community/forums/516084/table-and-text-syles-problem/showthread.aspx

Is there a way to use the new conversion engine together with the inline html feature?

Best regards

SSRS 2012

$
0
0
Hello

after installing Aspose.pdf we found the following folders:
- SSRS2000
- SSRS2005
- SSRS2008

Is it possible to use Aspose.pdf with Reporting Services 2012?

Adjusting Margins

$
0
0
So we have 2 pdf files.  I need to increase the header and footer margins.
I am using the PdfFileEditor class.  I am called the resizeContentsPct method.
Here is the problem.

The first document the height is taller than the width.  This document is adjusted correctly.
The second document, the width is greater than the height (landscape ish).  Instead of the
top and bottom margins being adjusted, the left and right ones are being adjusted and it looks
like every page is shifted down and to the right.  If I call the resizeContentsPct method with the
width and height parameters switched, the document gets resized correctly.

HTML tables (sized in pixles) converted to pdf

$
0
0


We have a client asking about converting HTML tables (sized in pixles) to pdf.  Can you please help us with the questions regarding the conversion? 


"If we were to setup a HTML table with CSS styles inline for widths using pixels as a unit of measure would the output render ok?  If so do you know how it converts pixels into a  unit of measure for printing>?   I’m assuming via page size/paper size maybe?"



Best practices: HTML inline styles

$
0
0
We have a question regarding best practices for HTML inline styles.  Our client is converting HTML to PDF for printing. They are interested in best practices: 


"Is there are any best practices to follow regarding setting inline styles for all HTML elements for the print support?     I believe others at IPD may have inquired about this same topic,  but I was unable to get a definitive answer one way or another. "


Thanks,
- JBourds

Radio button values

$
0
0
I'm attempting to read the value of a radio button on an existing document with Aspose.Pdf version 8.8.  The document was created by Adobe LiveCycle with reader extensions and contains approximately 50 fields.

Aspose.Pdf.Document.Form.Fields property (only contains 3 digital signature fields)
Aspose.Pdf.Document.Form.GetField method (returns values for fields except radio buttons)
Aspose.Pdf.Facades.Form.ExportXml method (result includes values for all fields except radio buttons)
Aspose.Pdf.Facades.Form.GetFieldFacade method (no suitable parameter value found)
Aspose.Pdf.Facades.Form.GetButtonOptionCurrentValue method (no suitable parameter value found)

Convert PDf - epub

$
0
0
Hello,

When we convert pdf file to epub file so images is not showing in epub file, so Can I solve this problem by any way. Please provide me solution as soon as possible.

HTML to PDF - Inconsistent font-size

$
0
0
When including the style of font-size within a tag, the size is ignored in some cases.  I expected everything to be of the same size, but when the PDF is generated, it appears the <h3> tag is much larger.

Is there some base formatting that Aspose is applying to HTML renderings behind the scenes, possibly causing issue here?

C# Code:

Pdf pdf = new Pdf();
Section s = new Section();

Text t = new Text("<html><head><title></title></head><body style='font-family: Arial; font-size: 8pt;'><h3>&nbsp;<a class=\"removed_class_1228\"contenteditable=\"false\" target=\"_blank\" href=\"linke_removed/1228\"alt=\"Click to view control details\">Here is a link</a>&nbsp;<br>And some more text afterwards</h3><br><span style=\"color: #FF0000\"><b>Some caution text</b></span><br><br>Some random text before the ol tag<br><br><ol><li>First Item.</li></ol><div>&nbsp;<a class=\"removed_class_1227\"contenteditable=\"false\" target=\"_blank\" href=\"link_removed/1227\" alt=\"Click to view control details\">First Link</a>&nbsp;<br></div></body></html>");
s.Paragraphs.Add(t);
t.IsHtmlTagSupported = true;
pdf.Sections.Add(s);
pdf.Save(@"C:\src\test\test.pdf");

HTML:

<html><head><title></title></head><body style='font-family: Arial; font-size: 8pt;'><h3>&nbsp;<a class="removed_class_1228"contenteditable="false" target="_blank" href="linke_removed/1228"alt="Click to view control details">Here is a link</a>&nbsp;<br>And some more text afterwards</h3><br><span style="color: #FF0000"><b>Some caution text</b></span><br><br>Some random text before the ol tag<br><br><ol><li>First Item.</li></ol><div>&nbsp;<a class="removed_class_1227"contenteditable="false" target="_blank" href="link_removed/1227" alt="Click to view control details">First Link</a>&nbsp;<br></div></body></html>

Convert pdf-Epub

$
0
0
Please provide me technical support url because I want to share my problem
This message was posted using Banckle Live Chat 2 Forum

Email ID Info

$
0
0
Hello, 

I want a email id of your technical support staff, because I want to send my query on mail & send my converted file from pdf to epub.

SSRS Preview

$
0
0
Hello

after installing Aspose.PDF on a SQL Server 2012 VM everything seemed to be alright at first.

Before referencing the Aspose.dll it is no longer possible to preview a report:
microsoft.reportingservices.processingcore could not be loaded .. the located assembly's manifest file does not match the assembly reference

If we check the manually install explanation everything is fine except the last step, nr 5, where you can find the different rendering modes, Aspose is not listed.

After uninstalling Aspose the preview modus in Visual Studio works fine again.
Can you no longer preview reports or could there be a version conflict?


It was still possible to deploy the report and it could be viewed via the browser.
The reason for using Aspose.pdf is the solution you have for justifying text.


thanks.

How to refer to Css file

$
0
0
Hi to everyone.
Can someone explain to me how does the Css file reference works when I export an  Html to Pdf?
I tried to set the HtmlInfo.ExternalResourcePath but it seems not working...

This is the html string:

<html><head> <link href="site.css" type="text/css" rel="stylesheet"/></head><body> ... </body></html>

and I try to set the property with the following values:

"http://localhost:xxx/content/"
or "Content"
or "/Content/"

but the result is aways the same (I'm using an asp.net mvc 4 application).
Of cource the correct url for the css is http://localhost:xxx/content/site.css.

I've already read the documentation but it is not of great help.

Thanks in advance.

PDF creator and Edit

$
0
0
Hai.. I came here for get some information about Aspose.
am a Mobile App developer and using HTML5 Technologies for the development.
our client have a requirement..
create a PDF which taken data from Mobile' Database (Sqlite) and once PDF created; he/she can edit the values in the PDF.
is this possible by using Aspose.?

Then let me know Client' data are highly confidential. when we use this ; is our Data is saved in your cloud server ?

I apologize to ask these questions in this forums. But I expect its answer from this !

How to Generate a Grayscale TIFF image from color PDF (using Aspose.PDF)

$
0
0
Hi

I am converting a PDF document to TIFF image and while converting I want TIFF image to be a grayscale (or black & white). My PDF document has colors and TIFF is also coming with colors. How can I get a TIFF which is GrayScale? Below is my code. inputStream is a PDF document. 

MemoryStream outputStream = null;
          //Open document
                    Document pdfDocument = new Document(inputStream);
                    
                    

                    //Create Resolution object
                    Resolution resolution = new Resolution(300);
                    
                    //Create TiffSettings object
                    TiffSettings tiffSettings = new TiffSettings();
                    tiffSettings.Compression = CompressionType.LZW;
                    tiffSettings.Depth = ColorDepth.Format4bpp;
                    tiffSettings.Shape = ShapeType.Portait;
                    tiffSettings.SkipBlankPages = false;
                                      
                   
                    //Create TIFF device
                    TiffDevice tiffDevice = new TiffDevice(PageSize.PageLetter, resolution, tiffSettings);

                    outputStream = new MemoryStream();

 tiffDevice.Process(pdfDocument, 1, pdfDocument.Pages.Count, outputStream);


Any help is greatly appreciated.
Thanks
Piyush

Table border outline not showing

$
0
0
I'm using Aspose Pdf 9.1. I have the following code and when it outputs to a pdf file only a line outlining the left side of the border appears. The top, bottom, and right lines outlining the border do not appear. As soon as I remove the widths from both of the table attributes the table displays correctly on the pdf file. Is this a bug? Is there something I can do to display the page correctly?

I have attached an image of my pdf.

var htmlText="<html>
<body>
<div>
<table border="1" cellspacing="0" style="font-size:8px; width:300px">
    <tbody>
        <tr>
            <td colspan="3">
            <table border="0" cellspacing="0" style="font-size:8px; width:300px">
                <tbody>
                    <tr>
                        <td>Employee Name</td>
                        <td>Department</td>
                    </tr>
                    <tr>
                        <td>test</td>
                        <td>test</td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
    </tbody>
</table>
</div>
</body>
</html>"

var text = new Text(htmlText);
text.IsHtmlTagSupported = true;
text.IsHtml5Supported = true;
text.IfHtmlTagSupportedOverwriteHtmlFontNames = true;
document.Sections[0].Paragraphs.Add(text);

If use IsHtmlTagSupported,The pdf save the first time a minute or so.

$
0
0

Hello every one,

 

I can prove the issue is on Aspose side with a web test process we wrote, with this you can reproduce the issue when generating PDF, i.e. initial attempt is lengthy.

The way to apply this web process: deploy it in IIS, click Export PDF on WebForm1.aspx, it may take about 1 minute in first try, subsequent exporting would be faster. If you don't use IsHtmlTagSupported property,there is no this problem.

 

Problem is each time after IIS restarted or reached Idle Time-out(minutes) in IIS, the issue reoccurs! Deploying this web process in IIS can help reproduce the issue, only debugging it won't help.So I think this problem and used in the web project has a lot to do.

Looking forward to your reply,thank you.

Viewing all 3131 articles
Browse latest View live