Header is upside-down, backward and at bottom when built through HtmlFragment
Issues after publishing to Azure Websites
Aspose.PDF (PCL to PDF) for Java on UNIX/LINUX looks for hard-coded paths such as /usr/share/fonts/truetype/msttcorefonts/ and /usr/X11R6/lib/X11/fonts/truetype/msttcorefonts/
rectangle Box coordinates are incorrect
I am using attached document (test_esign.pdf) to extract some custom rectangle boxes for a regex text. Notice the text in page 3 that looks like this: {{t:s;r:y;o:"Insured";}}
I noticed that the LLX, LLY,URX,URY appear to be huge like 2498/2101/3316/2207 when they are expected to be under 1000 number.
1. Is this a bug?
2. Why are the coordinates of the textfragment so high and
3. what is a solution for me to solve this and obtain correct coordinates?
- Rectangle {2498.736,2101.496,3316.08,2207.096} Aspose.Pdf.Rectangle
Height 105.59999999999991 double
IsEmpty false bool
IsPoint false bool
IsTrivial false bool
LLX 2498.736 double
LLY 2101.496 double
URX 3316.08 double
URY 2207.096 double
Width 817.344 double
Thank you,
Sireesha
Aspose.Pdf.Image
I was trying the below example and it throws an error:
1. 'Aspose.Pdf.Image' does not contain a definition
for 'FileType' and no extension method 'FileType' accepting a first argument of
type 'Aspose.Pdf.Image' could be found (are you missing a using directive or an
assembly reference?)
2. The type or namespace name 'ImageFileType' does
not exist in the namespace 'Aspose.Pdf' (are you missing an assembly reference?
// Create an image
instance
Aspose.Pdf.Image img = new Aspose.Pdf.Image();
// Set image type as SVG
img.FileType =
Aspose.Pdf.ImageFileType.Svg;
How to add a JPG or PNG to a a Cell ? (Aspose.Pdf.Document)
Draw line under text
PDF not displaying images
Printing/Sending PDF in Postscript to printer
Replacing text using Aspose.Pdf.Facades.PdfContentEditor
TIF to PDF: File size is huge, how to shrink?
How we can relate the coordinates of word document to aspose converted image
We are using aspose.pdf (v8.1.0.0)
We have a curly braces on the word document/ pdf document.
This document needs to be converted to image and an overlay needs to be provided on the image.
This overlay will be over the curly braces.
We are not getting the exact coordinates to provide a overlay on the curly braces on the image created by aspose.
Please let us know on how we can relate the coordinates of word document to aspose converted image.
Thanks
Arabic text extraction from PDF
public String getString() throws Exception {
com.aspose.pdf.Document pdfDocument =null;
String extractedText = "";
try {
if (inputStream == null) {
pdfDocument = new com.aspose.pdf.Document(this.path);
}
else {
pdfDocument = new com.aspose.pdf.Document(this.inputStream);
}
com.aspose.pdf.TextAbsorber textAbsorber = new com.aspose.pdf.TextAbsorber();
pdfDocument.getPages().accept(textAbsorber);
extractedText = textAbsorber.getText();
}
finally {
pdfDocument.freeMemory();
pdfDocument.dispose();
pdfDocument.close();
pdfDocument=null;
}
return extractedText;
}
Attached the Result of text extraction with sample pdf file.
Could you please assist us to solve this issue .
Thanks in advance.
ImageScale causing Pdf generation to take hang
Here is the code snippet I've been having problems with:
if (File.Exists(IMAGE_PATH + Db.getColumn<string>(dataRow, "path"))) {
partImage = new Image();
partImage.File = IMAGE_PATH +
Db.getColumn<string>(dataRow, "path"); //File type is png
partImage.FixWidth = 40;
partImage.ImageScale = 0.5f;
row.Cells.Add().Paragraphs.Add(partImage);
}
It loads without ImageScale, but the height is extremely stretched which is why I was trying to use ImageScale.
Image in original dimensions: http://puu.sh/hl3zr/489909eb31.jpg
Image generated in Pdf originally: http://puu.sh/hl3AW/47b444f5fb.jpg
All pages are null when instantiating new Document
Textbox with Justify not working when text contains a parameter
What is llx, lly , yrx and ury
XFA to Standard PDF form field length
PDF-Android: reading and identifying form fields
String fPath = "whatever...pdf";
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(fPath);
PageCollection pages = pdfDocument.getPages();
for (int i = 1; i <= pages.size(); i++){
Page page = pages.get_Item(i);
com.aspose.pdf.Form form = document.getForm();
com.aspose.pdf.Field[] fields = form.getFieldsInRect(page.getRect());
if(null != fields){
for(Field fld : fields){
// get field info here
}
}
}
My questions:
1. How do I know if a field is TextField, or a CheckBox, or a Button, etc?
2. When I read coordinates of a field like:
double x_ = fld.getRect().getLLX();
double y_ = fld.getRect().getLLY();
it gives me values if the fields were "vertically flipped". E.g. if field A is located near to top (say: x=10, y = 10), the above code would give me coordinates close to the bottom. If the page height was 500 then I would get x_ = 10, y_ = 490. How should I interpret it?