4:01 I'm getting error like this Error: The getter 'path' isn't defined for the class List? lib/mobile.dart:6 - 'List' is from 'dart:core'. - 'Directory' is from 'dart:io'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'path'. final path = (await getExternalStorageDirectories()).path; please someone help this.
Hello, We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident If you have a retail or flat license, you also have access to our support chat.
Recently, the path_provider package depreciated the getExternalStorage() API. Please find the details from these changes (pub.dev/packages/path_provider/changelog#120) log. So we request you to remove the deprecated API getExternalStorageDirectory and use the getApplicationDocumentsDirectory instead to overcome this reported problem. Please try the sample from below link www.syncfusion.com/kb/11330/how-to-create-a-pdf-file-in-syncfusion-flutter-pdf-library Let us know if you need any further assistance in this.
I enjoyed you video very much and implemented the code, works great I got to play with different features, thank you for all your work. I will use your library's in the future.
Hi Mark, That’s great. Thank you for your kind words. We really appreciate your feedback. We're glad that you got it to work. Please don't hesitate to reach out with additional questions.
@@SyncfusionInc I am with a small app company and have 3 apps in the market, we chose to do our premium version app in flutter( a very good decision) but as I write we have Android and IOS code bases for our free versions( seriously maintaining 3 code bases). We hope by the end of the year to migrate our free versions to a cut down version of our premium app in flutter, hopefully reducing everything to one code base ( flutter). That's why I like your library, because our free app versions generate pdf's off line. Simple answer, just saying.
Hi, Using our Flutter library, we cannot edit text in an existing PDF document. While it's possible to load an existing document and add new text, it's impossible to edit the existing text within the document.
Hi Revan, Thank you for reaching out to us. Yes, you can customize using the following link, help.syncfusion.com/flutter/pdf/working-with-tables#cell-customization-in-pdfgrid You can also draw multi-language text, help.syncfusion.com/flutter/pdf/working-with-text#drawing-text-using-different-fonts
hey man, i'm programmin in a MacOs, and runnig my code in IOS emulator, when i save the path with ''getApplicationDocumentsDirectory();'' i choose to save the file, because it open an box asking what should do with it, but the file hads nothing, is not even .pdf, trying to get some help but can't found it so thats bring me here, i try with and without ''pdfdocument.dispose''
Hi Bruce Scavelo, We're happy to look at this. For the fastest response to technical questions, we recommend opening a support ticket so we can exchange files and screenshots. www.syncfusion.com/support/directtrac/incidents/newincident We will check on this with our team and post a response but it will take a little time. Thanks for your question!
Hi, Based on the provided code example, we found that the PDF file was being saved without an extension, which was causing the reported issue. We suggest you add the proper extension when writing files. You can refer to the following code example for further details. Future _createPdf() async { PdfDocument pdfdocumento = PdfDocument(); final page = pdfdocumento.pages.add(); page.graphics.drawString( 'Impressão Matricular', PdfStandardFont(PdfFontFamily.helvetica, 35)); List bytes = await pdfdocumento.save(); pdfdocumento.dispose(); pdfSaver(bytes, 'matricula_data.pdf'); } Future pdfSaver(List bytes, String fileName) async { Directory path = await getApplicationDocumentsDirectory(); // function for see directory if android or ios String outputPath = path.path; final file = File('$outputPath/$fileName'); await file.writeAsBytes(bytes, flush: true); OpenFile.open('$outputPath/$fileName'); } } Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/create_pdf_sample-687432817.
I'm trying to create a pdf which will have a header consisting of companie's logo image and their address in a text format. The company logo is coming out fine, but the text in header is coming out very streched and ugly. How can i fix that? Thanks!
Hello, We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident If you have a retail or flat license, you also have access to our support chat.
We have achieved the required scenario without any preservation issues with the below code snippet. So, kindly try it out and refer to the below documentation link for more information. help.syncfusion.com/flutter/pdf/working-with-headers-and-footers help.syncfusion.com/flutter/pdf/working-with-text Code Snippet: Future _createPDF() async { //Create a new pdf document PdfDocument document = PdfDocument(); //Add the pages to the document for (int i = 1; i <= 2; i++) { document.pages.add(); } //Create the header with specific bounds PdfPageTemplateElement header = PdfPageTemplateElement( [Rect.fromLTWH(0,](Rect.fromLTWH(0,) 0, document.pages[0].getClientSize().width, 300)); //Load image file PdfImage logoImage = PdfBitmap(await _readImageData('logo.png')); //Draw the image to the header [header.graphics.drawImage(logoImage,](header.graphics.drawImage(logoImage,) [Rect.fromLTWH(0,](Rect.fromLTWH(0,) 0, logoImage.width / 2, logoImage.height / 2)); //Draw address string to the header [header.graphics.drawString(](header.graphics.drawString() 'Syncfusion Software PVT LTD Eymard Complex Aj 217 sms hospital near 4th Avenue Anna Nagar-600040', PdfStandardFont(PdfFontFamily.timesRoman, 11), bounds: Rect.fromLTWH(document.pages[0].getClientSize().width, 0, 0, 0), format: PdfStringFormat( alignment: PdfTextAlignment.right, )); //Add the header at top of the document document.template.top = header; //Save the PDF document List bytes = document.save(); //Dispose document document.dispose(); } Future> _readImageData(String name) async { final ByteData data = await rootBundle.load('assets/$name'); return [data.buffer.asUint8List(data.offsetInBytes,](data.buffer.asUint8List(data.offsetInBytes,) data.lengthInBytes); }
Hi, We have changed the save API return type to feature from the product version 20.3.36 and later. So we suggest you use the following code to resolve the issue. List bytes = await document.save(); or List bytes = document.saveSync(); Please refer to the below link for more information, pub.dev/packages/syncfusion_flutter_pdf/changelog
Hello Adil Mobologics, Our paid and free versions both have the same features and support. You can check here to see if you qualify for our Community (free) license. It's available for companies with 5 or fewer developers and less than $1 Mil USD in annual revenue. bit.ly/395t17c
Hello, We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident
Please find the samples and feature request details to export PDF support below, Maps: www.syncfusion.com/downloads/support/directtrac/general/ze/maps_to_pdf40664281 Treemap: www.syncfusion.com/downloads/support/directtrac/general/ze/treemap_to_pdf2128023203 Gauges: www.syncfusion.com/downloads/support/directtrac/general/ze/gauges_to_pdf-109697840 Sliders: www.syncfusion.com/downloads/support/directtrac/general/ze/slider_to_pdf-2074197194 SignaturePad: www.syncfusion.com/downloads/support/directtrac/general/ze/signaturepad_to_pdf1169730669 Calendar: www.syncfusion.com/downloads/support/directtrac/general/ze/CalendarTopdf-1487645197.zip Cartesian charts: github.com/syncfusion/flutter-examples/blob/master/lib/samples/chart/cartesian_charts/export.dart Circular charts: github.com/syncfusion/flutter-examples/blob/master/lib/samples/chart/circular_charts/export.dart Spark charts: www.syncfusion.com/downloads/support/directtrac/335506/ze/sparkchart_to_pdf-1928924478 Barcode: www.syncfusion.com/downloads/support/directtrac/335506/ze/barcode_to_pdf1529393884 Currently, DataGrid and XlsIO do not have the support for export the DataGrid and XlsIO to pdf. We have already logged the feature request. And you can find this feature in any of our upcoming releases. You can refer to the below feedback links for further follow-up, DataGrid: www.syncfusion.com/feedback/19786/export-datagrid-content-to-pdf XlsIO: www.syncfusion.com/feedback/26954/convert-excel-documents-to-pdf-in-flutter-xlsio
Hi John, The PdfLayoutFormat class helps allow the text to flow across pages. The PdfLayoutResult class provides the rendered bounds of the previously added text, which can be used to place successive elements without overlapping. The following code snippet explains how to add elements relatively and also allow the text to flow across multiple pages. //Create a new PDF document PdfDocument document = PdfDocument(); //Adds a page to the document PdfPage page = document.pages.add(); String text = 'Adventure Works Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company. The company manufactures and sells metal and composite bicycles to North American, European and Asian commercial markets. While its base operation is located in Washington with 290 employees, several regional sales teams are located throughout their market base.'; //Create a text element with the text and font PdfTextElement textElement = PdfTextElement( text: text, font: PdfStandardFont(PdfFontFamily.timesRoman, 20)); //Create layout format PdfLayoutFormat layoutFormat = PdfLayoutFormat( layoutType: PdfLayoutType.paginate, breakType: PdfLayoutBreakType.fitPage); //Draw the first paragraph PdfLayoutResult result = textElement.draw( page: page, bounds: Rect.fromLTWH(0, 0, page.getClientSize().width / 2, page.getClientSize().height), format: layoutFormat)!; //Draw the second paragraph from the first paragraph end position textElement.draw( page: page, bounds: Rect.fromLTWH(0, result.bounds.bottom + 300, page.getClientSize().width / 2, page.getClientSize().height), format: layoutFormat); //Saves the document File('Output.pdf').writeAsBytes(await document.save()); //Disposes the document document.dispose(); Follow the below link for more information, help.syncfusion.com/flutter/pdf/working-with-text
Hello, We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident If you have a retail or flat license, you also have access to our support chat.
Please refer to UG documentation and follow the steps in this UG documentation: help.syncfusion.com/flutter/pdf/getting-started#save-and-open-a-pdf-document-in-mobile to save the PDF and then open the saved PDF document. Kindly refer to the following code snippet to achieve the requirement. //Get an external storage directory final directory = await getApplicationDocumentsDirectory(); //Get directory path final path = directory.path; //Create an empty file to write PDF data File file = File('$path/Output.pdf'); //Write PDF data await [file.writeAsBytes(bytes,](file.writeAsBytes(bytes,) flush: true); //Open the PDF document in mobile [OpenFile.open(](OpenFile.open()'$path/Output.pdf');
Hi Doula, Thank you for reaching out to us. Please refer to the following link, help.syncfusion.com/flutter/pdf/getting-started Kindly let us know if you have any questions.
Hi Gopal, Thank you for reaching out. Please refer to the following UG Documentations, help.syncfusion.com/flutter/pdf/getting-started#creating-a-simple-pdf-document-with-basic-elements help.syncfusion.com/flutter/pdf/working-with-flow-layout#flow-model-using-pdflayoutresult.
Hello, We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident If you have a retail or flat license, you also have access to our support chat.
We can read and draw an image in a PDF document using the PDF Flutter library. We have attached the sample to read a file for your reference. Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/imagetopdfsample-2069934582 Please refer to the below link for more information, UG: help.syncfusion.com/flutter/pdf/getting-started#save-and-open-a-pdf-document-in-mobile Read file: www.syncfusion.com/kb/11961/how-to-read-pdf-file-in-syncfusion-flutter-pdf-library KB: www.syncfusion.com/kb/11965/how-to-convert-image-to-pdf-in-syncfusion-flutter-pdf-library If still, you are facing the issue, we request you to share the Flutter doctor details, complete code snippet, or modified sample with product version and device details to replicate the reported issue on our end. So, it will be helpful for us to analyze and assist you further on this.
Hi Ella, Thanks for reaching out. Yes, it is working on iOS too. Please refer to the KB article and the UG documentation for further details, www.syncfusion.com/kb/11330/how-to-create-a-pdf-file-in-syncfusion-flutter-pdf-library help.syncfusion.com/flutter/pdf/overview
Hi Arinzechukwu, Thank you for watching our video. You can refer to the following UG documentation to add different fonts and brushes, help.syncfusion.com/flutter/pdf/working-with-text#drawing-text-in-pdf-document. Also, refer to this link below to arrange the content on the file, help.syncfusion.com/flutter/pdf/working-with-flow-layout. Have a good day!
Hi, We can use the http (pulse.ly/etuc5aucxo) package to download the image from the URL and draw it on the Pdf page using PdfBitmap. Kindly use the following code snippet for reference, PdfBitmap? image; final response = await http.get(Uri.parse(url)); if (response.statusCode == 200) { image = PdfBitmap(await response.bodyBytes); } if (image != null){ page.graphics.drawImage( image, Rect.fromLTWH( 0, 0, page.getClientSize().width, page.getClientSize().height)); } Kindly use the following sample for reference, pulse.ly/9jatsr2by3 To know more about working with images, kindly refer, to pulse.ly/nxujnjjzz3
hi, i have get into this error, the app run the first time to ask the access then it cannot show the pdf also in the logcat have show this oneway function results will be dropped but finished with status OK and parcel size 4 how can i solves this?
Hello, We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident If you have a retail or flat license, you also have access to our support chat.
We can draw the text/Images/shapes in a PDF document using the PDF Flutter library. Please refer to the attached sample for drawing an image in a PDF document. Try this sample on your end and let us know the result. Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/imagetopdfsample-2069934582 Please refer to the below link for more information, UG: help.syncfusion.com/flutter/pdf/getting-started KB: www.syncfusion.com/kb/11965/how-to-convert-image-to-pdf-in-syncfusion-flutter-pdf-library
When I am trying to generate pdf from image it shows an error --- (The argument type 'Future' can't be assigned to the parameter type 'List' ). I have done the same code as you done, can you help me ?
Hi K. N. Tithi, For the fastest response to technical questions, we recommend using the support chat on our website or opening a ticket so we can exchange files and screenshots. www.syncfusion.com/support/directtrac/incidents/newincident We will check on this with our team and post a response but it will take a little time. Thanks for your question!
Unfortunately, the reported issue is not reproduced. So, we have created a sample and shared it for your reference. Kindly refer to this below sample link and modify the same to reproduce the issue. www.syncfusion.com/downloads/support/directtrac/335506/ze/ImageToPdfSample116663407
Hi, Kindly refer to the below sample link. If the issue still persists on your end please open a support ticket and request a web meeting. Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/image_to_pdf_sample1137062712 Note: We work during IST hours.
Hello Aritra, Thank you for reaching out. Please refer to the below link to export a Barcode generator as a pdf. We hope this will help you achieve your requirement. www.syncfusion.com/kb/12915/how-to-export-a-barcode-generator-as-a-pdf-sfbarcodegenerator Follow the below link for more information, help.syncfusion.com/flutter/barcode/getting-started
Hello Jahangir Shah, Our paid and free versions both have the same features and support. You can check here to see if you qualify for our Community (free) license. It's available for companies with 5 or fewer developers and less than $1 Mil USD in annual revenue. bit.ly/395t17c
Hi, Thank you for reaching out. In the below KB, there are steps to load the PDF file from firebase. If you need any further assistance, Please create support ticket or github query. www.syncfusion.com/kb/12757/how-to-load-a-pdf-document-from-firebase-storage-in-syncfusion-flutter-pdfviewer.
Hi Priscila Micaellen, We're happy to look at this. For the fastest response to technical questions, we recommend opening a support ticket so we can exchange files and screenshots. www.syncfusion.com/support/directtrac/incidents/newincident We will check on this with our team and post a response but it will take a little time. Thanks for your question!
We generated the PDF document without any issue. We have attached the sample for your reference in which we are trying to reproduce the reported issue. Please refer to the below sample link. Sample: github.com/SyncfusionExamples/create-a-pdf-document-in-flutter Kindly refer to the below link to get more details, help.syncfusion.com/flutter/pdf/getting-started www.syncfusion.com/kb/11973/how-to-create-a-pdf-file-in-flutter-web-platform www.syncfusion.com/kb/11330/how-to-create-a-pdf-file-in-syncfusion-flutter-pdf-library If still, you are facing the issue, we request you to share the Flutter doctor details, complete code snippet, or modified sample with product version and device details to replicate the reported issue on our end. So that, it will be helpful for us to analyze and assist you further on this.
Hello, The package name is not "patch_provider"; it is "path_provider." It is an existing package: pub.dev/packages/path_provider?. We have corrected the spelling mistake in the TH-cam video around the 3:30 minute. Please watch the full video without skipping.
Hello, Thank you for reaching out to us. The SfPdfviewer has support for zooming on the desktop platform. Please refer to the following link for more information about the zooming support in the User Guide documentation: pulse.ly/r0emwoxzuz
Hi, We can use http (pub.dev/packages/http) package to download the image from url and draw in the Pdf page using PdfBitmap. Kindly use the following code snippet for reference, PdfBitmap? image; final response = await http.get(Uri.parse(url)); if (response.statusCode == 200) { image = PdfBitmap(await response.bodyBytes); } if (image != null){ page.graphics.drawImage( image, Rect.fromLTWH( 0, 0, page.getClientSize().width, page.getClientSize().height)); } Kindly use the following sample for reference, www.syncfusion.com/downloads/support/directtrac/general/ze/pdf_demo_sample_18-1866527290.zip To know more about working with image, kindly refer to help.syncfusion.com/flutter/pdf/working-with-images
You can use the startTimeZone and endTimeZone property of the Appointment to schedule an appointment with different time zones. Please find the UG document link to set different time zones in the Flutter Event Calendar. UG link: help.syncfusion.com/flutter/calendar/timezone
Hi, Thank you for reaching out. Yes, it is supported. Please refer to these links, www.syncfusion.com/kb/11973/how-to-create-a-pdf-file-in-flutter-web-platform help.syncfusion.com/flutter/pdf/getting-started#save-and-download-a-pdf-document-in-web.
Hello Reema, Thank you for reaching out. Can you please tell us what do you mean by specific pdf file? Is it single pdf file or picking file from explorer?
Hello Reema, Please refer to this link, www.syncfusion.com/kb/12602/how-to-load-a-pdf-document-from-internal-storage-files-in-syncfusion-flutter-pdf-viewer.
Hi, You can draw different languages texts by specifying the supported truetype font. You can refer to the following UG documentation for further details help.syncfusion.com/flutter/pdf/working-with-text#drawing-text-using-different-fonts. We also support RTL language texts, help.syncfusion.com/flutter/pdf/working-with-text#drawing-right-to-left-text.
Hello Nikhil, Thank you for reaching out. Please refer to this KB documentation for retrieving PDF data from firebase, www.syncfusion.com/kb/12757/how-to-load-a-pdf-document-from-firebase-storage-in-syncfusion-flutter-pdfviewer.
Hi D- Apps, Thank you for watching our video. Could you please send details using the support chat on our website or opening a ticket so we can exchange files and screenshots? www.syncfusion.com/support/directtrac/incidents/newincident
The syncfusion_flutter_pdf package has been imported properly on our end without any issues. We have created a sample and attached it for your reference. Sample: www.syncfusion.com/downloads/support/directtrac/329404/ze/pdf_sample-105490095 We request you to provide the following details to validate the issue on our end. It would more helpful for us to analyze further and update you with a prompt solution. Flutter doctor -v details. syncfusion_flutter_pdf package version. You can also refer to our UG and KB documentation for adding the Syncfusion Flutter PDF package. UG: help.syncfusion.com/flutter/pdf/getting-started KB: www.syncfusion.com/kb/11330/how-to-create-a-pdf-file-in-syncfusion-flutter-pdf-library
Hello Jason, We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident Let us know if you have any questions. Thank you.
We suspect that the issue occurs due to the path_provider(pub.dev/packages/path_provider) package getExternalStorageDirectory() returns null on the iOS platform. As per the path_provider recent changes(pub.dev/packages/path_provider/changelog#120), this method returns the null value on iOS. So we request you to use the getApplicationDocumentDirectory() instead to overcome this issue. Please kindly try the sample from www.syncfusion.com/kb/11330/how-to-create-a-pdf-file-in-syncfusion-flutter-pdf-library
@@SyncfusionInc I ended up getting it figured out. It was a stupid mistake on my part. It all came down to device storage location and telling flutter where to go depending on if the device was Android or iOS. All good now.
Hello, We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident If you have a retail or flat license, you also have access to our support chat.
We have tried to create a PDF document with hyperlinks using the flutter PDF library, but the added hyperlinks are working properly in the downloaded PDF document. Please refer to the below documentation for more information, help.syncfusion.com/flutter/pdf/working-with-hyperlinks We have attached the output document for your reference, please find the below link www.syncfusion.com/downloads/support/directtrac/general/pd/Hyperlink-21348987 If still, you are facing any issue, we request you to share the sample with the output document, reproducing steps to replicate the issue on our end. So that it will helpful for us.
Hi Ravi, Thank you for watching our video. At present, we support only convert the PNG and JPEG to the PDF document. So svg image is not supported. Could you please find the following link for further details, help.syncfusion.com/flutter/pdf/working-with-images
Hello Liju K John, Our paid and free versions both have the same features and support. You can check here to see if you qualify for our Community (free) license. It's available for companies with 5 or fewer developers and less than $1 Mil USD in annual revenue. bit.ly/395t17c
Hello kshitiz agnihotri, Our paid and free versions both have the same features and support. You can check here to see if you qualify for our Community (free) license. It's available for companies with 5 or fewer developers and less than $1 Mil USD in annual revenue. bit.ly/395t17c
Hello, The Syncfusion Flutter PDF allows you to draw right-to-left language (Arabic) text in a PDF document. Please refer to the documentation below: pulse.ly/k4q7ec5xr9
Hello, We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident You also have access to our support chat if you have a retail or flat license.
Hello, We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident If you have a retail or flat license, you also have access to our support chat.
We can draw JPEG/PNG images in a PDF document using the PDF Flutter library. We also can load image data in the PdfBitmap object to draw the images using the drawImage method of the PdfGraphics class. Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/imagetopdfsample-2069934582 Please refer to the below link for more information, UG: help.syncfusion.com/flutter/pdf/working-with-images KB: www.syncfusion.com/kb/11965/how-to-convert-image-to-pdf-in-syncfusion-flutter-pdf-library
We can draw JPEG/PNG images in a PDF document using the PDF Flutter library. We can load image data in the PdfBitmap object to draw the images using the drawImage method of the PdfGraphics class. Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/imagetopdfsample-2069934582 Please refer to the below link for more information, UG: help.syncfusion.com/flutter/pdf/working-with-images KB: www.syncfusion.com/kb/11965/how-to-convert-image-to-pdf-in-syncfusion-flutter-pdf-library
Hello Netesh, Thank you for reaching out. Please refer to www.syncfusion.com/kb/11330/how-to-create-a-pdf-file-in-syncfusion-flutter-pdf-library and if you still face any issues please contact our support.
Hello, We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident You also have access to our support chat if you have a retail or flat license.
We can draw JPEG/PNG images in a PDF document using the PDF Flutter library. We can load image data in the PdfBitmap object to draw the images using the drawImage method of the PdfGraphics class. Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/imagetopdfsample-2069934582 Please refer to the below link for more information, UG: help.syncfusion.com/flutter/pdf/working-with-images KB: www.syncfusion.com/kb/11965/how-to-convert-image-to-pdf-in-syncfusion-flutter-pdf-library
4:01 I'm getting error like this
Error:
The getter 'path' isn't defined for the class List? lib/mobile.dart:6 - 'List' is from 'dart:core'. - 'Directory' is from 'dart:io'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'path'.
final path = (await getExternalStorageDirectories()).path;
please someone help this.
Hello,
We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident
If you have a retail or flat license, you also have access to our support chat.
Recently, the path_provider package depreciated the getExternalStorage() API. Please find the details from these changes (pub.dev/packages/path_provider/changelog#120) log. So we request you to remove the deprecated API getExternalStorageDirectory and use the getApplicationDocumentsDirectory instead to overcome this reported problem.
Please try the sample from below link www.syncfusion.com/kb/11330/how-to-create-a-pdf-file-in-syncfusion-flutter-pdf-library
Let us know if you need any further assistance in this.
I enjoyed you video very much and implemented the code, works great I got to play with different features, thank you for all your work. I will use your library's in the future.
Hi Mark,
That’s great. Thank you for your kind words.
We really appreciate your feedback. We're glad that you got it to work. Please don't hesitate to reach out with additional questions.
@@SyncfusionInc I am with a small app company and have 3 apps in the market, we chose to do our premium version app in flutter( a very good decision) but as I write we have Android and IOS code bases for our free versions( seriously maintaining 3 code bases). We hope by the end of the year to migrate our free versions to a cut down version of our premium app in flutter, hopefully reducing everything to one code base ( flutter). That's why I like your library, because our free app versions generate pdf's off line.
Simple answer, just saying.
Very good! Can the user edit text from the PDF in the app?
Hi,
Using our Flutter library, we cannot edit text in an existing PDF document. While it's possible to load an existing document and add new text, it's impossible to edit the existing text within the document.
Is this possible to customise the table? Like row span and column span?
And it supports multi-language contents?
Hi Revan,
Thank you for reaching out to us.
Yes, you can customize using the following link,
help.syncfusion.com/flutter/pdf/working-with-tables#cell-customization-in-pdfgrid
You can also draw multi-language text, help.syncfusion.com/flutter/pdf/working-with-text#drawing-text-using-different-fonts
@@SyncfusionInc thank you
Hope it helps. Let us know if you have any questions.
hey man, i'm programmin in a MacOs, and runnig my code in IOS emulator, when i save the path with ''getApplicationDocumentsDirectory();'' i choose to save the file, because it open an box asking what should do with it, but the file hads nothing, is not even .pdf, trying to get some help but can't found it so thats bring me here, i try with and without ''pdfdocument.dispose''
Hi Bruce Scavelo,
We're happy to look at this. For the fastest response to technical questions, we recommend opening a support ticket so we can exchange files and screenshots.
www.syncfusion.com/support/directtrac/incidents/newincident
We will check on this with our team and post a response but it will take a little time.
Thanks for your question!
Hi,
Based on the provided code example, we found that the PDF file was being saved without an extension, which was causing the reported issue. We suggest you add the proper extension when writing files. You can refer to the following code example for further details.
Future _createPdf() async {
PdfDocument pdfdocumento = PdfDocument();
final page = pdfdocumento.pages.add();
page.graphics.drawString(
'Impressão Matricular', PdfStandardFont(PdfFontFamily.helvetica, 35));
List bytes = await pdfdocumento.save();
pdfdocumento.dispose();
pdfSaver(bytes, 'matricula_data.pdf');
}
Future pdfSaver(List bytes, String fileName) async {
Directory path =
await getApplicationDocumentsDirectory(); // function for see directory if android or ios
String outputPath = path.path;
final file = File('$outputPath/$fileName');
await file.writeAsBytes(bytes, flush: true);
OpenFile.open('$outputPath/$fileName');
}
}
Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/create_pdf_sample-687432817.
I'm trying to create a pdf which will have a header consisting of companie's logo image and their address in a text format. The company logo is coming out fine, but the text in header is coming out very streched and ugly. How can i fix that? Thanks!
Hello,
We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident
If you have a retail or flat license, you also have access to our support chat.
We have achieved the required scenario without any preservation issues with the below code snippet. So, kindly try it out and refer to the below documentation link for more information.
help.syncfusion.com/flutter/pdf/working-with-headers-and-footers
help.syncfusion.com/flutter/pdf/working-with-text
Code Snippet:
Future _createPDF() async {
//Create a new pdf document
PdfDocument document = PdfDocument();
//Add the pages to the document
for (int i = 1; i <= 2; i++) {
document.pages.add();
}
//Create the header with specific bounds
PdfPageTemplateElement header = PdfPageTemplateElement(
[Rect.fromLTWH(0,](Rect.fromLTWH(0,) 0, document.pages[0].getClientSize().width, 300));
//Load image file
PdfImage logoImage = PdfBitmap(await _readImageData('logo.png'));
//Draw the image to the header
[header.graphics.drawImage(logoImage,](header.graphics.drawImage(logoImage,)
[Rect.fromLTWH(0,](Rect.fromLTWH(0,) 0, logoImage.width / 2, logoImage.height / 2));
//Draw address string to the header
[header.graphics.drawString(](header.graphics.drawString()
'Syncfusion Software PVT LTD
Eymard Complex Aj 217
sms hospital near
4th Avenue
Anna Nagar-600040',
PdfStandardFont(PdfFontFamily.timesRoman, 11),
bounds: Rect.fromLTWH(document.pages[0].getClientSize().width, 0, 0, 0),
format: PdfStringFormat(
alignment: PdfTextAlignment.right,
));
//Add the header at top of the document
document.template.top = header;
//Save the PDF document
List bytes = document.save();
//Dispose document
document.dispose();
}
Future> _readImageData(String name) async {
final ByteData data = await rootBundle.load('assets/$name');
return [data.buffer.asUint8List(data.offsetInBytes,](data.buffer.asUint8List(data.offsetInBytes,) data.lengthInBytes);
}
Its showing an error that future can not use as list???
It's showing in the saveandlauncfile method
Hi,
We have changed the save API return type to feature from the product version 20.3.36 and later. So we suggest you use the following code to resolve the issue.
List bytes = await document.save();
or
List bytes = document.saveSync();
Please refer to the below link for more information,
pub.dev/packages/syncfusion_flutter_pdf/changelog
Good work❤
is it free for production mode?
Hello Adil Mobologics,
Our paid and free versions both have the same features and support. You can check here to see if you qualify for our Community (free) license. It's available for companies with 5 or fewer developers and less than $1 Mil USD in annual revenue.
bit.ly/395t17c
i have a list of products , how can i create dynamic table based on products length ,
Hello Ahmed,
Thank you for reaching out. Please refer to help.syncfusion.com/flutter/pdf/working-with-tables.
@@SyncfusionInc thank you
Can you please make a video how to create a flutter apps to view pdf
Hello Aayan,
Thank you for your suggestion. We will pass this along to the concerned team.
Kindly refer to the following link to view the PDF files in SfPdfViewer. th-cam.com/video/f1zEJZRdo7w/w-d-xo.html
What would be nice is a package to convert Syncfusions Datagrid, charts and others to pdf
Hello,
We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident
Please find the samples and feature request details to export PDF support below,
Maps: www.syncfusion.com/downloads/support/directtrac/general/ze/maps_to_pdf40664281
Treemap: www.syncfusion.com/downloads/support/directtrac/general/ze/treemap_to_pdf2128023203
Gauges: www.syncfusion.com/downloads/support/directtrac/general/ze/gauges_to_pdf-109697840
Sliders: www.syncfusion.com/downloads/support/directtrac/general/ze/slider_to_pdf-2074197194
SignaturePad: www.syncfusion.com/downloads/support/directtrac/general/ze/signaturepad_to_pdf1169730669
Calendar: www.syncfusion.com/downloads/support/directtrac/general/ze/CalendarTopdf-1487645197.zip
Cartesian charts: github.com/syncfusion/flutter-examples/blob/master/lib/samples/chart/cartesian_charts/export.dart
Circular charts: github.com/syncfusion/flutter-examples/blob/master/lib/samples/chart/circular_charts/export.dart
Spark charts: www.syncfusion.com/downloads/support/directtrac/335506/ze/sparkchart_to_pdf-1928924478
Barcode: www.syncfusion.com/downloads/support/directtrac/335506/ze/barcode_to_pdf1529393884
Currently, DataGrid and XlsIO do not have the support for export the DataGrid and XlsIO to pdf. We have already logged the feature request. And you can find this feature in any of our upcoming releases. You can refer to the below feedback links for further follow-up,
DataGrid: www.syncfusion.com/feedback/19786/export-datagrid-content-to-pdf
XlsIO: www.syncfusion.com/feedback/26954/convert-excel-documents-to-pdf-in-flutter-xlsio
Hello sir, I just wanna ask if how can I put the rest of the text to next page? The text I want to print is too long for just one page
Hi John,
The PdfLayoutFormat class helps allow the text to flow across pages. The PdfLayoutResult class provides the rendered bounds of the previously added text, which can be used to place successive elements without overlapping.
The following code snippet explains how to add elements relatively and also allow the text to flow across multiple pages.
//Create a new PDF document
PdfDocument document = PdfDocument();
//Adds a page to the document
PdfPage page = document.pages.add();
String text =
'Adventure Works Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company. The company manufactures and sells metal and composite bicycles to North American, European and Asian commercial markets. While its base operation is located in Washington with 290 employees, several regional sales teams are located throughout their market base.';
//Create a text element with the text and font
PdfTextElement textElement = PdfTextElement(
text: text, font: PdfStandardFont(PdfFontFamily.timesRoman, 20));
//Create layout format
PdfLayoutFormat layoutFormat = PdfLayoutFormat(
layoutType: PdfLayoutType.paginate,
breakType: PdfLayoutBreakType.fitPage);
//Draw the first paragraph
PdfLayoutResult result = textElement.draw(
page: page,
bounds: Rect.fromLTWH(0, 0, page.getClientSize().width / 2,
page.getClientSize().height),
format: layoutFormat)!;
//Draw the second paragraph from the first paragraph end position
textElement.draw(
page: page,
bounds: Rect.fromLTWH(0, result.bounds.bottom + 300,
page.getClientSize().width / 2, page.getClientSize().height),
format: layoutFormat);
//Saves the document
File('Output.pdf').writeAsBytes(await document.save());
//Disposes the document
document.dispose();
Follow the below link for more information,
help.syncfusion.com/flutter/pdf/working-with-text
can we automatically download it and open the file after it got downloaded?
Hello,
We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident
If you have a retail or flat license, you also have access to our support chat.
Please refer to UG documentation and follow the steps in this UG documentation: help.syncfusion.com/flutter/pdf/getting-started#save-and-open-a-pdf-document-in-mobile to save the PDF and then open the saved PDF document. Kindly refer to the following code snippet to achieve the requirement.
//Get an external storage directory
final directory = await getApplicationDocumentsDirectory();
//Get directory path
final path = directory.path;
//Create an empty file to write PDF data
File file = File('$path/Output.pdf');
//Write PDF data
await [file.writeAsBytes(bytes,](file.writeAsBytes(bytes,) flush: true);
//Open the PDF document in mobile [OpenFile.open(](OpenFile.open()'$path/Output.pdf');
Nice video sir. Please is there a way to add text on top of the image?
Hi Doula,
Thank you for reaching out to us. Please refer to the following link,
help.syncfusion.com/flutter/pdf/getting-started
Kindly let us know if you have any questions.
I want the table on the same page. How to achieve that ?
Hi Gopal,
Thank you for reaching out. Please refer to the following UG Documentations, help.syncfusion.com/flutter/pdf/getting-started#creating-a-simple-pdf-document-with-basic-elements
help.syncfusion.com/flutter/pdf/working-with-flow-layout#flow-model-using-pdflayoutresult.
Good job ! Thanks you so much.
Hi Alexis,
We really appreciate your feedback.
hi , i cant import open_file because "The plugin `open_file` uses a deprecated version of the Android embedding." is there any solution?
Hello,
We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident
If you have a retail or flat license, you also have access to our support chat.
We can read and draw an image in a PDF document using the PDF Flutter library. We have attached the sample to read a file for your reference.
Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/imagetopdfsample-2069934582
Please refer to the below link for more information,
UG: help.syncfusion.com/flutter/pdf/getting-started#save-and-open-a-pdf-document-in-mobile
Read file: www.syncfusion.com/kb/11961/how-to-read-pdf-file-in-syncfusion-flutter-pdf-library
KB: www.syncfusion.com/kb/11965/how-to-convert-image-to-pdf-in-syncfusion-flutter-pdf-library
If still, you are facing the issue, we request you to share the Flutter doctor details, complete code snippet, or modified sample with product version and device details to replicate the reported issue on our end. So, it will be helpful for us to analyze and assist you further on this.
Great video, does this work on ios too?
Hi Ella,
Thanks for reaching out. Yes, it is working on iOS too. Please refer to the KB article and the UG documentation for further details,
www.syncfusion.com/kb/11330/how-to-create-a-pdf-file-in-syncfusion-flutter-pdf-library
help.syncfusion.com/flutter/pdf/overview
please how can i arrange the contents in the file, add font styles and colors
Hi Arinzechukwu,
Thank you for watching our video. You can refer to the following UG documentation to add different fonts and brushes,
help.syncfusion.com/flutter/pdf/working-with-text#drawing-text-in-pdf-document.
Also, refer to this link below to arrange the content on the file,
help.syncfusion.com/flutter/pdf/working-with-flow-layout.
Have a good day!
can we add network image instead of asset is there any vedios related to that
Hi,
We can use the http (pulse.ly/etuc5aucxo) package to download the image from the URL and draw it on the Pdf page using PdfBitmap.
Kindly use the following code snippet for reference,
PdfBitmap? image;
final response = await http.get(Uri.parse(url));
if (response.statusCode == 200) {
image = PdfBitmap(await response.bodyBytes);
}
if (image != null){
page.graphics.drawImage(
image,
Rect.fromLTWH(
0, 0, page.getClientSize().width, page.getClientSize().height));
}
Kindly use the following sample for reference,
pulse.ly/9jatsr2by3
To know more about working with images, kindly refer, to pulse.ly/nxujnjjzz3
hi, i have get into this error, the app run the first time to ask the access then it cannot show the pdf also in the logcat have show this
oneway function results will be dropped but finished with status OK and parcel size 4
how can i solves this?
Hello,
We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident
If you have a retail or flat license, you also have access to our support chat.
We can draw the text/Images/shapes in a PDF document using the PDF Flutter library. Please refer to the attached sample for drawing an image in a PDF document. Try this sample on your end and let us know the result.
Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/imagetopdfsample-2069934582
Please refer to the below link for more information,
UG: help.syncfusion.com/flutter/pdf/getting-started
KB: www.syncfusion.com/kb/11965/how-to-convert-image-to-pdf-in-syncfusion-flutter-pdf-library
When I am trying to generate pdf from image it shows an error --- (The argument type 'Future' can't be assigned to the parameter type 'List' ). I have done the same code as you done, can you help me ?
Hi K. N. Tithi,
For the fastest response to technical questions, we recommend using the support chat on our website or opening a ticket so we can exchange files and screenshots. www.syncfusion.com/support/directtrac/incidents/newincident
We will check on this with our team and post a response but it will take a little time.
Thanks for your question!
Unfortunately, the reported issue is not reproduced. So, we have created a sample and shared it for your reference. Kindly refer to this below sample link and modify the same to reproduce the issue.
www.syncfusion.com/downloads/support/directtrac/335506/ze/ImageToPdfSample116663407
Hey I have same error did you find a fix?
Hi,
Kindly refer to the below sample link. If the issue still persists on your end please open a support ticket and request a web meeting.
Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/image_to_pdf_sample1137062712
Note: We work during IST hours.
Good afternoon sir, permission to ask how to make it if we display the qr code, sir?
Hello Aritra,
Thank you for reaching out.
Please refer to the below link to export a Barcode generator as a pdf. We hope this will help you achieve your requirement.
www.syncfusion.com/kb/12915/how-to-export-a-barcode-generator-as-a-pdf-sfbarcodegenerator
Follow the below link for more information,
help.syncfusion.com/flutter/barcode/getting-started
is this syncfusion pdf library is free for use or paid?
Hello Jahangir Shah,
Our paid and free versions both have the same features and support. You can check here to see if you qualify for our Community (free) license. It's available for companies with 5 or fewer developers and less than $1 Mil USD in annual revenue.
bit.ly/395t17c
How to fetch pdf from firebase. I have tried to try. please help me
Hi,
Thank you for reaching out. In the below KB, there are steps to load the PDF file from firebase. If you need any further assistance, Please create support ticket or github query.
www.syncfusion.com/kb/12757/how-to-load-a-pdf-document-from-firebase-storage-in-syncfusion-flutter-pdfviewer.
pode me ajudar, quando eu clico em "Create PDF" não abre nada, não esta puxando, mas tambem não da erro, como posso resolver isso? !!
Hi Priscila Micaellen,
We're happy to look at this. For the fastest response to technical questions, we recommend opening a support ticket so we can exchange files and screenshots.
www.syncfusion.com/support/directtrac/incidents/newincident
We will check on this with our team and post a response but it will take a little time.
Thanks for your question!
We generated the PDF document without any issue. We have attached the sample for your reference in which we are trying to reproduce the reported issue. Please refer to the below sample link.
Sample: github.com/SyncfusionExamples/create-a-pdf-document-in-flutter
Kindly refer to the below link to get more details,
help.syncfusion.com/flutter/pdf/getting-started
www.syncfusion.com/kb/11973/how-to-create-a-pdf-file-in-flutter-web-platform
www.syncfusion.com/kb/11330/how-to-create-a-pdf-file-in-syncfusion-flutter-pdf-library
If still, you are facing the issue, we request you to share the Flutter doctor details, complete code snippet, or modified sample with product version and device details to replicate the reported issue on our end. So that, it will be helpful for us to analyze and assist you further on this.
I am getting that patch_provider is non existing package, is there any alternative for the same?
Hello,
The package name is not "patch_provider"; it is "path_provider." It is an existing package: pub.dev/packages/path_provider?.
We have corrected the spelling mistake in the TH-cam video around the 3:30 minute. Please watch the full video without skipping.
Is ir recommended por Desktop apps? I think the zoom does not work
Hello,
Thank you for reaching out to us. The SfPdfviewer has support for zooming on the desktop platform. Please refer to the following link for more information about the zooming support in the User Guide documentation:
pulse.ly/r0emwoxzuz
ca we add network image in the pdf instead of asset images in flutter web
Hi,
We can use http (pub.dev/packages/http) package to download the image from url and draw in the Pdf page using PdfBitmap.
Kindly use the following code snippet for reference,
PdfBitmap? image;
final response = await http.get(Uri.parse(url));
if (response.statusCode == 200) {
image = PdfBitmap(await response.bodyBytes);
}
if (image != null){
page.graphics.drawImage(
image,
Rect.fromLTWH(
0, 0, page.getClientSize().width, page.getClientSize().height));
}
Kindly use the following sample for reference,
www.syncfusion.com/downloads/support/directtrac/general/ze/pdf_demo_sample_18-1866527290.zip
To know more about working with image, kindly refer to help.syncfusion.com/flutter/pdf/working-with-images
How can i make this type of calendar
Worldtimebuddy with time zone and meeting schedular
You can use the startTimeZone and endTimeZone property of the Appointment to schedule an appointment with different time zones. Please find the UG document link to set different time zones in the Flutter Event Calendar.
UG link: help.syncfusion.com/flutter/calendar/timezone
thank you so much
Nice, it's work in flutter web ? Thanks 👍
Hi,
Thank you for reaching out. Yes, it is supported. Please refer to these links,
www.syncfusion.com/kb/11973/how-to-create-a-pdf-file-in-flutter-web-platform
help.syncfusion.com/flutter/pdf/getting-started#save-and-download-a-pdf-document-in-web.
@@SyncfusionInc thanks, it's working
what if I have specific pdf file that I want to display it? how
Hello Reema,
Thank you for reaching out. Can you please tell us what do you mean by specific pdf file?
Is it single pdf file or picking file from explorer?
@@SyncfusionInc i do have the pdf file in my device i just want to send some data from the flutter application and display it in that pdf file
@@SyncfusionInc did you understand me please
Hello Reema,
Please refer to this link, www.syncfusion.com/kb/12602/how-to-load-a-pdf-document-from-internal-storage-files-in-syncfusion-flutter-pdf-viewer.
Hi I'm Ariful Islam Leeton I'm software engineer and members of the international organization project mame made in Bhangladesh
It doesnt support other languages. How can I import other languages to support?
Hi,
You can draw different languages texts by specifying the supported truetype font. You can refer to the following UG documentation for further details help.syncfusion.com/flutter/pdf/working-with-text#drawing-text-using-different-fonts.
We also support RTL language texts, help.syncfusion.com/flutter/pdf/working-with-text#drawing-right-to-left-text.
How can I retrieve the same data from firebase in form of pdf
Hello Nikhil,
Thank you for reaching out.
Please refer to this KB documentation for retrieving PDF data from firebase,
www.syncfusion.com/kb/12757/how-to-load-a-pdf-document-from-firebase-storage-in-syncfusion-flutter-pdfviewer.
I imported the package but I cannot find PdfDocument, it doesnt import..
Hi D- Apps,
Thank you for watching our video.
Could you please send details using the support chat on our website or opening a ticket so we can exchange files and screenshots? www.syncfusion.com/support/directtrac/incidents/newincident
The syncfusion_flutter_pdf package has been imported properly on our end without any issues. We have created a sample and attached it for your reference.
Sample: www.syncfusion.com/downloads/support/directtrac/329404/ze/pdf_sample-105490095
We request you to provide the following details to validate the issue on our end. It would more helpful for us to analyze further and update you with a prompt solution.
Flutter doctor -v details.
syncfusion_flutter_pdf package version.
You can also refer to our UG and KB documentation for adding the Syncfusion Flutter PDF package.
UG: help.syncfusion.com/flutter/pdf/getting-started
KB: www.syncfusion.com/kb/11330/how-to-create-a-pdf-file-in-syncfusion-flutter-pdf-library
This package works fine in Android but I cannot get any part of it to work for iOS. Probably a permissions thing which I cannot figure out.
Hello Jason,
We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident
Let us know if you have any questions. Thank you.
We suspect that the issue occurs due to the path_provider(pub.dev/packages/path_provider) package getExternalStorageDirectory() returns null on the iOS platform. As per the path_provider recent changes(pub.dev/packages/path_provider/changelog#120), this method returns the null value on iOS. So we request you to use the getApplicationDocumentDirectory() instead to overcome this issue.
Please kindly try the sample from www.syncfusion.com/kb/11330/how-to-create-a-pdf-file-in-syncfusion-flutter-pdf-library
@@SyncfusionInc I ended up getting it figured out. It was a stupid mistake on my part. It all came down to device storage location and telling flutter where to go depending on if the device was Android or iOS. All good now.
Hi Jason,
That's great. We are glad to hear everything worked out well.
thanks bro
We are glad that you have found it helpful.
how can I add link that will be clickable after pdf is downloaded
Hello Evans,
Thank you for watching our video. Please refer to this link, help.syncfusion.com/flutter/pdf/working-with-hyperlinks.
@@SyncfusionInc am trying but once I download the pdf the link doesn't work
Hello,
We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident
If you have a retail or flat license, you also have access to our support chat.
We have tried to create a PDF document with hyperlinks using the flutter PDF library, but the added hyperlinks are working properly in the downloaded PDF document. Please refer to the below documentation for more information,
help.syncfusion.com/flutter/pdf/working-with-hyperlinks
We have attached the output document for your reference, please find the below link
www.syncfusion.com/downloads/support/directtrac/general/pd/Hyperlink-21348987
If still, you are facing any issue, we request you to share the sample with the output document, reproducing steps to replicate the issue on our end. So that it will helpful for us.
thanks
I used SVG Image i got a error like
Performing hot reload...
Syncing files to device Android SDK built for x86...
Reloaded 1 of 1013 libraries in 255ms.
E/flutter ( 7788): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: Unsupported operation: Invalid/Unsupported image stream
E/flutter ( 7788): #0 PdfBitmap._initialize (package:syncfusion_flutter_pdf/src/pdf/implementation/graphics/images/pdf_bitmap.dart:175:7)
E/flutter ( 7788): #1 new PdfBitmap (package:syncfusion_flutter_pdf/src/pdf/implementation/graphics/images/pdf_bitmap.dart:37:5)
E/flutter ( 7788): #2 QrItem._createPDF (package:task01/qr_item.dart:47:29)
E/flutter ( 7788):
E/flutter ( 7788):
Hi Ravi,
Thank you for watching our video. At present, we support only convert the PNG and JPEG to the PDF document. So svg image is not supported. Could you please find the following link for further details, help.syncfusion.com/flutter/pdf/working-with-images
Is this pdf library is paid or free
Hello Liju K John,
Our paid and free versions both have the same features and support. You can check here to see if you qualify for our Community (free) license. It's available for companies with 5 or fewer developers and less than $1 Mil USD in annual revenue.
bit.ly/395t17c
Hi is it free or paid
Hello kshitiz agnihotri,
Our paid and free versions both have the same features and support. You can check here to see if you qualify for our Community (free) license. It's available for companies with 5 or fewer developers and less than $1 Mil USD in annual revenue.
bit.ly/395t17c
Why I can't use Arabic language?
Hello,
The Syncfusion Flutter PDF allows you to draw right-to-left language (Arabic) text in a PDF document. Please refer to the documentation below:
pulse.ly/k4q7ec5xr9
Working with image is slow
Hello,
We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident
You also have access to our support chat if you have a retail or flat license.
@@SyncfusionInc The issue is something to deal with assets what about Blob
Hello,
We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident
If you have a retail or flat license, you also have access to our support chat.
We can draw JPEG/PNG images in a PDF document using the PDF Flutter library. We also can load image data in the PdfBitmap object to draw the images using the drawImage method of the PdfGraphics class.
Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/imagetopdfsample-2069934582
Please refer to the below link for more information,
UG: help.syncfusion.com/flutter/pdf/working-with-images
KB: www.syncfusion.com/kb/11965/how-to-convert-image-to-pdf-in-syncfusion-flutter-pdf-library
We can draw JPEG/PNG images in a PDF document using the PDF Flutter library. We can load image data in the PdfBitmap object to draw the images using the drawImage method of the PdfGraphics class.
Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/imagetopdfsample-2069934582
Please refer to the below link for more information,
UG: help.syncfusion.com/flutter/pdf/working-with-images
KB: www.syncfusion.com/kb/11965/how-to-convert-image-to-pdf-in-syncfusion-flutter-pdf-library
😎
when I opened the pdf file it shows "cannot display pdf (file_name ) is of invalid format .
Hello Netesh,
Thank you for reaching out. Please refer to www.syncfusion.com/kb/11330/how-to-create-a-pdf-file-in-syncfusion-flutter-pdf-library and if you still face any issues please contact our support.
@@SyncfusionInc Its working fine with texts but when I add images to pdf then it show invalid format .
Hello,
We can look into this and get back to you but response times via our TH-cam videos are slower than our regular support. Have you opened a support ticket or tried our live chat? www.syncfusion.com/support/directtrac/incidents/newincident
You also have access to our support chat if you have a retail or flat license.
We can draw JPEG/PNG images in a PDF document using the PDF Flutter library. We can load image data in the PdfBitmap object to draw the images using the drawImage method of the PdfGraphics class.
Sample: www.syncfusion.com/downloads/support/directtrac/general/ze/imagetopdfsample-2069934582
Please refer to the below link for more information,
UG: help.syncfusion.com/flutter/pdf/working-with-images
KB: www.syncfusion.com/kb/11965/how-to-convert-image-to-pdf-in-syncfusion-flutter-pdf-library