Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SajixInc/PDF-Generator-Python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: PDF-Generator_v1.1.0
Choose a base ref
...
head repository: SajixInc/PDF-Generator-Python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 11 commits
  • 90 files changed
  • 3 contributors

Commits on Apr 26, 2023

  1. madhu

    sacredabhishek committed Apr 26, 2023
    Copy the full SHA
    943c978 View commit details
  2. Copy the full SHA
    bf767ab View commit details
  3. Copy the full SHA
    8671195 View commit details
  4. sync with main

    pentakotamadhusudhan committed Apr 26, 2023
    Copy the full SHA
    d8ef876 View commit details
  5. Copy the full SHA
    84fc232 View commit details

Commits on Apr 27, 2023

  1. bugs fixed

    pentakotamadhusudhan committed Apr 27, 2023
    Copy the full SHA
    ee61ca8 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8280357 View commit details

Commits on Apr 28, 2023

  1. sync

    pentakotamadhusudhan committed Apr 28, 2023
    Copy the full SHA
    bfd1b95 View commit details

Commits on Nov 4, 2023

  1. Update README.md

    Updating Blog Links
    sacredabhishek authored Nov 4, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    54eccfa View commit details
  2. Update README.md

    sacredabhishek authored Nov 4, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cf618eb View commit details

Commits on Feb 9, 2024

  1. Update s3file.py

    token removed
    sacredabhishek authored Feb 9, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7f975ec View commit details
Showing with 622 additions and 60 deletions.
  1. +160 −0 .gitignore
  2. +26 −0 README.md
  3. BIN awscliv2.zip
  4. BIN generatepdf/Lifeeazy-HealthSummary.pdf
  5. BIN generatepdf/Lifeeazy-HealthSummaryl.pdf
  6. BIN generatepdf/Madhutest.pdf
  7. +0 −1 generatepdf/base64data.txt
  8. BIN generatepdf/generatepdf/__pycache__/__init__.cpython-310.pyc
  9. BIN generatepdf/generatepdf/__pycache__/__init__.cpython-311.pyc
  10. BIN generatepdf/generatepdf/__pycache__/settings.cpython-310.pyc
  11. BIN generatepdf/generatepdf/__pycache__/settings.cpython-311.pyc
  12. BIN generatepdf/generatepdf/__pycache__/urls.cpython-310.pyc
  13. BIN generatepdf/generatepdf/__pycache__/urls.cpython-311.pyc
  14. BIN generatepdf/generatepdf/__pycache__/wsgi.cpython-310.pyc
  15. BIN generatepdf/generatepdf/__pycache__/wsgi.cpython-311.pyc
  16. BIN generatepdf/pdf/__pycache__/__init__.cpython-310.pyc
  17. BIN generatepdf/pdf/__pycache__/__init__.cpython-311.pyc
  18. BIN generatepdf/pdf/__pycache__/admin.cpython-310.pyc
  19. BIN generatepdf/pdf/__pycache__/admin.cpython-311.pyc
  20. BIN generatepdf/pdf/__pycache__/apps.cpython-310.pyc
  21. BIN generatepdf/pdf/__pycache__/apps.cpython-311.pyc
  22. BIN generatepdf/pdf/__pycache__/form.cpython-310.pyc
  23. BIN generatepdf/pdf/__pycache__/form.cpython-311.pyc
  24. BIN generatepdf/pdf/__pycache__/forms.cpython-310.pyc
  25. BIN generatepdf/pdf/__pycache__/forms.cpython-311.pyc
  26. BIN generatepdf/pdf/__pycache__/htmltopdfconverter.cpython-310.pyc
  27. BIN generatepdf/pdf/__pycache__/htmltopdfconverter.cpython-311.pyc
  28. BIN generatepdf/pdf/__pycache__/models.cpython-310.pyc
  29. BIN generatepdf/pdf/__pycache__/models.cpython-311.pyc
  30. BIN generatepdf/pdf/__pycache__/s3file.cpython-310.pyc
  31. BIN generatepdf/pdf/__pycache__/s3file.cpython-311.pyc
  32. BIN generatepdf/pdf/__pycache__/serializers.cpython-310.pyc
  33. BIN generatepdf/pdf/__pycache__/serializers.cpython-311.pyc
  34. BIN generatepdf/pdf/__pycache__/urls.cpython-310.pyc
  35. BIN generatepdf/pdf/__pycache__/urls.cpython-311.pyc
  36. BIN generatepdf/pdf/__pycache__/views.cpython-310.pyc
  37. BIN generatepdf/pdf/__pycache__/views.cpython-311.pyc
  38. +16 −14 generatepdf/pdf/htmltopdfconverter.py
  39. +40 −0 generatepdf/pdf/migrations/0001_initial.py
  40. BIN generatepdf/pdf/migrations/__pycache__/0001_initial.cpython-310.pyc
  41. BIN generatepdf/pdf/migrations/__pycache__/0001_initial.cpython-311.pyc
  42. BIN generatepdf/pdf/migrations/__pycache__/0002_image.cpython-310.pyc
  43. BIN generatepdf/pdf/migrations/__pycache__/0002_user_profile.cpython-310.pyc
  44. BIN generatepdf/pdf/migrations/__pycache__/__init__.cpython-310.pyc
  45. BIN generatepdf/pdf/migrations/__pycache__/__init__.cpython-311.pyc
  46. BIN generatepdf/pdf/migrations/__pycache__/__init__.cpython-39.pyc
  47. +51 −31 generatepdf/pdf/s3file.py
  48. +4 −0 generatepdf/pdf/serializers.py
  49. +0 −1 generatepdf/uploads/InvoicHTMLTemplate.html
  50. +0 −1 generatepdf/uploads/InvoicHTMLTemplate_d49RDDo.html
  51. BIN generatepdf/uploads/Lifeeazy-HealthSummary.pdf
  52. BIN generatepdf/uploads/Lifeeazy-HealthSummary_TWJilCb.pdf
  53. BIN generatepdf/uploads/Lifeeazy-HealthSummary_dowd6Ew.pdf
  54. BIN generatepdf/uploads/Lifeeazy-HealthSummary_hOLtlnk.pdf
  55. BIN generatepdf/uploads/Lifeeazy-HealthSummary_narI0FC.pdf
  56. BIN generatepdf/uploads/Lifeeazy-HealthSummary_yNx7VxI.pdf
  57. BIN generatepdf/uploads/Lifeeazy-HealthSummaryl.pdf
  58. BIN generatepdf/uploads/Lifeeazy-HealthSummaryl_nJzhYmS.pdf
  59. +13 −1 generatepdf/uploads/result.html
  60. +0 −1 generatepdf/uploads/result_4JiMTJf.html
  61. 0 generatepdf/uploads/{result_mhiDp4X.html → result_CMQRxR9.html}
  62. +13 −0 generatepdf/uploads/result_EwsHFhu.html
  63. +13 −0 generatepdf/uploads/result_FviKvGO.html
  64. +0 −1 generatepdf/uploads/result_Gb4M6zP.html
  65. +13 −0 generatepdf/uploads/result_IRUkgVb.html
  66. +0 −1 generatepdf/uploads/result_J3uhZn3.html
  67. +13 −0 generatepdf/uploads/result_LPK4cHV.html
  68. +13 −0 generatepdf/uploads/result_PgqtpVn.html
  69. +0 −1 generatepdf/uploads/result_QBtWoDi.html
  70. +13 −0 generatepdf/uploads/result_QnUYp4N.html
  71. +0 −1 generatepdf/uploads/result_QwQHHDl.html
  72. +13 −0 generatepdf/uploads/result_T2qMb7y.html
  73. +0 −1 generatepdf/uploads/result_VePY7d8.html
  74. +0 −1 generatepdf/uploads/result_Z3OFvhO.html
  75. +13 −0 generatepdf/uploads/result_ZBRdb6E.html
  76. +13 −0 generatepdf/uploads/result_aIQUImx.html
  77. +13 −0 generatepdf/uploads/result_aQ9Hhcs.html
  78. +0 −1 generatepdf/uploads/result_cI3A86y.html
  79. +13 −0 generatepdf/uploads/result_eA7HUzO.html
  80. +0 −1 generatepdf/uploads/result_exY4hbl.html
  81. +13 −0 generatepdf/uploads/result_gDfc6mA.html
  82. +13 −0 generatepdf/uploads/result_joTwcAL.html
  83. +13 −0 generatepdf/uploads/result_jylXxGu.html
  84. +0 −1 generatepdf/uploads/result_k61gXrR.html
  85. +13 −0 generatepdf/uploads/result_llsHsQl.html
  86. +13 −0 generatepdf/uploads/result_n5Y1nha.html
  87. +13 −0 generatepdf/uploads/result_soCFYaH.html
  88. +0 −1 generatepdf/uploads/result_uIFNZfI.html
  89. +47 −0 main.py
  90. +44 −0 requirements.txt
160 changes: 160 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -177,6 +177,32 @@ Make sure that you have wkhtmltopdf in your `$PATH` or set via custom configurat
This error means that PDFKit was unable to process an input. You can try to directly run a command from error message and see what error caused failure (on some
wkhtmltopdf versions this can be cause by segmentation faults)


# PDF generation via API Endpoint
API Endpoint for to convert the HTML into PDF files and Storing those files into ``S3bucket`` and ``MongoDB`` database .

Pre-requisities: s3 bucket, IAM credentials & mongodb

<h4> Follow the steps to using it as a REST API </h4>

make ensure you are inside the project / cloned repository

- pip install -r .requirements.txt
- python manage.py makemigrations.py
- python manage.py migrate
- python manage.py runserver

After successfully running the local host
go to ``http://127.0.0.1:8000/pdf/gen/`` this url.

upload your HTML file and then you got response be like this:
`` {"url":<s3bucket url>}``


- [Initial Update](https://vivifyhealthcare.com/tech-stack/pdf-generator-python-using-pdfkit/)

- [Update-1](https://vivifyhealthcare.com/tech-stack/pdf-generation-via-api/)

<p align="center">
<img src="https://vivifyassets.s3.ap-south-1.amazonaws.com/cropped-vivify_login.png" margin_left="100"/>
</p>
Binary file removed awscliv2.zip
Binary file not shown.
Binary file removed generatepdf/Lifeeazy-HealthSummary.pdf
Binary file not shown.
Binary file removed generatepdf/Lifeeazy-HealthSummaryl.pdf
Binary file not shown.
Binary file modified generatepdf/Madhutest.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion generatepdf/base64data.txt

This file was deleted.

Binary file modified generatepdf/generatepdf/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified generatepdf/generatepdf/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified generatepdf/generatepdf/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified generatepdf/generatepdf/__pycache__/wsgi.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified generatepdf/pdf/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added generatepdf/pdf/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified generatepdf/pdf/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added generatepdf/pdf/__pycache__/admin.cpython-311.pyc
Binary file not shown.
Binary file modified generatepdf/pdf/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added generatepdf/pdf/__pycache__/apps.cpython-311.pyc
Binary file not shown.
Binary file modified generatepdf/pdf/__pycache__/form.cpython-310.pyc
Binary file not shown.
Binary file added generatepdf/pdf/__pycache__/form.cpython-311.pyc
Binary file not shown.
Binary file modified generatepdf/pdf/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added generatepdf/pdf/__pycache__/forms.cpython-311.pyc
Binary file not shown.
Binary file modified generatepdf/pdf/__pycache__/htmltopdfconverter.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified generatepdf/pdf/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified generatepdf/pdf/__pycache__/s3file.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified generatepdf/pdf/__pycache__/serializers.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified generatepdf/pdf/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added generatepdf/pdf/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified generatepdf/pdf/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file added generatepdf/pdf/__pycache__/views.cpython-311.pyc
Binary file not shown.
30 changes: 16 additions & 14 deletions generatepdf/pdf/htmltopdfconverter.py
Original file line number Diff line number Diff line change
@@ -8,12 +8,9 @@
from rest_framework import generics
from rest_framework.response import Response

path_to_wkhtmltopdf = r"C:\Users\madhu\Downloads\vasu\wkhtmltopdf.exe"
config = pdfkit.configuration(wkhtmltopdf=path_to_wkhtmltopdf)



path_to_wkhtmltopdf = r"C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe" # give path of the wkhtmltopdf for windows#

config = pdfkit.configuration(wkhtmltopdf=path_to_wkhtmltopdf)
class htmltopdfview(generics.GenericAPIView):
serializer_class = htmltopdfserializer

@@ -25,8 +22,10 @@ def post(self,request):
for Ubuntu/Debian
sudo apt-get install wkhtmltopdf """
htmlfile = request.FILES['image_url']
title = request.data.get('title')
title = request.data.get('htmlfile')
description = request.data.get('description')
#if filename and details needed to be saved in database uncomment belwo lines#
## from here
a= MyModel()
a.title = title
a.description = description
@@ -35,21 +34,24 @@ def post(self,request):
id = a.id
queryset = MyModel.objects.get(id = id)
x = queryset.image_url
htmlResp = queryset.image_url
# htmlResp = queryset.image_url
print("--------------------------",htmlfile)
# upto here

htmlResp = x
global pdfname
pdfname = f'Madhutest.pdf'
pdfkit.from_file(open(f'{htmlResp}'), output_path=f'{pdfname}', configuration=config, options={"enable-local-file-access": ""})
# pdfkit.from_file(open(f'{htmlResp}'), output_path=f'{pdfname}', options={"enable-local-file-access": ""})
import base64
with open(pdfname, "rb") as pdf_file:
encoded_string = base64.b64encode(pdf_file.read())
print(encoded_string)
x=upload_file(pdfname)
return Response({'pdfpath':encoded_string,
"url" :x,
})
# with open(pdfname, "rb") as pdf_file:
# encoded_string = base64.b64encode(pdf_file.read())
# print(encoded_string)
x=uploadfile(title)
return Response({"url" :x})

class downloadfile(generics.GenericAPIView):
serializer_class = htmltopdfserializer


class DocumentRE(generics.GenericAPIView):
40 changes: 40 additions & 0 deletions generatepdf/pdf/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Generated by Django 4.1.8 on 2023-04-27 06:04

from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='Image',
fields=[
('id', models.IntegerField(primary_key=True, serialize=False)),
('nameofimage', models.CharField(max_length=50)),
('photo', models.ImageField(upload_to='store')),
],
options={
'db_table': 'table',
},
),
migrations.CreateModel(
name='MyModel',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('image_url', models.FileField(upload_to='uploads/')),
],
),
migrations.CreateModel(
name='User_Profile',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('fname', models.CharField(max_length=200)),
('display_picture', models.FileField(upload_to='')),
],
),
]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
82 changes: 51 additions & 31 deletions generatepdf/pdf/s3file.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
# import requests
# token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjg4OTc4NzY0LCJqdGkiOiJhMWU5ZWE2ODU4Mzc0OWE3YjNiZDFlNjcxN2Q4MDhkNyIsInVzZXJfaWQiOjV9.O9Yyi4lTU8r40pqf8fyjzDLJNbR8S0yUrbRqF0Ww2Mc"

# def upload_file(image_path):
# url = 'https://staging-api.vivifyhealthcare.com/ImageUpload/DocUpload/'
# # url = "http://127.0.0.1:8008/pdf/gen/"
# headers = Imageheaders = {
# 'Accept-Language': 'en-US',
# 'Authorization': f'Bearer {token}'
# }
# import PyPDF2

# pdfFileObj = open(image_path, 'rb')
# # pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
# files = {'UploadDoc': pdfFileObj}
# response = requests.post(url,files=files,headers=headers)
# print(response.status_code)
# imageurl = response.json()['Result']
import requests
token = "#######################################################################################"
import boto3


def uploadfile(image_path):
url = 'https://staging-api.vivifyhealthcare.com/ImageUpload/DocUpload/'
# url = "http://127.0.0.1:8008/pdf/gen/"
headers = Imageheaders = {
'Accept-Language': 'en-US',
'Authorization': f'Bearer {token}'
}
import PyPDF2
print(image_path)
pdfFileObj = open(image_path, 'rb')
# pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
files = {'UploadDoc': pdfFileObj}
response = requests.post(url,files=files,headers=headers)
print(response.status_code)
imageurl = response.json()['Result']

# doc = (imageurl.items())
# for i in doc:
# url = (i[1])
# return url
doc = (imageurl.items())
for i in doc:
url = (i[1])
return url


# image_path = r"D:\projects\New folder (2)\PDF-Generator-Python\generatepdf\Lifeeazy-HealthSummaryl.pdf"
@@ -30,13 +32,31 @@



import boto3
b_name = "ivin-pro-data-conversion"
s3 = boto3.client("s3")
b_res = s3.list_buckets()
# for i in b_res['Buckets']:
# print(i)
with open(r"D:\Madhu\project\Python\PDF-Generator-Python\generatepdf\generatepdf\result.html",'rb') as img:
s3.upload_fileobj(img,b_name,"testfile.jpg")
# import boto3
# b_name = "ivin-pro-data-conversion"
# s3 = boto3.client("s3")
# b_res = s3.list_buckets()
# # for i in b_res['Buckets']:
# # print(i)
# with open(r"C:\Users\anves\Pictures\as.png",'rb') as img:
# s3.upload_fileobj(img,b_name,"testfile.jpg")
#
s3.download_file(b_name,"testfile.jpg ","download.jpg")
# s3.download_file(b_name,"testfile.jpg ","download.jpg")

# def uploadfile(file):
# s3 = boto3.client("s3")
# with open(file,'rb') as f:
# x=s3.upload_fileobj(f,"ivin-pro-data-conversion",file)
# print(x)
# return x


# def downloadfile(file):
# s3 = boto3.resource('s3')
# s3.Bucket('ivin-pro-data-conversion').download_file(file, file)
# return "Success"


# import boto3
# s3 = boto3.resource('s3')
# s3.Bucket('ivin-pro-data-conversion').download_file('Madhutest.pdf', 'Madhutest.pdf')
4 changes: 4 additions & 0 deletions generatepdf/pdf/serializers.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,10 @@ class Meta:
fields = "__all__"


class pdfdownloader(serializers.Serializer):
pdf_name = serializers.FileField()




class PdfGenerationSerializer(serializers.Serializer):
1 change: 0 additions & 1 deletion generatepdf/uploads/InvoicHTMLTemplate.html

This file was deleted.

1 change: 0 additions & 1 deletion generatepdf/uploads/InvoicHTMLTemplate_d49RDDo.html

This file was deleted.

Binary file removed generatepdf/uploads/Lifeeazy-HealthSummary.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed generatepdf/uploads/Lifeeazy-HealthSummaryl.pdf
Binary file not shown.
Binary file not shown.
Loading