Spire.PDF New Release or Hotfix

Technical support for Spire.PDF

Moderator: iceblue support

Spire.PDF New Release or Hotfix

Postby amy.zhao » Fri Mar 21, 2014 2:12 am

This is the list of changelogs of Spire.PDF New release and hotfix. You can get the detail information of each version's new features and bug solutions.
Welcome to experience Spire.PDF with downloading here:
http://www.e-iceblue.com/Download/downl ... t-now.html

Spire.PDF Pack(Hot Fix) Version:3.9.584(2018-01-08 )
New features:
Supports to extract text from a certain rectangle.
Code: Select all
pdf.Pages[0].ExtractText(new RectangleF(10,20,400,500));

Supports to set Collate when printing.
Code: Select all
PdfDocument.PrintSettings.Collate = true;

Bug Fixes:
Fixes the issue that the VerifySignature method returns false for valid signature.
Fixes the issue that the ProPhotoRGB profile is lost after drawing image.
Fixes the issue that the timeout is kicking in in some cases when using the Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert method to convert the same HTML to PDF many times.
Fixes the issue that the position of the signature image changed after saving PDF to image.
Fixes the issue that the time of getting bookmarks keeps increasing.
Fixes the issue that the border is missing when printing.
Fixes the issue that getting page index of a textbox which is placed on multiple pages is incorrect.


Spire.PDF Pack(Hot Fix) Version:3.9.568(2017-12-29)
Bug Fixes:
Fixes the issue that parts of content got messy when saving PDF to Word.
Fixes the issue that the state of checkbox changed to "checked" after setting the value for textbox.
Fixes the issue that the position of text in textbox changed after updating.
Fixes the issue that the result PDF couldn't be opened via Adobe after using pdf.Form.IsFlatten = true.
Fixes the issue that the space of character was incorrect when converting PDF to Word.
Fixes the issue that collapsing bookmarks didn't work.
Fixes the issue that the extracted image was whiter than the original image in PDF.
Fixes the issue that the line style changed from "solid" to "dotted" when printing PDF.
Fixes the issue that caused PdfException when loading file.
Fixes the issue that some extra blank characters were added when converting HTML to PDF with IE7.
Fixes the issue that the border was missing when printing PDF.


Spire.PDF Pack(Hot Fix) Version:3.9.538(2017-12-18)
New features:
Adds a new property PdfLayer.IsShowOnUI to determine whether the layer is shown on user interface or not.
Adds the print event doc.PrintSettings.EndPrint.
Bug Fixes:
Fixes the issue that the margin is incorrect after printing.
Fixes the issue that caused "Fatal Error at 92916" exception when merging PDF files.
Fixes the issue that the position of signature image is incorrect after saving to image.
Fixes the issue that the position of words is inconsistent when getting coordinates of searched words.
Fixes the issue that the image changed to black after compressing PDF.

Spire.PDF Pack(Hot Fix) Version:3.9.511(2017-12-07)
New Features:
Adds the new property PdfDocument.PrintSettings.DocumentName.
Bug Fixes:
Fixes the issue that caused the text in PdfTextBoxField invisible after merging PDF files.
Fixes the issue that cannot read the KeyWords after loading encrypted document.
Fixes the issue that caused the text overlapping when converting to Image.
Fixes the issue that caused the position of inserted bookmark incorrect when inserting bookmark.


Spire.PDF Pack(Hot Fix) Version:3.9.493(2017-11-29)
Bug Fixes:
Fixes the issue that the text was rotated when filling textbox field.
Fixes the issue that only first action worked when creating action chain.
Fixes the issue that caused the text overlapping when converting PDF to image.
Fixes the issue that caused FormatException when convert PDF to Doc in French culture.


Spire.PDF Pack(Hot Fix) Version:3.9.462(2017-11-17)
Bug solutions:
Optimize PDF to image conversion time consumption.
Fixes the issue that caused content lost when converting PDF to Image.
Fixes the issue that caused InvalidCastException when converting PDF to Image.
Fixes the issue that caused OutOfMemoryException when extracting image in x86 platform.
Fixes the issue where gradient color was not printed correctly.


Spire.PDF Pack(Hot Fix) Version:3.9.457(2017-11-16)
New Features:
Adds feature to convert PDF to .docx format.
Adds the method Spire.Pdf.PdfDocument.Preview(PrintPreviewControl printPreviewControl)to support print preview.
Adjustments:
Obsoletes the property Spire.Pdf.PdfDocument.PageScaling and Spire.Pdf.PdfDocument.CustomScaling. Use the method as below instead.
Code: Select all
Spire.Pdf.PdfDocument.PrintSettings.SelectSinglePageLayout(PdfSinglePageScalingMode pageScalingMode = PdfSinglePageScalingMode.FitSize, bool autoPortraitOrLandscape = true, float customScaling = 100);

Bug solutions:
Fixes the issue where the print result was not centered at the page when using the ActualSize Property.
Fixes the issue that caused signature disappeared when flattening a digitally signed pdf document.
Optimizes the TryCompressImage method to make the document size less.
Optimizes XPS to PDF conversion.
Fixes the issue that caused the content overlapping when converting PDF to .doc.
Fixes the issue where the stamp that is created using our product can't be printed out manually.


Spire.PDF Pack(Hot Fix) Version:3.9.431(2017-11-02)
New Feature:
Adds method PdfPrintSettings.SelectMultiPageLayout to support printing multiples pages per sheet.
Bug Fixes:
Fixed the issue that caused content garbled when converting to image.
Fixed the issue that caused content lost when converting to image.
Fixed the issue that caused SaveAsImage method threw KeyNotFoundException error.
Fixed the issue that caused FindText method threw FormatException error.
Fixed the issue where the text and image can't be drawn on layer.
Fixed the issue that caused the result incorrect when spliting document.
Adjustments:
Obsoletes PdfDocument.PrintDocument.PrintController property.
Code: Select all
Use PdfDocument.PdfPrintSettings.PrintController property instead.

Obsoletes PdfDocument.PrintDocument.PrinterSettings.Duplex property.
Code: Select all
Use PdfDocument.PdfPrintSettings.Duplex property instead.

Obsoletes PdfDocument.PrintDocument.QueryPageSettings property.
Code: Select all
Use PdfDocument.PdfPrintSettings.QueryPageSettings property instead.

Obsoletes PdfDocument.PrintDocument.PrinterSettings.PaperSources and PdfDocument.PrintDocument.DefaultPageSettings.PaperSource property.
Code: Select all
Use PdfDocument.PrintSettings.PdfPaperSettings property instead.



Spire.PDF Pack(Hot Fix) Version:3.9.421(2017-10-27)
Bug Fixes:
Fixes the issue that caused "Insufficient data for an image" error when repeatedly loading document to insert image and save it.
Adjustments:
Obsoletes the set property of PdfSecurity.Permissions and PdfSecurity.KeySize.
Obsoletes PdfSecurity.OwnerPassword, PdfSecurity.UserPassword property.
Obsoletes PdfSecurity.ResetPermissions and PdfSecurity.SetPermissions method, and use PdfSecurity.Encrypt method instead.


Spire.PDF Pack(Hot Fix) Version:3.9.407(2017-10-20)
New Features:
Supports to convert PDF into Html stream.
Code: Select all
doc.SaveToStream(Stream, FileFormat.HTML);

Adds new method TryCompressImage to compress image in PDF for reducing the size of PDF.
Code: Select all
PdfDocument doc = new PdfDocument("647.pdf");
doc.FileInfo.IncrementalUpdate = false;
foreach (PdfPageBase page in doc.Pages)
{
    foreach (PdfImageInfo info in page.ImagesInfo)
    {
        bool success = page.TryCompressImage(info.Index);
    }
}
doc.SaveToFile("Output.pdf");

Supports to convert PDF to SVG with custom height and width.
Code: Select all
using (PdfDocument pdf = new PdfDocument(xxx.pdf))
{
    pdf.ConvertOptions.SetPdfToSvgOptions(540f, 278f);
    pdf.SaveToFile(xxx.svg, FileFormat.SVG);
}

Bug Fixes:
Fixes the issue that the text was flipped and cut off when converting PDF to image.
Fixes the issue that caused black background of image when printing.
Fixes the issue that caused wrong signature after multiple signatures.
Fixes the issue that the attachment cannot be added in PDF.
Fixes the issue that the data in the fields were missing when converting to image.
Fixes the issue that content cannot be printed in the center when using ActualSize and AutoPortraitOrLandscape.
Fixes the issue that caused NullReferenceException when converting PDF to XPS.
Fixes the issue that caused exception when loading XPS when system language is Russian.
Fixes the issue that caused messy code when extracting text.
Fixes the issue that content was cut off when printing.
Fixes the issue that the method VerifySignature returned wrong Boolean value.
Fixes the issue that the accents above some characters were printed at wrong position.


Spire.PDF Pack(Hot Fix) Version:3.9.360(2017-09-25)
New Features:
Support to print specific page.
Code: Select all
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(filename);
doc.PrintSettings.SelectSomePages(new int[]{2,4});
doc.Print();

Public the name property of the layer.
Code: Select all
string name = doc.Layers[0].Name;

Support to set the alignment for the signature content.
Code: Select all
signature.SignTextAlignment=SignTextAlignment.Right;

Support to get the text by document structure
Code: Select all
PdfDocument doc = new PdfDocument();
doc.LoadFromFile("Alcontrol - EDF.pdf");
PdfPageBase page =doc.pages[0];
SimpleTextExtractionStrategy strategy = new SimpleTextExtractionStrategy();
string text=page.ExtractText(strategy);
FileStream fs =new FileStream("Alcontrol - EDF.txt",FileMode.Create);
StreamWriter sw =new StreamWriter(fs);
sw.Writer(text);
sw.Flush();
sw.Close();

Adjustments:
The PrintDocument object has been marked as obsolete, it only needs to set the PrintSettings when print. Example:
Code: Select all
PdfDocument doc = new PdfDocument(FilePath + "sample.pdf");
//change print settings you want
doc.PrintSettings.Landscape = true;
doc.Print();

The pageLayers object of Page has been marked as obsolete, use Layers object under PdfDocument instead.
It must create the Graphics for the Layer with the CreateGraphics method when Add Layer. Example:
Code: Select all
//add layer
PdfLayer layer = doc.Layers.AddLayer("red line", PdfVisibility.On);
PdfCanvas pcA = layer.CreateGraphics(doc.Pages[0].Canvas);
pcA.DrawLine(new PdfPen(PdfBrushes.Red, 1), new PointF(0, 100), new PointF(100, 100));
layer = doc.Layers.AddLayer("blue line");
PdfCanvas pcB = layer.CreateGraphics(doc.Pages[0].Canvas);
pcB.DrawLine(new PdfPen(PdfBrushes.Blue, 1), new PointF(0, 150), new PointF(100, 150));
//remove the layer by name
doc.Layers.RemoveLayer(("red line");

Bug solutions:
Fixes the issue that cannot delete layer.
Fixes the issue that caused the character wrong after deleting image.
Fixes the issue that the image cannot be deleted.
Fixes the issue that caused NullReferenceException when flatten form field.
Fixes the issue that the checkboxField is not checked after setting checkboxField.Checked as true.
Fixes the issue that caused content missing after replacing image.
Fixes the issue that caused the content in invisible region shows after creating Booklet.
Fixes the issue that caused the original content changed when appending a new page.
Fixes the issue that the object cloned from PdfDocument returns null.
Fixes the issue that caused the size of document increased after compressing images.
Fixes the issue that caused the background changed to black when converting PDF to XPS.
Fixes the issue that the size of document grows too much when converting image to pdf.
Fixes the issue that caused spot colors setting in image missing when drawing image to PDF.
Fixes the issue that custom properties don't work.
Fixes the issue that cannot delete custom properties.
Fixes the issue that caused small drilling holes missing when printing the PDF.
Fixes the issue that custom properties missing after setting own password.


Spire.PDF Pack(Hot Fix) Version:3.9.285(2017-08-14)
New feature:
Supports to convert PDF to HTML.
Bug fixes:
Fixes the issue that the paragraph number and heading text were swapped when extracting text.
Improve the print function to make the printed result be same as what Adobe prints.
Fixes the issue that caused char spacing in flattened field incorrect when saving to Image.
Fixes the issue that caused some Chinese characters cannot be printed when printing.


Spire.PDF Pack(Hot Fix) Version:3.9.266(2017-08-04)
Bug Fixes:
Fixes the issue that caused messy code in text field after merging files.
Fixes the issue that caused FormatException when extracting text.
Resolves the issue where the color filled in graph is incorrect when saving to image.
Fixes the issue that caused NullReferenceException when converting to image.
Fixes the issue that caused the check status of other checkboxes became checked after one checkbox was checked.
Fixes the issue that caused text missing when converting PDF to XPS.


Spire.PDF Pack(Hot Fix) Version:3.9.226(2017-07-20)
New feature:
Supports to convert PDF to SVG stream.
Code: Select all
PdfDocument.SaveToStream(FileFormat.SVG);

Adjustments:
Adjusts the properties of PdfSignature.
Replaces the IsConfiguerGraphicFilledBounds property with SignImageLayout property.
Replaces the ConfigGraphicType property with GraphicsMode property.
Replaces the signInfoFont property with SignNameFont and SignDetailsFont property.
Replaces the ConfiguerGraphicPath property with SignImageSource property.
Replaces the DigitalSignerLabel property with NameLabel property.
Replaces the DigitalSigner property with Name property.
Bug fixes:
Fixes the issue that caused the NullReferenceException when converting to image.
Fixes the issue that the property SetButtonImage doesn't work.
Fixes the issue that caused inaccurate position of searched text.
Fixes the issue that caused incorrect content when converting xps to pdf.
Fixes the issue that cannot get font of searched text.
Fixes the issue that the position of text changed when converting pdf to xps.
Fixes the issue that the position of the content is wrong when printing.
Fixes the issue that the line missing when printing.
Fixes the issue that the values of combox field are blank when clicking view this version in Adobe with Italian setting after filling the combox field and signing the signature field.


Spire.PDF Pack(Hot Fix) Version:3.9.189(2017-06-30)
Bug Fixes:
Fixes the issue that Calculate action didn't work.
Fixes the issue that the extra signature field was added into document automatically after signing signature field.
Fixes the issue that the setting of orientation when printing didn't work.
Fixes the issue that the values of combox field were getting lost after "Click view this version" was clicked in Adobe.
Fixes the issue that caused the NullReferenceException when loading PDF file.


Spire.PDF Pack(Hot Fix) Version:3.9.181(2017-06-27)
New Feature:
Supports to find whole words only.
Code: Select all
public PdfTextFindCollection FindText(String searchPatternText, bool isSearchWholeWord);
 

Bug solutions:
Fixes the issue that caused incorrect content when converting PDF to XPS.
Fixes the issue where the image is wrong when converting XPS to PDF.
Fixes the issue that the content copied from PDF is incorrect when converting XPS to PDF.
Fixes the issue that cannot delete layers.
Fixes the issue that the currency symbol and the amount are broken when there is line feed.
Fixes the issue that the position of the text is wrong when printing the PDF.
Fixes the issue that caused exception when getting the used font.
Fixes the issue that caused exception when loading certificate to sign PDF on Azure.


Spire.PDF Pack(Hot Fix) Version:3.9.168(2017-06-20)
Bug solutions:
Fixes the issue that caused the logo image was incorrect when printing the PDF file.
Fixes the issue that caused the Stamp was lost when printing the PDF file.
Fixes the issue that the content missing when converting PDF to XPS.
Fixes the issue that cuased ArgumentException when using FindText method.
Fixes the issue that the method DrawTemplate doesn't work.


Spire.PDF Pack(Hot Fix) Version:3.9.141(2017-06-07)
New feature:
Supports to convert specific PDF pages to SVG.
Code: Select all
//Summary:
//Saves PDF document to SVG.
//Parameters:
//filename:
//A relative or absolute path for the file
//startIndex:
//The start page index. The index starts at 0
//endIndex:
//The end page index.
//fileFormat:
//File format for the file
public void SaveToFile(string filename, int startIndex, int endIndex, FileFormat fileFormat);

Bug solutions:
Fixes the issue that caused the image profile lost when converting image to PDF.
Fixes the issue where all the radio buttons were in selected state when converting PDF to PDF/A.
Fixes the issue where some readers showed certain checkboxes to be unchecked except Chrome.
Resolves the issue where the Combobox field values were not displayed.
Fixes the issue where the icon on the ButtonField was improperly getting placed.
Fixes the issue where the images on the pdf file was improperly getting placed when printing the PDF.
Resolves the issue that caused the exception that page index was out of the range of the page in the document.


Spire.PDF Pack(Hot Fix) Version:3.9.124(2017-05-26)
New Features:
Add IsPortfolio property for PdfDocument to detect if a PDF document is a portfolio.
Code: Select all
bool value=PdfDocument.IsPortfolio;

Add new properties for PdfButtonField to handle button/Icon layout.
Code: Select all
PdfButtonField btn = new PdfButtonField(page, "button1");
btn.Bounds = new RectangleF(0, 0, 120, 100);
//button layout
btn.HighlightMode = PdfHighlightMode.Push;
btn.LayoutMode = PdfButtonLayoutMode.CaptionOverlayIcon;
btn.Text = "Normal Text";
btn.Icon = PdfImage.FromFile("Image.png");
btn.AlternateText = "Alternate Text";//only be set when PdfHighlightMode is set as Push
btn.AlternateIcon = PdfImage.FromFile("PNG_transparency_demonstration_1.png");
btn.RolloverText = "Rollover Text";//only be set when PdfHighlightMode is set as Push
btn.RolloverIcon = PdfImage.FromFile("SpireOffice.png");
//icon layout
btn.IconLayout.Spaces = new float[] { 0.5f, 0.5f };
btn.IconLayout.ScaleMode = PdfButtonIconScaleMode.Proportional;
btn.IconLayout.ScaleReason = PdfButtonIconScaleReason.Always;
btn.IconLayout.IsFitBounds = false;
Pdf.Form.Fields.Add(btn);

Bug Solutions:
Fixes the issue that the position of extracted text was located incorrectly.
Fixes the issue that the rotated text was lost when printing.
Fixes the issue that the image was lost when printing.
Fixes the issue that the alignment of FormField changed when flattening FormField.
Fixes the issue that the content was lost when saving as Image.
Fixes the issue that underline/strikethrough appeared in the table when there is no text in the cell.
Fixes the issue that the PdfDestination(int pageNumber, PointF location, float zoom) constructor can't create bookmark.
Fixes the issue that caused the error "Insufficient data for an image" when replacing Image with ReplaceImage method.
Fixes the issue that the barcode appearance was incorrect when printing.


Spire.PDF Pack(Hot Fix) Version:3.9.82(2017-05-02)
Bug solutions:
Fixes the issue that caused blank image when converting PDF to image.
Fixes the issue that caused incorrect result when converting PDF to image.
Fixes the issue that caused the process hanging when converting PDF to image.
Fixes the issue that caused some characters missing when converting XPS to PDF.
Fixes the issue that caused incorrect header when converting PDF to .doc.
Fixes the issue that caused incorrect result when converting PDF to Pdf_A1B file format.
Fixes the issue that caused ArgumentException when using the ExtractText menthod.
Fixes the issue that the size of text in textbox cannot be changed.
Fixes the issue that the checkbox cannot be edited after saving PDF.
Fixes the issue that caused wrong content when printing the PDF file.
Fixes the issue that NullReferenceException when merging PDF.
Fixes the issue that caused wrong position when drawing HTML.


Spire.PDF Pack(Hot Fix) Version:3.9.27(2017-04-11)
New feature:
Support to set "Commit selected value immediately" for ComboBox field and ListBox field.
Code: Select all
PdfComboBoxField.CommitOnSelChange = true;
PdfListBoxField.CommitOnSelChange = true;
 

Bug solutions:
Fixes the issue that caused ArgumentException when loading the PDF file.
Fixes the issue that caused "Checksum check failed" exception when loading the PDF file.
Fixes the issue that caused wrong barcode and incorrect content when printing PDF.
Improve the performance of converting PDF to image.
Fixes the issue that caused header was missing when converting PDF to .doc file format.
Fixes the issue that caused blank content when converting PDF to XPS.
Fixes the issue that a pop-up message warns you to save the changes while in fact nothing have changed when closing the file in Adobe after the merge files function.
Fixes the issue that caused NullReferenceException when using FindText method.
Fixes the issue that caused the process hanging when using ExtractText method.
Fixes the issue that barcode cannot be scanned after setting the size of barcode.
Fixes the issue that the method DrawImage didn't work.
Fixes the issue that caused NullReferenceException when using PdfFormWidget.ExtractSignatureAsImages().
Fixes the issue that the SelectedIndex property of a RadioButtonList didn't work.
Fixes the issue that the result image was wrong when replacing image on PDF.


Spire.PDF Pack Version:3.9(2017-03-31)
Bug solutions:
Fixes the issue that caused first page was blank when converting PDF to TIFF image format.
Fixes the issue where the generated pdf threw an exception that insufficient data for an image while being opened in adobe reader when converting TIFF image to PDF.
Fixes the issue that caused PdfButtonField border visible when setting the BorderWidth property to 0.
Fixes the issue that caused the exception that the character 'z' is invalid inside an ASCII85 block when using MergeFiles method.
Resolves the issue that caused the image was lost when printing the PDF file.


Spire.PDF Pack(Hot Fix) Version:3.8.193(2017-02-24)
New Feature:
Support to set the barcode size when draw the barcode.
Code: Select all
RectangleF rect = new RectangleF(new PointF(0, 400),new SizeF(200,200));
barcode1.Draw(page,rect);

Bug solutions:
Fixes the issue that caused wrong content when converting PDF to PDF/A.
Fixes the issue that caused Arabic text wrong when converting XPS to PDF.
Fixes the issue that the position of some characters is wrong when converting XPS to PDF.
Fixed the issue that caused blank page when converting XPS to PDF.
Improve the function of converting PDF to image.
Fixes the issue that caused incorrect format when extracting text.


Spire.PDF Pack(Hot Fix) Version:3.8.173(2017-02-06)
Bug solutions:
Fixes the issue that caused the IndexOutOfRangeException when loading XPS file.
Fixes the issue that caused the watermark cannot be added into XPS file.
Fixes the issue that caused image missing when printing the PDF file.
Fixes the issue that caused wrong format when printing the PDF file.
Fixes the issue that caused some text missing when converting PDF to image.
Fixes the issue that caused wrong result when converting PDF to XPS.
Fixes the issue that the layer cannot be deleted.
Fixes the issue that caused ArgumentOutOfRangeException when merging PDF files.
Fixes the issue that caused incorrect result when use Grid.BeginPageLayout to create template.
Fixes the issue that caused wrong result when using spot color to draw line.


Spire.PDF Pack(Hot Fix) Version:3.8.158(2017-01-17)
New Features:
Support to draw content with spot color.
Code: Select all
PdfDocument pdf = new PdfDocument();
PdfPageBase page = pdf.Pages.Add();
PdfSeparationColorSpace cs = new PdfSeparationColorSpace("MySpotColor", Color.Red);
//Light
PdfSeparationColor color = new PdfSeparationColor(cs, 0.1f);
PdfSolidBrush brush = new PdfSolidBrush(color);
page.Canvas.DrawString("Test spot color by E-iceblue with 0.1 tints!", new PdfFont(PdfFontFamily.Helvetica, 13f), brush, PointF.Empty);
//Medium
color = new PdfSeparationColor(cs, 0.5f);
brush = new PdfSolidBrush(color);
page.Canvas.DrawString("Test spot color by E-iceblue with 0.5 tints!", new PdfFont(PdfFontFamily.Helvetica, 13f), brush, new PointF(0, 20));
//Darkest
color = new PdfSeparationColor(cs, 1);
brush = new PdfSolidBrush(color);
page.Canvas.DrawString("Test spot color by E-iceblue with 1.0 tints!", new PdfFont(PdfFontFamily.Helvetica, 13f), brush, new PointF(0, 40));
pdf.SaveToFile("SpotColor.pdf");

Bug solutions:
Fixes the issue that caused the image lost when printing the PDF document.
Fixes the issue that badly formed dictionary next should be a name before 809.
Resolves the issue where creationDate and modificationDate about attachment in PDF were get incorrectly.
Fixes the issue where the watermark didn't work when loading XPS and adding a watermark to each page and then saving it as a Pdf.
User avatar
amy.zhao
 
Posts: 2201
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF

Who is online

Users browsing this forum: No registered users and 0 guests