4

I need to make a form that upon submission uses the input to make a PDF. I am using angular for the form data and handling so it would make sense if there was a way to leverage angular in the generation of the PDF.

2
  • 2
    Possible duplicate here. Commented Oct 24, 2013 at 2:25
  • i've looked into jsPDF im looking for something more angular based. Commented Oct 24, 2013 at 3:05

1 Answer 1

1

It might help you!! http://blog.sayan.ee/angular-pdf/

HTML code-sample

<div class="container" ng-controller="DocCtrl">
  <ng-pdf template-url="viewer.html"></ng-pdf>
</div>

AngularJs code-sample

app.controller('DocCtrl', function($scope) {
  $scope.pdfUrl = '/path/to/all/pdf/' + $routeParams.pdfname + '.pdf';
});
Sign up to request clarification or add additional context in comments.

1 Comment

The link provided doesn't work anymore. Try this instead: https://blog.sayan.ee/angular-pdf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.