Coder Social home page Coder Social logo

angularprint's People

Contributors

bmbarker90 avatar elraph avatar fnmunhoz avatar gilsondev avatar leandro-cervelin avatar maximization avatar pellenberger avatar samwiseduzer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angularprint's Issues

print-remove doesn't function on td

I'd like to hide the button that is on every cell of a column, but I don't know if I did well:

                <td>
                    <div print-remove>
                        <div class="btn btn-primary btn-xs" ng-click="printQuiz($index)">
                            <span class="glyphicon glyphicon-print"></span> Stampa
                        </div>
                    </div>
                </td>

printOnly does not apply to children

The documentation states that printOnly will apply to the element and its children, however it appears to not apply to the children. It looks like another css rule needs to be added to make any children visible when printing

White space

I try to print a table, but in the preview and in the print, the table are in the middle of the page. Have a big white space between table and the top of page.

Prints extra page

print.pdf
When i am trying to print a content always an extra empty page is getting printed.

Also is the a provision to fix margins. Margins are very narrow.

You can see what i am trying to say here from the attached pdf.

Print inside nested div

Hi, I love your plugin. it really helpful.

But i got an issue. If the print-section inside nested div it become at center not at top of page. how can i reset all container on print?

untitled

Thanks

print-section width

I'm using Angular Material, I've an sidenav alongside my container. This sidenav is collapsing on tablet and mobile devices. So this is wat happens on my desktop screensize:

screen shot 2017-03-23 at 13 30 44

screen shot 2017-03-23 at 13 30 46

And this is the result on my tablet/mobile screen size:

screen shot 2017-03-23 at 13 30 55

screen shot 2017-03-23 at 13 30 57

I'm using the print-remove directive on the sidenav but it isn't working.

License file

Thanks for a nice library!

While the license if included in the Bower file, I think it would be nice if you included an MIT license in a file called LICENSE as well.

Cheers!

Bower can't find this package

I try installing it by typing the command "bower install AngularPrint"
and its reply is "bower ENOTFOUND Package AngularPrint not found"

Not working in Microsoft Edge, IE11, and Chrome

I wasn't sure if you'd get my comment since the issue appeared closed, so i opened this one. On Microsoft Edge, none of the features work. For example, the print-remove divs all appear on screen. On IE, the format doesn't hold on print preview and part of the document gets cut off. On Chrome, part of the side navbar is added along with a colored block. In addition, none of the format holds.

Firefox works beautifully! Any help would be greatly appreciated!

Page printed multiple times

Each time I print, four pages with the same content are produced. This behaviour is consistent accross OS and Browsers.

my code:

<div print-section>
  <div class="modal-header">
    <h3 class="modal-title">
    	{{$ctrl.order.VariableSymbol}}
    </h3>
  </div>
  <div class="modal-body">
    SOME TEXT
  </div>
</div>
<div class="modal-footer">
  <button print-btn class="btn btn-primary" type="button">Print</button>
</div>

print-landscape does not work

I did this

<button print-landscape>Print Landscape</button>

but not worked , then i did following to make it work,

<button print-landscape print-btn>Print Landscape</button>

printOnly Hides Element and It's Children from Printing

I have added print-only to a static table that should be the only thing visible in the print preview, but what I get is the exact opposite: I see everything in the print preview EXCEPT the element with the print-only attribute and it's children.

This is in Chrome 45.0.2454.99 (64-bit)

Print View Uses Entire Site CSS

Hi,

Just now I am trying this simple and awesome plugin in my Angular App. This works great however I noticed that even when I use the print-section to a small div inside the page, the print view takes the entire website's css into consideration. For example, lets say I have a website with sidebar of 200px like this:

<body>
   <div class="sidebar">
       Menus
   </div>
   <div class="mainbody>
     Main Body Contents are here.
     <div print-section>
        This is going to print!
     </div>
    </div>
</body>

In the above code, the print view shows only the print-section contents, however it has the 200px sidebar margin in it which has an ugly empty column in the left. Is that how its supposed to work? I did try adding a few overrides to print only media queries to my site css which seems to override the sidebar, etc.. in firefox but chrome is still showing the margins.

Also, is there a way for the print view to ignore divs that are wrapped outside the print section? This way, the site structure can be ignored and only the print section is printed wrapped inside its own body.Can you share your suggestion please?

Only works in Chrome?

Does this only work in Google Chrome? I am not able to get the same results with Firefox or Safari.

Not printing specific section

I added print-section directive to the div. But when i click on print button. It is printing the entire page not the specific section.

PrintSection and ngBindHTML directive

Somehow that kind of combination creates print output in the middle of a page

Code to reproduce it:

        <div class="row" id="invoice" print-section>
            <div class="col-md-12" ng-bind-html="invoice"></div>
        </div>

where invoice part is a table which I want to print only and is set as

<table style="width: 700; height: 389px;" align="center" print-table="invoice">
....
</table>

but it looks like anything at the top is pulled and replaced with a white space.

Nothing Happens

What is supposed to happen on screen? I added the print-section to a div and added the print-btn directive to a button at the end of the div. I press the button and nothing happens.

Am I missing something? I included the angularPrint.css and angularPrint.js files, included 'AngularPrint' in my module. Is there something else that I have to do?

table not printer headers on page breaks

I have a print form including a table that does not print the table header after page breaks.
I have include the snippet I am using with my HTML page.

<div print-only>
    <div class="row"  print-section>
        <div class="text-center">
            <h2>{{survey.name}}</h2>
        </div>
    </div>

    <div class="form-group" print-section>
        <label>Supervisor</label>
        <input type="text" class="form-control" name="supervisor" id="supervisor">

        <label>Employee</label>
        <input type="text" class="form-control" name="employee" id="employee">

        <label>Employee ID</label>
        <input type="text" class="form-control" name="employeeId" id="employeeId">
    </div>

    <table class="table table-striped" print-table="surveyQuestions" print-only>
        <thead>
        <tr>
            <th translate="coursemillSurveyApp.surveyQuestion.sequence">Sequence</th>
            <th translate="coursemillSurveyApp.surveyQuestion.question">Question</th>
            <th translate="global.survey.true">True</th>
            <th translate="global.survey.false">False</th>
            <th></th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="surveyQuestion in surveyQuestions" print-avoid-break >
            <td>{{surveyQuestion.sequence}}</td>
            <td>{{surveyQuestion.question}}</td>
            <td>
                <div class="form-group">
                    <input type="checkbox" class="form-control">
                </div>
            </td>
            <td>
                <div class="form-group">
                    <input type="checkbox" class="form-control" name="noCourseId">
                </div>
            </td>
            <div>
            </div>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        </tbody>
    </table>
</div>

print-table and setting page size

i want to print using this code.

Company Date
{{printData.company}} {{printData.date}}
Supplier {{printData.supplier}}

and print-btn in same html page.

but the data show up in second klik of the button. how can i fix it?
can i customize the print page size?

Create new release

Can you create a new release (0.3.9) for the latest changes so bower can pick the newest version instead of the 0.3.8 version?

print-btn and ng-click

<button print-btn ng-click="getData()">Click</button>

when button pressed...yes will show print preview, but doFunction() will not run until print popup closed.
cause I need value from getData(), can we call print-btn from getData() ?

issue with bower install

$ bower install angular-print --save
bower angular-print#* cached git://github.com/samwiseduzer/angularPrint.git#0.3.7
bower angular-print#* validate 0.3.7 against git://github.com/samwiseduzer/angularPrint.git#*
bower angularPrint#~0.3.7 ENOTFOUND Package angularPrint not found

Could you take a look into this issue?

The issue caused some downstream issues when we want to manage the version.

Thanks,

-Jinbo

npm package / other forks?

I know its no longer actively maintained, but could we get this onto npm.
Also are there any forks that are maintained?

Thank you.

Chrome 54 suddenly changes my right and bottom margin

I had implemented this directive with good success, but now with Chrome 54 out, I have a bottom margin of about 50% of the page area that I can't get rid of. I was able to overcome an excessive right margin with a negative right margin value, but the bottom margin is still there and compresses my content towards the top. Anyone have any idea what changed with Chrome 54 to cause this? It still displays properly on Chrome 53 and earlier.

print-if does not work

I am using print-if in my application and it simply does not work. I even tried doing print-if="false" to test if it had an issue getting the value, but even when I did that, it did not work.

Firefox only Prints 1 Page

The Angular Print works fine in Google Chrome, however when I print from Firefox, it only prints 1 page even when there more contents which should print in subsequent pages. The print also shows it has page 1 of 1 with the overflowing contents cut off.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.