How do I set image alignment
Currently, there is no possibility to align image within a box. This is because of difference in units of measure between raster image and PDF document and we need to know for sure at least one image dimension in order to calculate the desired image size. The only thing we can do is to add an option to keep aspect ratio for the case when both the width and height are specified. The image will be fit into rectangle by one of dimensions and centered within another.
Here's a sample:
POST [http://api.pdf.co/v1/pdf/edit/add](http://api.pdf.co/v1/pdf/edit/add)
{
"url": "https://drive.google.com/uc?id=1lH34zV_hg7jdLPyTmkzS2VTH1_FszT1W",
"imagesString": "300;40;0;[https://drive.google.com/uc?id=1Rmsf-t-qTJ7TzuxN6YOQZEVsT3t59bM_;;270;70|300;140;0;https://drive.google.com/uc?id=1Rmsf-t-qTJ7TzuxN6YOQZEVsT3t59bM_;;70;270](https://drive.google.com/uc?id=1Rmsf-t-qTJ7TzuxN6YOQZEVsT3t59bM_;;270;70|300;140;0;https://drive.google.com/uc?id=1Rmsf-t-qTJ7TzuxN6YOQZEVsT3t59bM_;;70;270)"
}