-
-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
printing pdf #32
Comments
That should be fixed with version 1.3.2 |
Yep, looking good.
On iOS it was generating the print preview just the once, then blank.
This new version does fix that.
Thanks.
Ian
…On Thu, Feb 7, 2019 at 12:01 AM David PHAM-VAN ***@***.***> wrote:
Closed #32 <#32>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#32 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AArVxCAJFSZ8C6oTpM27naRL_devvvVvks5vKtINgaJpZM4akgU4>
.
|
Dave, I have developed a 'flowcharter for coders' app. My app lets users
pick US Letter, A4 or A3 for their flowchart, and the print preview should
reflect that.The onLayout method expects a page size argument (format), but
as far as I can see US Letter is always used. How do I pass in the page
size to the printPdf function ?
I see you are in the middle of implementing a pdf widgets approach. That'll
be really nice.
Cheers
Ian
…On Thu, Feb 7, 2019 at 1:01 AM Ian White ***@***.***> wrote:
Yep, looking good.
On iOS it was generating the print preview just the once, then blank.
This new version does fix that.
Thanks.
Ian
On Thu, Feb 7, 2019 at 12:01 AM David PHAM-VAN ***@***.***>
wrote:
> Closed #32 <#32>.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#32 (comment)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/AArVxCAJFSZ8C6oTpM27naRL_devvvVvks5vKtINgaJpZM4akgU4>
> .
>
|
The onLayout function gives you a page format and margins related to what the selected printer can do. So it's your app to adapt and create a pdf document with the right size and margins. |
You probably already realise this, but IMHO having a drawstring where you
can provide a max width and get auto wrapping would be the most useful new
pdf widget ;-)
In eager anticipation...
…On Thu, Feb 7, 2019 at 10:40 AM Ian White ***@***.***> wrote:
Dave, I have developed a 'flowcharter for coders' app. My app lets users
pick US Letter, A4 or A3 for their flowchart, and the print preview should
reflect that.The onLayout method expects a page size argument (format), but
as far as I can see US Letter is always used. How do I pass in the page
size to the printPdf function ?
I see you are in the middle of implementing a pdf widgets approach.
That'll be really nice.
Cheers
Ian
On Thu, Feb 7, 2019 at 1:01 AM Ian White ***@***.***> wrote:
> Yep, looking good.
> On iOS it was generating the print preview just the once, then blank.
> This new version does fix that.
> Thanks.
>
> Ian
>
> On Thu, Feb 7, 2019 at 12:01 AM David PHAM-VAN ***@***.***>
> wrote:
>
>> Closed #32 <#32>.
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#32 (comment)>, or mute
>> the thread
>> <https://github.com/notifications/unsubscribe-auth/AArVxCAJFSZ8C6oTpM27naRL_devvvVvks5vKtINgaJpZM4akgU4>
>> .
>>
>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dave, your sample works.
My pdf generates into a file ok, but when I try the print option, the preview is blank and I get these error messages: (only tried on the iphone X simulator)
flutter: Print ...
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x604000290db0 UIView:0x7ff052f6dbe0.width == UILabel:0x7ff052f735a0'Page 1'.width + 28 (active)>",
"<NSLayoutConstraint:0x604000291ad0 H:[UIImageView:0x7ff052f73880]-(3)-UILabel:0x7ff052f735a0'Page 1' (active)>",
"<NSLayoutConstraint:0x604000288980 UIImageView:0x7ff052f73880.width == 22 (active)>",
"<NSLayoutConstraint:0x60400028b720 H:|-(0)-UIImageView:0x7ff052f73880 (active, names: '|':UIView:0x7ff052f6dbe0 )>",
"<NSLayoutConstraint:0x604000285140 UILabel:0x7ff052f735a0'Page 1'.right == UIView:0x7ff052f6dbe0.right (active)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x604000291ad0 H:[UIImageView:0x7ff052f73880]-(3)-UILabel:0x7ff052f735a0'Page 1' (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
The text was updated successfully, but these errors were encountered: