How to print pdf in 3 inch in flutter? - flutter

I am new in flutter Can I print pdf file directly to 3intch Bluetooth printer using dart. I tried to solve this using pdf package but in that only a5, a3, a4 like page sizes are available but I want to print in 3inch or 2 inch. Please give me any idea about how to do this.

Related

Flutter blue_thermal_printer can print images but not text

I am trying to use Flutter blue_thermal_printer to print a receipt. The example code, unchanged, prints the images fine but no text.
Is this an issue with a very cheap printer? The printer is set to English.
The example code is here.

Flutter - preview file

i would like to upload file in a flutter app.
When I obtain io.file, i would like to display a preview / thumbnail (for example, the first page of a word or pdf file ; first sheet of an excel file ...)
My question doesn't concern images
Thx

How to add show more and show less options for attributed text in Flutter App?

In my application I need to show options for Show more and Show less for the attributed text. If there is the simple Text then I could manage the things by using .subString function for first few characters and full text.
But here in my case I am using flutter_html lib. Here if I take data using .subString then attributed text getting disturbed which creates wrong output.
For consideration my text is as mentioned below:
The system requirements are\r\n :\r\n An internet connection – broadband wired or wireless (3G or 4G/LTE)\r\n Speakers and a microphone (required in case of interactive sessions) – Built-in, USB plug-in, or wireless Bluetooth\r\n A webcam or HD webcam - built-in, USB plug-in (required in case of interactive sessions)\r\n CLICK HERE to view the System Requirements for Zoom.\r\n
Consider the image as mentioned below:
Is there something else can be done here to achieve this feature without using .subString feature!!??
Solution 1 :
You can try https://pub.dev/packages/readmore , this plugin.
A Flutter plugin that allow expand and collapse text.
Solution 2 :
Flutter: How to hide or show more text within certain length

Develop ePub file reader in iOS 5

I want to develop ePub & PDF reader for iOS devices.
For PDF reader , I can display PDF in Web View. So I don't have any problem with PDF.
For ePub files, my idea is
1) Download epub files from server & extract it to Documents directory as per requirement.
2) Parse extracted files & display it.
3) Once app closed , delete extracted files from Socuments directory.
Required functionality :-
1) Increase / Decrease Font size & brightness
2) Bookmark
3) Left & Right Swipe gesture OR Curl effect like changing pages from book
4) Orientation suuport
5) Display contents from Book (List)
6) SEARCH Functionality
7) Optionally display Page number
My questions are :-
1) Does any one know a good iOS library for ePub reader other than AePubReader?
2) I saw this link for for RMSDK. Anybody know about this ? Does it support iOS ?
3) Where should I display extracted contents in order to manipulate the font size & brightness ? In WebView or TextView ?
Any knid of help is appreciated. Thanks
Use UITextView to load text by parsing each html/xhtml file. Use page view controller to get page navigation style

Divide PDF Page using C#

I have A4 size PDF page. PDF page contains 10 images. I want to split the PDF page as 10 image files. Plz give me an Idea.
You can use PDFBox (a library available for .NET) to convert each page of the PDF to a PNG image, then use the GDI functions in C# to copy known regions of the PNG files and save them as individual image files. This only works if the layout of the images on each page is static.
More info on PDFBox:
http://studentclub.ro/lucians_weblog/archive/2007/03/22/read-from-a-pdf-file-using-c.aspx
PDFsharp seems to be a popular open source choice for PDF manipulation from .NET and Mono. PdfMod is a related Mono-based front-end.